- Notifications
You must be signed in to change notification settings - Fork26
Cantera/cantera-website
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository contains the source code for thecantera.org website. Thesite is built using theSphinx static site generator.
Install
pdm
. Recommended method is to usepipx
.Run
pdm install
to create the virtual environmentRun
pdm run build
to build the website, or runpdm run rebuild
to automatically rebuild the website when a page changes.Run a web server to view the website:
python -m http.server 8080 --directory build/html
Open a browser tohttp://localhost:8080
When you're ready to shut things down, close the web server withC-c
(CTRL-c
)
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 browserPress
C-c
(CTRL-C
) to close the Python HTTP server
About
Official Cantera Website