Skip to content

"Edit this page" should not show up on print view #11462

@richk21

Description

@richk21

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

When you open any doc page, it has a "Edit this page" button. When you try to print that page, ideally this button should disappear, but it doesnt.
previously listed on the Docusaurus feedback page: https://docusaurus.io/feature-requests/p/hide-edit-this-page-when-printing
Image

Reproducible demo

No response

Steps to reproduce

Reproduction Steps

  1. open any doc page
  2. navigate to the doc footer
  3. you'll see a "Edit this page" button in green font
  4. do ctrl+p or right click and select print option
  5. scroll down to the bottom of the print view
  6. you will still see the "Edit this page" button, which should not be visible.

Expected behavior

it should not show the "Edit this page" button on print view

Actual behavior

it still shows the "Edit this page" button on print view

Your environment

  • Public source code:
  • Public site URL:
  • Docusaurus version used:
  • Environment name and version (e.g. Chrome 89, Node.js 16.4):
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions