From 056c7956e78fa961fce49ec720e9a86cba4ff227 Mon Sep 17 00:00:00 2001
From: pacnpal <183241239+pacnpal@users.noreply.github.com>
Date: Mon, 9 Dec 2024 20:48:32 -0500
Subject: [PATCH] Updated with more info, better LICENSE adherance
---
CHANGELOG.md | 5 ----
README.md | 2 +-
export-docs.py | 63 +++++++++++++++++++++++++++++++++++++++++++++++++-
3 files changed, 63 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c74d545..8f22119 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -44,11 +44,6 @@
---
-## Removed Features
-- Any obsolete or unused features from `export-docs.old.py` were removed to streamline the codebase.
-
----
-
## Performance Improvements
- Optimized file processing loop to handle large repositories more efficiently.
- Improved Playwright's rendering performance by preloading images and resources.
diff --git a/README.md b/README.md
index bc9f4d0..aae096b 100644
--- a/README.md
+++ b/README.md
@@ -70,7 +70,7 @@ docs_dir = "docs"
```
### Output
-- PDF file: `Next.js_Docs_vXX.XX.X_YYYY-MM-DD.pdf`
+- PDF file: `Next.js_Docs_vXX.XX.X_YYYY-MM-DD.pdf` or `Next.js_Documentation.pdf`
- Logs: Process information printed to the terminal.
---
diff --git a/export-docs.py b/export-docs.py
index 4ca16f4..fa9a7a6 100644
--- a/export-docs.py
+++ b/export-docs.py
@@ -1,3 +1,30 @@
+"""
+Nextjs Documentation PDF Generator
+Modified version of Docs-Exporter for Astro documentation
+
+Original work Copyright (C) 2024 Riyooo
+Modified work Copyright (C) 2024 PacNPal
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see
+ {get_license_notice()}
+
+ Complete source code for this program is available at: https://github.com/pacnpal/Docs-Exporter
+This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you + are welcome to redistribute it under certain conditions. See the GNU Affero General + Public License version 3 for details.
+