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

Gencode to include inline examples from test directory #431

Closed
wants to merge 24 commits into from

Conversation

noursaidi
Copy link
Collaborator

@noursaidi noursaidi commented Aug 25, 2022

Draft PR of some code I've done previously to which does a live in-place update of documentation with examples from the examples folder for review.

It includes a check function for CI testing, but I just need to have a think about how it integrates (because gencode check still runs gendocs, which means the documentation is updated before it's checked)

Usage:
Include anywhere in an MD document <!--example:state/example.json--> where state is the bit preceding the .tests (e.g. event_discovery) and example.json is the name of the file to include.
Run bin/gencode_docs_examples to update examples in documentation, or bin/gencode_docs_examples check to check if the documentation includes latest examples

@noursaidi noursaidi closed this Sep 10, 2022
@grafnu
Copy link
Collaborator

grafnu commented Oct 11, 2022 via email

@noursaidi
Copy link
Collaborator Author

@grafnu
Copy link
Collaborator

grafnu commented Oct 11, 2022

This PR was closed... is it still live? Seems like it's a good idea still?

@noursaidi
Copy link
Collaborator Author

It was merged into #447 and then eventually into master

@grafnu
Copy link
Collaborator

grafnu commented Oct 11, 2022 via email

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.

None yet

3 participants