Skip to content

ability to specify the nav element #1525

Open
@Evidlo

Description

@Evidlo

I'm trying to embed docsify within an existing template, but I'm having a problem where docsify is hijacking my template's <nav> tag.

Looking through the source, it seems like docsify chooses the first <nav> on the page.

Is there any chance we could get a nav_el config option that lets us specify the id of the <nav> element we want to use?

Activity

changed the title [-]Controlling which <nav> is selected[/-] [+]Embedding within a webpage[/+] on Mar 8, 2021
Koooooo-7

Koooooo-7 commented on Mar 9, 2021

@Koooooo-7
Member

not yet, we register selectors just on nav rn. could u give us a simple demo to reproduce it ?
we will check it, thx a lot.

pauldraper

pauldraper commented on Sep 26, 2021

@pauldraper

related #799

changed the title [-]Embedding within a webpage[/-] [+]ability to specify the `nav` element[/+] on Jan 12, 2022
trusktr

trusktr commented on Jan 12, 2022

@trusktr
Member

This will be part of #799. #799 needs a few more things besides the nav fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      ability to specify the `nav` element · Issue #1525 · docsifyjs/docsify