- 
                Notifications
    
You must be signed in to change notification settings  - Fork 113
 
Add swagger to readthedocs #3124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Job to build swagger documentation
          
 No problem having GitHub CI create some optional artifact, which is the purpose of this PR. As to a follow-up PR to then use that artifact: Maybe this means slightly different configurations for the help pages built into the product and what's on https://control-system-studio.readthedocs.io/en/latest/. The product continues to support a local, offline build, and contains help pages relevant to the product. The https://control-system-studio.readthedocs.io/en/latest/ website has information about REST interfaces which don't need to be in the end-user product.  | 
    
          
 This makes sense to me. The end user help need not include a lot of things which we might still want to publish on the readthedocs  | 
    
Add a CI to upload swagger.json as an artifact.
The artifact can be used in readthedocs to generate the documentation.
The Phoebus readthedocs project must be modified as follow to generate the final html :
Here is the documentation : https://sphinxcontrib-openapi.readthedocs.io/
There is also a second plugin https://sphinxcontrib-redoc.readthedocs.io/en/stable/ but the first one uses the standard theme
Here is a preview made locally