GithubHelp home page GithubHelp logo

wenxwei / azureml-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure/azureml-cheatsheets

0.0 0.0 0.0 3.58 MB

Azure Machine Learning website

Home Page: https://azure.github.io/azureml-web

License: MIT License

JavaScript 62.23% Python 26.10% CSS 11.67%

azureml-web's Introduction

Azure ML Cheat Sheet

deploy-website

Website is available here: https://azure.github.io/azureml-web/

This website is built using Docusaurus 2, a modern static website generator.

Contributions

Make PR's against the main branch

git clone [email protected]:Azure/azureml-web.git
cd azureml-examples
git checkout -b user/contrib
  • When a PR arrives against main GitHub actions (deploy-website) will test the build is successful
  • When the PR is merged the change will be automatically deployed to gh-pages branch (and the webpage will be updated)

99% of contributions should only need the following:

  • Add markdown files to the website/docs folder
  • Update the sidebar.js file to add a page to the sidebar
  • Put any images in website/docs/img/ and refer to them like this: ![](img/create-compute.png)

If you need to do anything more than adding a new page to the sidebar (e.g. modify the nav bar) then a) please refer to Docusaurus 2.

Previewing Changes Locally

  • Install npm and yarn: see docusaurus2 webpage

  • First time Docusaurus2 installation

    cd website
    npm install
  • Run local server while developing:

    cd website
    yarn start

Deployment

This repo has GitHub actions in place that automate deployment by watching the website branch. If you are interested in how deployment works then read on!

GitHub Actions

We use GitHub actions to automate deployment. Set up was as follows:

  • Generated new SSH key
    • NB. Since there was an existing ssh key tied the repo a new key was generated (in a different location) /tmp/.ssh/id_rsa
  • Add public key to repo's deploy key
    • NB. Allow write access
  • Add private key as GitHub secret
    • We use repo-level (not org level) secret
    • Secret is named GH_PAGES_DEPLOY
    • xclip -sel clip < /tmp/.ssh/id_rsa

Manual

It is possible to make manual deployments without use of the GitHub action above.

GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.

azureml-web's People

Contributors

lostmygithubaccount avatar aminsaied avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.