Skip to content

dipy/workshop.dipy.org

Repository files navigation

Workshop.dipy.org

The DIPY Workshop website

Background

This site makes use of Sphinx and was built upon Bootstrap via Pydata Sphinx Theme.

We use Github Webhook to deploy the website and IU server (Indiana University) to host the website. The deployment is automatic. As soon as push to main branch happened (via merged Pull Request or direct commit), the webhook is sent to hosting server (IU) which pull the last changes and update the website.

Index

  • _static: Contains all assets (images, CSS, JS) for Sphinx to look at.
  • _templates: Contains html layout for custom Sphinx design.
  • _build: Contains the generated documentation.
  • sphinxext: Sphinx custom plugins (Especially multiple custom directive).

Testing Locally: Doc generation steps:

Installing requirements

To set up your computer to run this site locally, you need to install the various Python packages in the requirements.txt at the top level of this repository.

$ pip install -U -r requirements.txt
$ pip install pre-commit
$ pre-commit install

Generate all the Documentation

Under Linux and OSX

$ make -C . clean && make -C . html
$ pre-commit run --all-files

Under Windows

$ ./make.bat clean
$ ./make.bat html

This will build a collection of html pages under _build/html and you can open the index.html using your browser of choice.

Creating a PR

When you are happy with any changes you have made to the website. We recommend building the website and making sure that everything is building fine. You should see no warnings for the build.

Once you are sure everything is in order, you can send a PR to this repository. If you are unfamiliar with this, please see this guide from GitHub.

PR Review

When a PR is opened, Github Action will create a preview of any content or style changes.

This must pass before the PR will be merged, furthermore, one review is required before a PR can be merged as well.

Releases

No releases published

Packages

No packages published

Contributors 5