infima icon indicating copy to clipboard operation
infima copied to clipboard

TOC should be allowed to display with @media print

Open slorber opened this issue 2 years ago • 0 comments

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 https://github.com/facebook/docusaurus/discussions/8362

slorber avatar Nov 23 '22 16:11 slorber