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

Remove front matter from sidebars with front-matter plugin #2001

Open
ErikApption opened this issue Mar 9, 2023 · 1 comment
Open

Remove front matter from sidebars with front-matter plugin #2001

ErikApption opened this issue Mar 9, 2023 · 1 comment

Comments

@ErikApption
Copy link

Feature request

What problem does this feature solve?

Enable yaml front matter in sidebars

What does the proposed API look like?

I am not sure if the current hook.beforeEach is processed with sidebars. Is there an existing hook for sidebar rendering?

How should this be implemented in your opinion?

Add a hook for sidebar rendering and add the beforeEach in front-matter to the sidebar hook.

Are you willing to work on this yourself?

Would need a bit of guidance on the sidebar rendering

@Koooooo-7
Copy link
Member

Hi @ErikApption , IIUC, do you wanna process/parser the text of sidebar before it to be rendered?
Currently, docsify doesn't have expose the sidebar content via hooks yet.
FYI, At this part above, the text is the original content of sidebar and gonna be rendered to html.

sidebar(text, level) {

ErikApption added a commit to ssc-sp/datahub-portal that referenced this issue Mar 14, 2023
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

2 participants