Source code for gofs.org.
This site was built using MkDocs, a static site generator, and Material for MkDocs, a technical documentation theme for MkDocs.
Warning
A private token from MKDocs Material Insiders is required to build this site.
- In Terminal, change the directory to one where you wish to build the site.
- Ensure you have an up-to-date version of pip:
- Linux:
pip install pip
orpip install --upgrade pip
- macOS:
pip3 install pip
orpip3 install --upgrade pip
- Linux:
- Clone this repository:
git clone https://github.com/MobilityData/gofs.org
- Change the directory to the cloned repository, and create & enable a Python virtual environment:
python3 -m venv venv
source venv/bin/activate
- Have
requirements.txt
installed:- Linux:
pip install --force-reinstall -r requirements.txt
- macOS:
pip3 install --force-reinstall -r requirements.txt
- Linux:
- Have Material for MkDocs Insiders installed. Substitute
${GH_TOKEN}
with a valid access token:- Linux:
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
- macOS:
pip3 install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
- Linux:
- To run the site locally (command defined in
MakeFile
):make serve
- Then each language will have it's own address:
- English:
http://127.0.0.1:8000/
- English:
- To build the site locally only (command defined in
MakeFile
):make build
- Deactivate the Python virtual environment when done:
deactivate
Except as otherwise noted, the content of this site is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License.