This repository contains the source code for the cantera.org website. The site is built using the Sphinx static site generator.
-
Create a virtual environment for Sphinx using
conda
and activate it. The environment must have Python 3.10 and theconda-lock
package. -
Clone the Cantera website source:
git clone https://github.com/Cantera/cantera-website.git
-
Enter the website repo:
cd cantera-website
-
Inside the website repo, install the required packages:
conda-lock install continuous-integration/conda-lock.yml --name <name-of-your-environment>
-
Build the website and open in browser:
make html && python -m http.server --directory build/html
then navigate tolocalhost:8000
in your browser -
Press
C-c
(CTRL-C
) to close the Python HTTP server