Skip to content

Seamless sync between docs/ and examples/ #162

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

Open
lazyoracle opened this issue Dec 22, 2021 · 0 comments
Open

Seamless sync between docs/ and examples/ #162

lazyoracle opened this issue Dec 22, 2021 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@lazyoracle
Copy link
Member

lazyoracle commented Dec 22, 2021

Describe the missing feature

Most of the playbook documentation under docs/ is derived from the notebooks in examples/. However, while we have CI checking the notebooks never go out of sync and are always updated with breaking code changes, this is not the case for the playbooks in the documentation.

Describe the solution you'd like

The current workflow for generating the docs/ content from the notebooks in examples/ is to use jupyter nbconvert --to=rst examples/[notebook name].ipynb manually from the terminal and then committing the resulting rst files and images. This is obviously not great for ensuring stuff stays in sync.

We probably start enforcing this manually and then move to a more automated approach.

  • Enforce updating example documentation in API breaking PRs
  • Use jupyterbook to directly obtain the documentation from example notebooks.

Describe alternatives you've considered

  • Manually checking the example documentation every few months to ensure things aren't out of date.
  • Fixing things when a newcomer tries to use the code and ends up with examples that break on the latest version

Additional context

Add any other context or screenshots about the feature request here. Please feel free to suggest details about how you believe this feature request might be best implemented. If you have used similar features in other libraries, consider providing links or resources to example implementations.

@lazyoracle lazyoracle added the documentation Improvements or additions to documentation label Dec 22, 2021
@lazyoracle lazyoracle self-assigned this Dec 22, 2021
@lazyoracle lazyoracle added this to the 1.5 milestone May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant