Update export-docs.py

This commit is contained in:
pacnpal
2024-12-09 21:09:32 -05:00
committed by GitHub
parent 746fec26bc
commit f7d2cfa3bb

View File

@@ -3,7 +3,7 @@ Nextjs Documentation PDF Generator
Modified version of Docs-Exporter for Astro documentation Modified version of Docs-Exporter for Astro documentation
Original work Copyright (C) 2024 Riyooo Original work Copyright (C) 2024 Riyooo
Modified work Copyright (C) 2024 PacNPal Modified work Copyright (C) 2024 PacFactory
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU Affero General Public License as published by
@@ -42,11 +42,11 @@ def get_license_notice():
return """ return """
This PDF was generated by Nextjs Documentation PDF Generator This PDF was generated by Nextjs Documentation PDF Generator
Original work Copyright (C) 2024 Riyooo Original work Copyright (C) 2024 Riyooo
Modified work Copyright (C) 2024 PacNPal Modified work Copyright (C) 2024 PacFactory
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3. it under the terms of the GNU Affero General Public License version 3.
Source code is available at: https://github.com/pacnpal/Docs-Exporter Source code is available at: https://github.com/PacFactory/Docs-Exporter
""" """
def add_license_page(html_content): def add_license_page(html_content):
@@ -57,7 +57,7 @@ def add_license_page(html_content):
<pre style="white-space: pre-wrap; font-family: monospace;"> <pre style="white-space: pre-wrap; font-family: monospace;">
{get_license_notice()} {get_license_notice()}
</pre> </pre>
<p>Complete source code for this program is available at: https://github.com/pacnpal/Docs-Exporter</p> <p>Complete source code for this program is available at: https://github.com/PacFactory/Docs-Exporter</p>
<p>This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you <p>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 are welcome to redistribute it under certain conditions. See the GNU Affero General
Public License version 3 for details.</p> Public License version 3 for details.</p>
@@ -360,7 +360,7 @@ if __name__ == "__main__":
clone_repo(repo_url, branch, docs_dir, repo_dir) clone_repo(repo_url, branch, docs_dir, repo_dir)
print(f""" print(f"""
Nextjs Documentation PDF Generator v1.0.0 Nextjs Documentation PDF Generator v1.0.0
Copyright (C) 2024 PacNPal Copyright (C) 2024 PacFactory
This program comes with ABSOLUTELY NO WARRANTY; for details see the LICENSE file. This program comes with ABSOLUTELY NO WARRANTY; for details see the LICENSE file.
This is free software, and you are welcome to redistribute it This is free software, and you are welcome to redistribute it
under certain conditions; see the LICENSE file for details. under certain conditions; see the LICENSE file for details.
@@ -437,4 +437,4 @@ if __name__ == "__main__":
print("Created the PDF file successfully.") print("Created the PDF file successfully.")
except Exception as e: except Exception as e:
print(f"Error generating PDF: {str(e)}") print(f"Error generating PDF: {str(e)}")