From 7298e407f5347a3b853c98ee287c7d9f39fed30c Mon Sep 17 00:00:00 2001 From: Devon White Date: Tue, 18 Nov 2025 11:36:21 -0500 Subject: [PATCH] llms-txt theme package bump --- .changeset/honest-rats-do.md | 5 +++++ packages/docusaurus-theme-llms-txt/CHANGELOG.md | 6 ++++++ packages/docusaurus-theme-llms-txt/package.json | 2 +- .../src/theme/CopyPageContent/index.tsx | 3 ++- website/CHANGELOG.md | 7 +++++++ website/package.json | 2 +- 6 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .changeset/honest-rats-do.md diff --git a/.changeset/honest-rats-do.md b/.changeset/honest-rats-do.md new file mode 100644 index 0000000..6630f34 --- /dev/null +++ b/.changeset/honest-rats-do.md @@ -0,0 +1,5 @@ +--- +'@signalwire/docusaurus-theme-llms-txt': patch +--- + +Fix for copy button not showing up on pages with trailing slash diff --git a/packages/docusaurus-theme-llms-txt/CHANGELOG.md b/packages/docusaurus-theme-llms-txt/CHANGELOG.md index 8c78e92..6f0212f 100644 --- a/packages/docusaurus-theme-llms-txt/CHANGELOG.md +++ b/packages/docusaurus-theme-llms-txt/CHANGELOG.md @@ -1,5 +1,11 @@ # @signalwire/docusaurus-theme-llms-txt +## 1.0.0-alpha.9 + +### Patch Changes + +- Fix for copy button not showing up on pages with trailing slash + ## 1.0.0-alpha.6 ### Patch Changes diff --git a/packages/docusaurus-theme-llms-txt/package.json b/packages/docusaurus-theme-llms-txt/package.json index d2a3625..46cecb6 100644 --- a/packages/docusaurus-theme-llms-txt/package.json +++ b/packages/docusaurus-theme-llms-txt/package.json @@ -1,6 +1,6 @@ { "name": "@signalwire/docusaurus-theme-llms-txt", - "version": "1.0.0-alpha.8", + "version": "1.0.0-alpha.9", "description": "Docusaurus theme components for llms-txt plugin including CopyPageButton", "main": "./lib/index.js", "types": "src/theme-llms-txt.d.ts", diff --git a/packages/docusaurus-theme-llms-txt/src/theme/CopyPageContent/index.tsx b/packages/docusaurus-theme-llms-txt/src/theme/CopyPageContent/index.tsx index 48cb604..29d345a 100644 --- a/packages/docusaurus-theme-llms-txt/src/theme/CopyPageContent/index.tsx +++ b/packages/docusaurus-theme-llms-txt/src/theme/CopyPageContent/index.tsx @@ -74,7 +74,8 @@ export default function CopyPageContent({ // Resolve final configuration const finalConfig = useCopyButtonConfig(pluginConfig); - // Resolve route data for the current path by checking both trailing-slash and non-slash keys in `lookupKeys`. + // Resolve route data for the current path by checking both + // trailing-slash and non-slash keys in `lookupKeys`. let routeData: RouteData | undefined; if (copyContentData) { for (const key of lookupKeys) { diff --git a/website/CHANGELOG.md b/website/CHANGELOG.md index 8c3cef4..40d25bc 100644 --- a/website/CHANGELOG.md +++ b/website/CHANGELOG.md @@ -1,5 +1,12 @@ # website +## 0.0.2-alpha.0 + +### Patch Changes + +- Updated dependencies + - @signalwire/docusaurus-theme-llms-txt@1.0.0-alpha.9 + ## 0.0.1 ### Patch Changes diff --git a/website/package.json b/website/package.json index c9d8b7a..133604d 100644 --- a/website/package.json +++ b/website/package.json @@ -25,7 +25,7 @@ "@docusaurus/types": "^3.9.1", "@mdx-js/react": "^3.0.0", "@signalwire/docusaurus-plugin-llms-txt": "2.0.0-alpha.7", - "@signalwire/docusaurus-theme-llms-txt": "1.0.0-alpha.8", + "@signalwire/docusaurus-theme-llms-txt": "1.0.0-alpha.9", "clsx": "^2.0.0", "docusaurus-plugin-sass": "^0.2.6", "prism-react-renderer": "^2.3.0",