feat: add copy page button functionality and fix llms-text output (#5419)

* feat: add copy page button functionality and fix llms-text output

- Add copy page button with CSS and JS implementation
- Implement copy page hooks for MkDocs integration
- Fix HTML filtering and DOM text reinterpreted as HTML issues
- Update llms-text target to generate docs/llm.txt instead of docs/llms-full.txt
- Add necessary styling and package.json dependencies

* fix missing button in preview

* remove the over-processing

* disable API reference
This commit is contained in:
Xin Jin
2025-07-11 15:13:55 -04:00
committed by GitHub
parent c3d882e87a
commit 4da35babda
6 changed files with 354 additions and 1 deletions
+1
View File
@@ -362,6 +362,7 @@ markdown_extensions:
- github-callouts
hooks:
- _scripts/notebook_hooks.py
- _scripts/copy_page_hooks.py
extra:
social:
- icon: fontawesome/brands/js