Skip to content
Open
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
13 changes: 13 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,20 @@ const config = {
outputFile: "llms.txt", // defaults to llms.txt if not specified
},
],
[
'docusaurus-plugin-copy-page-button',
{
customStyles: {
container: {
className: 'copyPageButtonContainer',
},
button: {
style: { marginLeft: '8px' },
},
},
},
],
],
title: 'Chronicle Docs',
tagline: 'Cost-efficient. Verifiable Data.',
favicon: 'img/favicon.ico',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@mdx-js/react": "^3.0.0",
"acorn-import-assertions": "^1.9.0",
"clsx": "^2.0.0",
"docusaurus-plugin-copy-page-button": "^0.3.5",
"docusaurus-plugin-generate-llms-txt": "^0.0.1",
"docusaurus-plugin-sass": "^0.2.5",
"prism-react-renderer": "^2.3.0",
Expand Down
14 changes: 13 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,16 @@
}
[data-theme='dark']:root .menu {
background-color: #1F2937;
}
}

/* Hide the copy button by default */
.copyPageButtonContainer {
display: none !important;
}

/* Reenable only when it's inside the TOC sidebar */
.theme-doc-toc-desktop .copyPageButtonContainer,
.theme-doc-toc-mobile .copyPageButtonContainer,
.table-of-contents .copyPageButtonContainer {
display: block !important;
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7211,6 +7211,11 @@ dns-packet@^5.2.2:
dependencies:
"@leichtgewicht/ip-codec" "^2.0.1"

docusaurus-plugin-copy-page-button@^0.3.5:
version "0.3.5"
resolved "https://registry.yarnpkg.com/docusaurus-plugin-copy-page-button/-/docusaurus-plugin-copy-page-button-0.3.5.tgz#a7fbed7aed346f6dfa82eb95b78216ca834c10b2"
integrity sha512-QwveQb/WM9r8E8qVqXOrZ6uz9YFOPQGV87RpemiemcDg5gQHyhSFenPP5twSrSRkIbT0D7f54lUbl3bbuVJfHg==

docusaurus-plugin-generate-llms-txt@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/docusaurus-plugin-generate-llms-txt/-/docusaurus-plugin-generate-llms-txt-0.0.1.tgz#e2104a73bdf59ea9f576f319e73e7d9c664e6ea8"
Expand Down