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

Copy to clipboard icon not showing in Material for MkDocs 9 #4754

Closed
5 tasks done
hamzakilic opened this issue Dec 12, 2022 · 1 comment
Closed
5 tasks done

Copy to clipboard icon not showing in Material for MkDocs 9 #4754

hamzakilic opened this issue Dec 12, 2022 · 1 comment
Labels
resolved by config change Issue can be mitigated by the reporter

Comments

@hamzakilic
Copy link

Contribution guidelines

I've found a bug and checked that ...

  • ... the problem doesn't occur with the mkdocs or readthedocs themes
  • ... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

when I run docker versions 9.***
code fence copy to clipboard is missing
but 8.5.** is working

Expected behaviour

I expected to see copy to clipboard icon

Actual behaviour

no clipboard icon

Steps to reproduce

run with docker
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material:9.0.0b4

test.md page

# test

import tensorflow as tf
apt update

Package versions

  • Python: python --version
  • MkDocs: mkdocs --version
  • Material: pip show mkdocs-material | grep -E ^Version

Configuration

site_name: My Docs
theme:
  name: material
  features:
    - navigation.tabs
    - navigation.top
    - navigation.instant
    - content.tabs.link


markdown_extensions:
  - abbr
  - admonition
  - attr_list
  - def_list
  - footnotes
  - md_in_html
  - pymdownx.superfences
  - pymdownx.highlight

System information

  • Operating system: ubuntu 18
  • Browser: chrome
@squidfunk
Copy link
Owner

squidfunk commented Dec 12, 2022

Thanks for reporting. This is a configuration error. Please read the section Changes to mkdocs.yml in the briefing for v9, which explains that you need to enable the copy to clipboard functionality explicitly now:

theme:
  features:
    - content.code.copy

Closing as configuration error.

@squidfunk squidfunk changed the title code fence copy to clipboard not working, also icon is missing at docker versions 9.**** but 8.5.* is working Copy to clipboard icon not showing in Material for MkDocs 9 Dec 12, 2022
@squidfunk squidfunk added the resolved by config change Issue can be mitigated by the reporter label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolved by config change Issue can be mitigated by the reporter
Projects
None yet
Development

No branches or pull requests

2 participants