The documentation is built using Sphinx and reStructuredText.
This guide is copied from the official ASP.NET Docs.
Once you have cloned the Docs to your local machine, the following instructions will walk you through installing the tools necessary to build and test.
-
Download python version 2.7.10 or higher (Version 3.5 is recommended). If you install 3.5, check the include python in path option.
-
Skip this step if you installed python 3.5 and checked the "include in python path" option. If you are installing on Windows, ensure both the Python install directory and the Python scripts directory have been added to your
PATHenvironment variable. For example, if you install Python into the c:\python34 directory, you would addc:\python34;c:\python34\scriptsto yourPATHenvironment variable. -
Clone the docs:
git clone https://github.com/Sitecore/Helix.Docs.git -
Navigate to the Docs repo and install the build dependencies:
cd Helix.Docspip install -r requirements.txt
Note: You might need to run this command from Power Shell.
-
Navigate to the helix directory and run
make.batcd helixmake.bat html -
Once make completes, the generated docs will be in the .../Helix.Docs/helix/_build/html directory. Open the
index.htmlfile in your browser to see the built docs for that project.make livehtmlis recommended, see the next section.
You can also install sphinx-autobuild which will run a local web server and automatically refresh whenever changes to the source files are detected. To do so:
-
Run
make livehtml(make.bat on Windows, Makefile on Mac/Linux) from the helix directorymake.bat livehtml -
Browse to
http://127.0.0.1:8000to see the locally built documentation. -
Hit
^Cto stop the local server.