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

repo-actions links do not appear if there is no TOC #2142

Closed
4 tasks done
maelle opened this issue Aug 26, 2022 · 3 comments
Closed
4 tasks done

repo-actions links do not appear if there is no TOC #2142

maelle opened this issue Aug 26, 2022 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@maelle
Copy link
Contributor

maelle commented Aug 26, 2022

Bug description

I created a book project using RStudio and only added the repo-url and repo-actions

In _quarto.yml I have

book:
  title: "sidebarbug"
  author: "Jane Doe"
  date: "8/26/2022"
  chapters:
    - index.qmd
    - intro.qmd
    - summary.qmd
    - references.qmd
  repo-url: https://github.com/maelle/sidebarbug/
  repo-actions: [edit, issue]

Source: https://github.com/maelle/sidebarbug

Now on the page where there is a TOC (because there are headers) the repo action links are present. https://maelle.github.io/sidebarbug/
But on the pages where there is no TOC (which is expected as there are no headers) the repo action links are not present (which I was not expecting). https://maelle.github.io/sidebarbug/intro.html

I don't think this is relevant but just in case, I am using
RStudio 2022.07.0+548 "Spotted Wakerobin" Release (34ea3031089fa4e38738a9256d6fa6d70629c822, 2022-07-06) for Ubuntu Bionic
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36
Ubuntu 20.04.4 LTS

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.
@maelle maelle added the bug Something isn't working label Aug 26, 2022
@dragonstyle dragonstyle self-assigned this Sep 14, 2022
@dragonstyle dragonstyle added this to the v1.2 milestone Sep 14, 2022
@dragonstyle dragonstyle modified the milestones: v1.2, v1.3 Sep 23, 2022
@elgabbas
Copy link

I recently noticed the exact issue using v1.3.24.

@dragonstyle
Copy link
Collaborator

This should be fixed in our next pre-release build. You have a couple of choices:

  1. Force the actions to appear in the sidebar even when there is no TOC by adding repo-actions: true to your qmd like so:
---
repo-actions: true
---

This is a document with no header or TOC
  1. Starting in Quarto 1.3, we will attempt to place the tools in the TOC or sidebar if we can, and if none of those are present, we will place them in the footer of the page.

Thanks for reporting this!

@maelle
Copy link
Contributor Author

maelle commented Feb 21, 2023

Thanks for this fix and the one for #4404! 🚀 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants