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

TOC should be allowed to display with @media print #278

Open
slorber opened this issue Nov 23, 2022 · 0 comments
Open

TOC should be allowed to display with @media print #278

slorber opened this issue Nov 23, 2022 · 0 comments

Comments

@slorber
Copy link
Collaborator

slorber commented Nov 23, 2022

When printing a doc (or sending it to your Kindle) it should be possible to print the table of contents in certain situations.

Hiding the right TOC makes sense in most cases, but not in many others.

It is likely more the responsibility of Docusaurus to decide when a TOC can be printed, not Infima which currently does:

.table-of-contents {
  @media print {
    display: none;
  }
}

CleanShot 2022-11-23 at 17 01 06@2x

https://docusaurus.io/docs/next/markdown-features/toc#inline-table-of-contents

Reported in facebook/docusaurus#8362

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

1 participant