Skip to content
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

Automatically include sample code into user guide #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbrukman
Copy link
Member

This change add scripts to generate user_guide.md automatically from special
markers that are now visible in the source file user_guide.md.in. This allows
us to easily keep the source code up-to-date in the docs without having to
manually copy-paste the code, and to ensure that the code we test (in the
example files) is exactly the code that ends up in the documentation.

Closes #54


Incidentally, this change also demonstrated that paths to sample files were broken since PR #59, and now that we automatically include them in, such a change would be an error.

docs/doc_gen.py Show resolved Hide resolved
docs/doc_gen_diff.sh Outdated Show resolved Hide resolved
docs/doc_gen_test.py Outdated Show resolved Hide resolved
This change add scripts to generate `user_guide.md` automatically from special
markers that are now visible in the source file `user_guide.md.in`. This allows
us to easily keep the source code up-to-date in the docs without having to
manually copy-paste the code, and to ensure that the code we test (in the
example files) is exactly the code that ends up in the documentation.

Closes google#54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source in sample code into Markdown docs automatically
2 participants