This repository contains sources of the airfocus API documentation, served at the https://developer.airfocus.com
This project uses GitHub Pages and Jekyll
with a customized Just The Docs theme.
The project runs on Ruby, which is provided via Docker Image.
All the Ruby dependencies are defined in the Gemfile and Gemfile.lock.
All the sources are located in the ./docs folder:
- every
docs/*.mdordocs/*.htmlfile represents a page on the website docs/_config.ymlfile contains the Jekyll configuration of the websitedocs/assetsfolder contains customisations, as well as downloaded Swagger UI assetsdocs/_sasscontains custom color scheme for the Just The Docs theme
You need to have installed Docker, and optionally make tool.
- open terminal in the root of this project
- run
make startto start the local server - watch the logs (
make logs) until you see the messageServer running... press ctrl-c to stop. This can take a few minutes, as it needs to install all the ruby dependencies. - open http://127.0.0.1:4000 in your browser (the printed URL in the logs may not work)
Any changes in the ./docs folder (except the _config.yml file) will be automatically recompiled.
If you change the _config.yml file, then you need to restart the server make restart.
Security vulnerabilities are reported by dependabot, and can be found in the "Security > Dependabot" tab of this repository.
To update a Ruby gem:
- run
make bashto open a bash shell in the docker container - run
bundle update <gem-name>to update the gem - check the changes in the
Gemfile.lockfile, and commit them