Skip to content

documentation: Add copy button to code snippets #5220

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

Merged
merged 9 commits into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions doc/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,50 +40,30 @@
color: var(--pst-color-text-base, #2e2e2e); /* Uses theme variable if available */
}

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
margin-top: 1.5em;
margin-bottom: 0.75em;
}

p {
margin-bottom: 1.2em;
}

h1 {
font-size: 2.25rem;
font-weight: 700;
line-height: 1.3;
color: var(--pst-color-text-base, #2e2e2e);
margin-top: 2rem;
margin-bottom: 1rem;
}

h2 {
font-size: 1.75rem;
font-weight: 600;
line-height: 1.4;
margin-top: 2rem;
margin-bottom: 1rem;
}

h3 {
font-size: 1.4rem;
font-weight: 600;
margin-top: 1.75rem;
margin-bottom: 0.75rem;
}

p {
font-size: 1rem;
font-weight: 400;
line-height: 1.6;
color: var(--pst-color-text-base, #2e2e2e);
margin-top: 0;
margin-bottom: 1rem;
}

Expand Down
3 changes: 2 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"sphinx.ext.autosectionlabel",
"myst_parser",
"sphinx_design",
"sphinx_tabs.tabs"
"sphinx_tabs.tabs",
"sphinx_copybutton"
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
3 changes: 2 additions & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ graphene<4.0
myst-parser>=0.18.0
sphinx-design>=0.4.1
sphinx-book-theme
sphinx-tabs
sphinx-tabs
sphinx-copybutton