Stosyk is a translations management system for software projects. Current repo contains documentation UI for APIs:
public
manage
admin
- Documentation(ReDoc):
- SwaggerUI:
- Look full spec: https://stosyk.github.io/openapi-spec/
Warning: All above links are updated only after Travis CI finishes deployment
- Install Node JS
- Clone repo and
cd
- Clone submodules
git submodule update --init --recursive
- Run
npm install
- Clone submodules
You can start only one instance of swagger-editor
at the moment, choose specification which you want to edit:
public
manage
admin
- Run
npm start --spec public
(replacepublic
if you need another spec) - Checkout console output to see where local server is started. You can use all links by replacing https://stosyk.github.io/apidoc/ with url from the message:
Server started <url>
- Make changes using your favorite editor or
swagger-editor
(look for URL in console output) - All changes are immediately propagated to your local server, moreover all documentation pages will be automagically refreshed in a browser after each change
TIP: you can open
swagger-editor
, documentation andswagger-ui
in parallel - Once you finish with the changes you can run tests using:
npm test
- All the changes with specs are saved inside submodule
openapi-spec
and should be commited separately.
If you want to run entire doc project do the following steps (note that swagger-editor
will not be started):
- Run
npm start
- Checkout console output to see where local server is started. You can use all links (except
preview
) by replacing https://stosyk.github.io/apidoc/ with url from the message:Server started <url>