Skip to content

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

@slorber

Description

@slorber

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions