Closed niksirbi closed 1 year ago
docs
directory, as it would be for a python packagedocs/source
.docs/source/conf.py
. Important fields:
html_theme = 'pydata_sphinx_theme'
html_title = 'Troubleshooting'
index.rst
is the homepage, which currently contains a TOC. This links to the actual content. which is currently stored as .md files in docs/source/pages
. Headings up to the 3rd level appear in the TOCThis action looks for Sphinx documentation folders in the project. It builds the documentation using Sphinx and any errors in the build process are bubbled up as GitHub status checks. The main purposes of this action are:
This workflow is triggered from pushes on main (and temporarily on this branch, for testing).
docs/requirements.txt
sphinx-build
gh-pages
branch using this GitHub action.gh-pages
branch gets automatically picked up by GitHub and published by default on neuroinformatics-unit.github.io/troubleshooting. GitHub pages needs to be enabled from GitHub repository settings.git clone --branch deploy_website https://github.com/neuroinformatics-unit/troubleshooting.git troubleshooting
cd troubleshooting
pip install -r docs/requirements.txt
sphinx-build docs/source docs/build
The website can be viewed locally by opening docs/build/index.html
docs/source/pages
, but directly in docs/source
(simplifies URLs)html_baseurl = 'https://troubleshooting.neuroinformatics.dev/
in conf.py
automatically creates the CNAME in build@lauraporta you may now proceed with the review
Configured
sphinx
withpydata_sphinx_theme
and ability to render.md
docs into.html
. Currently working on auto-deploying the generated html build to a custom domain.