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

Exclude/include texts in Markdown via vuepress #1949

Closed
Minhsh opened this issue Oct 14, 2019 · 2 comments
Closed

Exclude/include texts in Markdown via vuepress #1949

Minhsh opened this issue Oct 14, 2019 · 2 comments

Comments

@Minhsh
Copy link

Minhsh commented Oct 14, 2019

Hi, I am working for a project that has different versions and likewise its documentation has different versions (with minor differences). We want to maintain single source Markdown and generate different html output to reduce the maintenance efforts. So, I am wondering if this is achievable with vuepress? Specifically is it possible to show/hide some texts in the html output generated by vuepress? Thanks!

@kefranabg
Copy link
Collaborator

If you're talking about a versioning mechanism, this is a duplicate of #1018 .

FIY you can also customize VuePress with theme inheritance. You can also use vue syntax within your markdown files, that combined with page & siteConfig data maybe you could solve your problem.

Feel free to comment this post if I misunderstood something.

@RayKimEX
Copy link

Hi, I want to use this feature like embed-files , not using theme inheritance and combiend with page & siteConfig data. because embed-files more maintainable than that you suggested @bencodezen @kefranabg @ulivz

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

3 participants