Moved to ghcr.io/spaceapi/website
1M+
This 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 virtualenv VENV
source VENV/bin/activate
Install dependencies:
pip install -U -r requirements.txt
Run dev server:
lektor server -f webpack -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/apps/ directory, copy one of the existing apps and adjust itThe website should auto-deploy after a push to master. The update might take a few minutes though.
API documentation is generated from the schema. To update:
python3 generate_api_docs.py ../schema/13.json > content/docs/contents.lr
Content type
Image
Digest
sha256:3c5b20307…
Size
13 MB
Last updated
over 1 year ago
docker pull spaceapi/website