Before you can start working with this documentation you only need to know markdown syntax.
Markdown syntax documentation is available here
To verify locally how changes made look run
bash testlocal.sh
Please take a note that due to certain Github assumptions and page structure images are not displayed on local version (documentation on Github sits in sub-directory, while local version is in top-level directory)
To automatically deploy currently made changes perform desired changes simply run
bash publish.sh documentation-update-name
Where documentattion-update-name
is branch name to which changes will be pushed.
After script executes, please open a Pull Request in documentation repository https://github.com/Transeu/api-rest-documentation/
Please also be aware that it will be required for development team to review changes and accept them before they will be published.
After content review has been done documentation content should be updated accordingly.
It is not necessary to publish them to new branch and create a new Pull Request.
It is possible to simply run
bash update.sh
and new content will be generated and pushed to current branch.
Important note - script will not allow to push changes directly to gh-pages
branch.
-
Generate production ready documentation
cd _src bin/sculpin install bin/sculpin generate --env=prod --url=http://transeu.github.io/api-rest-documentation
The site will be generated in
output_prod/
. -
Go to parent directory
cd ..
-
Move generated documentation
cp -rf _src/output_prod/* .
-
Clean up
rm -rf _src/output_*
-
Commit and push changes
git add . git commit -m 'documentation update' git push
In case you have any questions or suggestions regarding this documentation please contact [email protected]