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

Using docsify-select to do profiling for a whole page #9

Open
je-hal opened this issue Aug 13, 2020 · 1 comment
Open

Using docsify-select to do profiling for a whole page #9

je-hal opened this issue Aug 13, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@je-hal
Copy link

je-hal commented Aug 13, 2020

Is your feature request related to a problem? Please describe.
We often have the issue that we need to maintain the same documentation for different target groups. The differences for them are minimal. We would like to maintain these differences once, and reuse the rest of the markdown text.

docsify-select is a plug-in that seems to offer this, but we'd have to duplicate the whole markdown text, and double maintain them.

Describe the solution you'd like
I'd like to be able to define the list box entries once for a complete markdown page, for example, "internal" and "default", and then be able to use a syntax in the markdown file to mark the beginning and the end of such sections, for example:

# Bake a cake

## What you need

1. Flour.
1. Sugar.
~~start:internal~~
1. Secret ingredient.
~~end:internal~~
1. Eggs.

For "default" all sections marked with start:**** / end:**** should be hidden.

Describe alternatives you've considered
I checked on docsify-mustache, but it seems it can only print out the values of variables, but cannot evaluate them to hide text snippets.

If you know if any alternatives to use profiling with docsify, it would be great if you could point me to them.

@je-hal je-hal added the enhancement New feature or request label Aug 13, 2020
@je-hal
Copy link
Author

je-hal commented Oct 21, 2020

Anyone interested in this enhancement?

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