scipy / scipy-sphinx-theme-v2

New version of scipy-sphinx-theme to be used across NumPy documentaton page and subpages.
https://pr-72-scipy-sphinx-theme-v2.surge.sh/
3 stars 5 forks source link

Local Development

Run python setup to install the theme:

python setup.py install

To install the dependencies for this theme, run:

pip install -r dependencies/requirements.txt

In the root directory install the dependencies of package.json:

# node version 8.4.0
npm install

Now we can run the generated docs in localhost:1919 using :

grunt

Grunt options

This will first look for the path of the numpy/doc in .env file. To make it work we first need to speficy the path of the numpy source folder.

Example: If you have placed the numpy source code in the same directory of the scipy-sphinx-theme-v2 then .env file will have:

{

"DOCS_DIR":"../numpy/doc/source"

}

Using this command sphinx build command will run for the project dir on the build directory.

Default project directory is demo-docs. You can specify the project directory using grunt --project=docs build. Now the new project directory will be whatever is set in your .env file.

Build directory will be project_dir/build.

If you have already build the HTML files and just want to get it live on localhost:2121 (means skip the build part), then run grunt serve.

This command will serve the build directory on localhost:2121.

Note:

Surge deploy