You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add custom styling and release automation (#7)
- Implement custom CSS injection and URL rewriting to allow users to style PDFs and fix cross-environment links.
- Add release-please GitHub Action to automate the release process and enable secure NPM publishing.
Copy file name to clipboardExpand all lines: README.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,10 @@ You can find a sample PDF generated by this tool at [doccusaurus.pdf](./example/
13
13
***Full Site PDF Export**: Exports all documentation pages from a Docusaurus site into a single, cohesive PDF file.
14
14
***Concurrent Processing**: Leverages Puppeteer's concurrency capabilities to speed up the page content fetching process.
15
15
***Custom Cover Page**: Supports adding a custom PDF cover page using either a URL or a local file path.
16
-
***Automatic Table of Contents (TOC) Generation**: Automatically generates a clickable PDF table of contents based on the Docusaurus sidebar structure.
16
+
***Automatic Table of Contents (TOC) Generation**: Automatically generates a professional, clickable PDF table of contents with dot leaders based on the Docusaurus sidebar structure.
17
17
***Navigable Internal Links**: Rewrites all internal links within the documentation so they remain clickable and navigable in a PDF reader.
18
+
***Custom CSS Injection**: Supports injecting custom CSS styles directly into the generated PDF for fine-tuned layout control.
19
+
***Link Rewriting**: Allows rewriting site domains/URLs within hyperlinks to ensure cross-references work correctly across environments.
18
20
***Configurable Margins**: Supports adjusting PDF page margins via command-line arguments.
19
21
20
22
## Installation
@@ -39,10 +41,17 @@ npx docusaurus-docs-to-pdf -h
39
41
40
42
### Examples
41
43
42
-
**Generate pdf from Docusaurus website**
44
+
**Generate PDF with custom margins and concurrency**
0 commit comments