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

Code Samples #47

Open
mjarvis opened this issue Mar 7, 2022 · 1 comment
Open

Code Samples #47

mjarvis opened this issue Mar 7, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@mjarvis
Copy link
Owner

mjarvis commented Mar 7, 2022

It would be beneficial for exhibition to be able to generate sample code from the exhibition definition.

At first, we can just use the exhibit content directly. Potential improvements include replacing context.parameter(...) with the default value for each parameter.

These snippets should be able to be selected + copied for use in a project.

@mjarvis mjarvis added the enhancement New feature or request label Mar 7, 2022
@mjarvis
Copy link
Owner Author

mjarvis commented Mar 14, 2022

Explorations in mjarvis/docs including an extremely naive proof of concept that pulls the sample via sourcery from defaultValue in type.staticVariables where name == "exhibit"

Screen Shot 2022-03-14 at 09 26 02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant