neuroinformatics-unit / HowTo

NIU website on common software problems and their troubleshooting
http://howto.neuroinformatics.dev/
Creative Commons Attribution 4.0 International
9 stars 1 forks source link

Deploy website #6

Closed niksirbi closed 1 year ago

niksirbi commented 1 year ago

Configured sphinx with pydata_sphinx_theme and ability to render .md docs into .html. Currently working on auto-deploying the generated html build to a custom domain.

niksirbi commented 1 year ago

Sphinx configuration

GitHub workflows

A. Pull Request Docs Check

This 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:

B. Build and Deploy Docs

This workflow is triggered from pushes on main (and temporarily on this branch, for testing).

How to build the website locally

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

niksirbi commented 1 year ago

Latest major changes

@lauraporta you may now proceed with the review