-
Content creation step: First, you add or edit the actual content. Specifically, this means adding to or editing the various Markdown (filetype
.md
) files located incontent/
.- TODO: We should gradually describe with more detail here.
-
"Building" step: Second, you should "build" the Markdown content into actual HTML pages. This is done automatically when you run
python build.py
ormake
from the main directory. For installation of the python packages/environment, see below. -
Git push step: At this point, you should be ready to push! Make a PR from your fork so we can then merge your changes.
-
If you have
make
installed (which you can check by runningwhich make
), and also have Anaconda installed, then this is super easy. You can create a new conda environment simply by runningmake create-conda-env
.- This will create a conda environment named
website-redesign
which you can use to run all the python code in this repository without needing to install anything else (including Pandoc). - If you use this method, then you can run the "build" step simply by typing
make
in the main directory. This is equivalent to runningpython build.py
. - If you get an error about not having
make
and want to use it, then you can install Xcode Command-Line Tools simply by running the commandxcode-select --install
.
- This will create a conda environment named
-
If you only have Anaconda installed but not
make
, then you can create the same environment by simply running the following command:
conda env create --yes --file environment.yml
- If you don't use Anaconda, you can use the
requirements.txt
file to install the necessary Python packages, such as by running:
pip install -r requirements.txt
- Note that you may have to additionally install Pandoc in this case, such as by running
python -c 'import pypandoc ; pypandoc.download()'
or something similar.