This repository holds the sources for the documentation of the web API that was released in 1.7.
The API documentation can be found here: api.akeneo.com.
Node.js is required. You can optionally choose Yarn as package manager instead of NPM (provided with NodeJS by default).
First, install the all dependencies with Yarn:
yarn install
or with NPM:
npm install
Then run the Gulp server, with Yarn:
yarn serve
or with NPM:
npm serve
The API documentation site is then available on localhost:8000
.
Files located in the content and src directories are watched for changes, so when developing you do not need to launch any other task.
make serve
Prerequisites are:
- Having your SSH key deployed on the server (see Ansible configuration).
- (optional) Having a
~/.ssh/config
with an Host alias to the server. - Having a
config.json
with the deploy configuration defined for the targeted ENV (seeconfig.json.dist
).
make deploy-staging
As our YAML Swagger spec uses references and links, it is considered as non-valid.
During the build, we generate a valid JSON specification that is put under the content/swagger
folder. Don't forget to version it if you made any change into the YAML Swagger spec.