You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by de...@apache.org on 2022/06/26 10:26:32 UTC
[incubator-shenyu-website] branch main updated: Update pdf links in download & zh/download (#620)
This is an automated email from the ASF dual-hosted git repository.
dengliming pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git
The following commit(s) were added to refs/heads/main by this push:
new 3afab9be6f Update pdf links in download & zh/download (#620)
3afab9be6f is described below
commit 3afab9be6fd93aae456b50f5404c92f0d04ee59a
Author: Jiageng <sk...@outlook.com>
AuthorDate: Sun Jun 26 18:26:28 2022 +0800
Update pdf links in download & zh/download (#620)
* update: pdf links
* polish: remove unnecessary classes in .github/scripts/generate-pdf.py
---
.github/scripts/generate-pdf.py | 40 ----------------------
.../zh/docusaurus-plugin-content-pages/download.md | 4 +--
src/pages/download.md | 2 +-
3 files changed, 3 insertions(+), 43 deletions(-)
diff --git a/.github/scripts/generate-pdf.py b/.github/scripts/generate-pdf.py
index 48507d8558..28cdee78c4 100644
--- a/.github/scripts/generate-pdf.py
+++ b/.github/scripts/generate-pdf.py
@@ -147,46 +147,6 @@ class Folder(Document):
] + docs_name)
-class TopDocument:
- def __init__(self, path: str) -> None:
- self.path = path
- self.sections: List[Document] = []
- self.documents: List[str] = []
-
- files_name: List[str] = os.listdir(self.path)
- files_full_name = [os.path.join(self.path, file_name) for file_name in files_name]
- for full_name in files_full_name:
- if os.path.isdir(full_name):
- section = Folder(full_name)
- self.sections.append(section)
-
-
-class DocGenerator:
- """
- DocGenerator consists of several tools about document generation.
- """
-
- @classmethod
- def getDocStructure(cls, root_path: str) -> Document:
- """
- Now document complies with a rule:
- docs/
- - chapter1/_category_.json
- - section1/_category_.json
- - md files
- - md files
- - chapter2/_category_.json
- - md files
- document is identical to Document
- Dict: str(file name) -> TextIOWrapper(file descriptor)
- """
- os.walk()
-
- @classmethod
- def createFileIndexRst(cls, fin: TextIOWrapper):
- fin.name
-
-
doc = Folder("docs")
print(json.dumps(doc.dumps(), indent=2))
doc.writeIndexRst()
diff --git a/i18n/zh/docusaurus-plugin-content-pages/download.md b/i18n/zh/docusaurus-plugin-content-pages/download.md
index 21039b1241..dfc4a28be8 100644
--- a/i18n/zh/docusaurus-plugin-content-pages/download.md
+++ b/i18n/zh/docusaurus-plugin-content-pages/download.md
@@ -69,6 +69,6 @@ pgp apache-shenyu-********.asc
`Apache ShenYu` 提供了打包下载的文档 `PDF` ,供使用者、开发者查阅。
-* [中文](/pdf/apache_shenyu_docs_zh.pdf)
+* [中文](https://shenyu.apache.org/pdf/apache_shenyu_docs_zh.pdf)
-* [English](/pdf/apache_shenyu_docs_en.pdf)
+* [English](https://shenyu.apache.org/pdf/apache_shenyu_docs_en.pdf)
diff --git a/src/pages/download.md b/src/pages/download.md
index e6dec35f31..301cc081a2 100644
--- a/src/pages/download.md
+++ b/src/pages/download.md
@@ -69,5 +69,5 @@ pgp apache-shenyu-********.asc
`Apache ShenYu (incubating)` provides a packaged and downloaded `PDF` of the docs for users and developers to use.
-* [English](/pdf/apache_shenyu_docs_en.pdf)
+* [English](https://shenyu.apache.org/pdf/apache_shenyu_docs_en.pdf)