Source code for gbfs.org.
This site was built using MkDocs, a static site generator, and Material for MkDocs, a technical documentation theme for MkDocs.
To edit the General Bikeshare Feed Specification reference, go to the MobilityData/gbfs repository.
To propose a feature, content addition, or UI/UX improvement, open an issue or pull request on this repository.
Alternatively, you can provide feedback using this form.
GBFS.org uses Simpleen, an automated machine learning translation tool, to ensure translations are kept up to date with repository changes.
- 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/gbfs.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 MobilityData's 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:
- Assuming you are still in the cloned repository, run this command to update the content for the specification references and best practices:
bash scripts/fetchdata.sh
- 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/
- French:
http://127.0.0.1:8001/
- Spanish:
http://127.0.0.1:8002/
- 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.