Skip to content

merging _sidebar.yml with other sidebar options #330

Answered by machow
anielsen001 asked this question in Q&A
Discussion options

You must be logged in to vote

I would like to integrate with quartos hybrid navigation so that the sidebar adjusts on context.

This should be possible now. For example, the quartodoc site has a sidebar for its Get Started Guide, and another for its API Reference. You should be able to add the sidebar for you other page (e.g. the Get Started Guide), and see the sidebar there.

metadata-files:
  # sidebar for API reference ------------------
  - api/_sidebar.yml

website:
  title: "quartodoc"
  page-navigation: true
  navbar:
    left:
      - file: get-started/overview.qmd
        text: Get Started
      - href: api/
        text: Reference

  sidebar:
    # Sidebar for get started guide ------------------
    - id: g…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@anielsen001
Comment options

@machow
Comment options

Answer selected by machow
@machow
Comment options

@anielsen001
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants