Repository navigation
cudoc-docusaurus 1.1.0: reuse Markdown sections and export docs to PDF and Word #13040
cudoment
started this conversation in
Plugins, Themes, Presets and Libs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
cudoc-docusaurus 1.1.0 adds section reuse and Markdown extensions to Docusaurus, with optional HTML, PDF and Word export from the same documents.
I maintain cudoc. Following the invitation on the earlier resources PR, I am sharing it here.
What it adds
Authors write ordinary Markdown without importing React components:
For example, a page can reuse the
limitssection fromreference.md:The copy resolves at build time. Editing the source and recollecting updates its embedded copies.
Try it
The adapter is tested with Docusaurus 3.10.2 and requires Node.js 22.12 or later:
The Docusaurus guide separates the syntax-only setup from the collection step needed for embedding. It also shows the loader that refreshes cached pages after recollection. Export is optional and uses a separate
cudoc-exportpackage.Links
These examples show the input and output:
Version 1.1.0 improves mobile export navigation and link visibility, and preserves user JavaScript when exporting self-contained HTML. The Docusaurus site keeps its own theme.
I would welcome feedback on the Docusaurus setup, section reuse and integration with existing documentation.
All reactions