These are the sources for the SpaceAPI website.
The website is generated using Lektor, a static site generator written in Python. This simplifies hosting and makes the website very fast.
Prerequisites:
Create and activate a virtualenv:
python3 -m venv VENV
source VENV/bin/activate
Install dependencies:
pip install -U -r requirements.txt
Run dev server:
lektor server -f scsscompile
Now open http://localhost:5000/
in your browser.
Prerequisites:
To use docker you can run:
docker build -t website -f Dockerfile_dev .
docker run -v $(pwd):/code -it -p5000:80 website
Then open http://localhost:5000
content/stuff/
directory, copy one of the existing models and adjust itThe website should auto-deploy after a push to master. The update might take a few minutes though.
Schema documentation is generated from the schema. To update:
python3 generate_schema_docs.py ../schema/14.json > content/docs/contents.lr