quarto-dev / quarto-dev/quarto-cli

Sidebar not displayed if no Quarto document

Open
#9,242 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug websites
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

The sidebar is not displayed if it does not include a Quarto document even-though there is content such as external links.

Sidebar displayedSidebar not displayed
project:
  type: website

website:
  title: "Test"
  page-navigation: true
  navbar:
    left:
      - text: "External working"
        href: "https://quarto.org"
        target: "_blank"

  sidebar:
    - title: "Dropdown"
      contents:
        - text: "External working"
          href: "https://quarto.org"
          target: "_blank"
        - index.qmd

format:
    html: default
project:
  type: website

website:
  title: "Test"
  page-navigation: true
  navbar:
    left:
      - text: "External working"
        href: "https://quarto.org"
        target: "_blank"

  sidebar:
    - title: "Dropdown"
      contents:
        - text: "External working"
          href: "https://quarto.org"
          target: "_blank"

format:
    html: default

Originally posted by @mcanouil in https://github.com/quarto-dev/quarto-cli/issues/9153#issuecomment-2029528267

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the minimal Quarto project configuration shown in the issue and reproduce the sidebar behavior with only an external link in its contents. Compare it with the configuration that includes index.qmd; done means the sidebar is rendered for external-only contents as well.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.