Open Source Documentation
Documentation is made better when user can provide feedback and provide enhancement. pyATS strongly encourages community involvement in improving the documentation.
Here is a few examples of great enhancements to the documentation:
- Fix Typos
- Better wording, easier explanation
- More details, more examples
- Anything else to enhance the documentation
We welcome any changes to the documentation to make it easier to read, understand and provide more examples.
Available documentation
Structure of the documentation
- The documentation is built using Sphinx
- The file format of the documentation is
.rst - The URLs of each page follows the directory structure of the
pyats/docsdirectory on Github - For example:
- The file
pyats/docs/cli/pyats_run.rstcorresponds to the url: https://pubhub.devnetcloud.com/media/pyats/docs/cli/pyats_run.html
- The file
Contribute to documentation
To contribute, fork the repository, do the modifications and create a pull request. Once a pull request is created, it is reviewed and then merged and added to the main documentation.
Below is an example of the contribution flow.
Here we are using the pyATS docs as an example; Same steps applies to other packages
Go to the pyATS Github repository
On the top right corner, click
Fork. (see https://help.github.com/en/articles/fork-a-repo)
Clone the repository by running
git clone https://github.com/<your_github_username>/pyatscd pyats/docsDo your modification. Now to verify everything looks as expected, do the following steps
Please make sure you have the full pyats package installed via pip install pyats[full]
Use
make install_build_depsto install all of the build dependenciesRun
make htmlto generate documentation in HTMLWait until you see
Donein your terminalThe documentation is now built and stored under the directory
pyats/docs/__build__
Run
make serveto view the documentation on your browser or navigate to the repository and open the index.htmlCreate a PR after you have made your changes (see commit your changes & open a PR)
Approved documentation changes will be reflected at the release day (Last Tuesday of the month)
How to contribute to the pyATS community
- For detail on contributing to pyATS, please follow the contribution guidelines