The documentation is hosted on GitHub pages using Jekyll as a static site generator.
The website automatically created from the sources files found in this directory is available at https://azure.github.io/Azure-CloudIntelligence-SolutionAuthoringWorkspace/.
Markdown (.md) files in this directory are the main documentation pages.
SAW/CIQS release notes are the Markdown (.md) files inside the _posts directory.
Set Source to master branch /docs folder:
This will result in the creation of a private SAW Documentation website (e.g., https://wdecay.github.io/Azure-CloudIntelligence-SolutionAuthoringWorkspace/).
This can be done either directly on GitHub by using its rich file management features, or by cloning your private repo and making the changes locally.
Changes pushed into the master branch of your private repo are immediately reflected in the GitHub Pages website created earlier.
Open a new pull request after making sure the updates are correctly rendered on your private documentation website.
Read the official GitHub help page on creating a pull request from a fork for additional guidance.
For most contributors, file management and editing features available on GitHub should be sufficient. Some, however, may want to set up a local environment to test their changes. This is particularly useful when modifying the documentation website's layout, which requires editing HTML, SCSS and other files found inside the _includes, _layouts and _sass directories.
GitHub provides instructions on setting up your GitHub pages site locally with Jekyll. Running Jekyll natively on Windows is possible, but the setup process is rather tedious and poorly documented. The instructions below suggest an alternative approach with a more straight-forward configuration.
- Bash on Ubuntu on Windows running or upgraded to Ubuntu 16.04 (Xenial). Ubuntu 14.04 shipped before the Windows 10 Creators Update will not work!
- Your private SAW repository cloned to a Windows drive (e.g., C:\work\Azure-CloudIntelligence-SolutionAuthoringWorkspace).
-
Open the Bash on Ubuntu on Windows shell and run the following commands:
$ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get install ruby ruby-dev make g++ $ sudo gem install bundler
-
Locate the Azure-CloudIntelligence-SolutionAuthoringWorkspace/docs directory in the Linux filesystem.
Assuming the corresponding Windows location is C:\work\Azure-CloudIntelligence-SolutionAuthoringWorkspace\docs, that can be achieved with the following command:
$ cd /mnt/c/work/Azure-CloudIntelligence-SolutionAuthoringWorkspace/docs
-
From the docs directory in the Bash shell, run:
$ bundle install
Once the steps above are completed, you can launch SAW Documentation website locally from the Bash shell with the following command:
$ bundle exec jekyll serve
Edit the website (content or layout) using your favorite editor on Windows (we recommend Visual Studio Code). Jekyll will automatically detect the changes you make and regenerate the pages on the fly.
The URL to access the local documentation website is http://localhost:4000
.