This book deploys on all successful commits to https://curricula.cs.luc.edu/. See this site for additional details.
You can also get PDF from the Releases tab on this page.
-
Start by setting up a virtual environment using
python3 -m venv env-name
-
source env-name/bin/activate
-
Run
pip install -r requirements.txt
-
If you want PDF output, install texlive.
-
Clone using
git clone --recurse-submodules --depth 1 git@github.com:<org-or-user>/curricula.git
-
make html
ormake latexpdf
In our project, the intent is that you will be largely read-only on submodules as you likely have a checked out folder somewhere for each submodule. Submodules are anchored at a specific commit. But you can always update to the latest branch/commit.
If you cloned without --recurse-submodules
:
- git submodule update --init --recursive
If you want to update:
- git pull --recurse-submodules
If you want to run a git command on every submodule:
- git submodule foreach 'git remote -v'
To add more submodules:
git submodule add [URL to Git repo] git submodule init
To add a submodule but use a specific branch (sometimes necesssary for master
vs. main
)
git submodule add -b master [URL to Git repo]
git submodule init kko
To ensure the latest commit is being used for a submodule:
git add [submodule directory] git commit -m "move submodule to latest commit in master"