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

Extract workedexample directive to new Python package if generalized #24

Open
jpmckinney opened this issue Dec 21, 2021 · 0 comments
Open

Comments

@jpmckinney
Copy link
Member

If there is a need for a similar way to tag and list content, then we should:

  • Rename the directives to something like taggedcontent and taggedcontentlist and add an option category in addition to tag. That way, we can set the category to workedexample or usecase or whatever else.
  • Change the taggedcontentlist (workedexamplelist) directive to just render the bullet list. We can then use that directive anywhere we like, whether in an admonition:
````{admonition} Worked examples
:class: note

Please refer to the worked examples relating to awards and contracts:

```{taggedcontentlist} workedexample awardscontracts
```
````

Or in the body of the page:

Please refer to the worked examples relating to awards and contracts:

```{taggedcontentlist} workedexample awardscontracts
```
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

No branches or pull requests

1 participant