From 7e7c18ac9051993ae388e21856dd28ab1011e538 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Fri, 17 Mar 2023 13:02:26 +0800 Subject: [PATCH] update: remove gitbook html flag --- src/release/utils/release.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/release/utils/release.py b/src/release/utils/release.py index f2fa98d..3b19a5c 100644 --- a/src/release/utils/release.py +++ b/src/release/utils/release.py @@ -75,10 +75,13 @@ def staticDepends(workDir: str, metadata: dict, content: dict) -> None: "language": "zh-hans", 'plugins': [ '-lunr', '-search', '-sharing', 'hints', 'github', - 'fontsettings', 'image-captions', 'back-to-top-button' + 'hide-element', 'fontsettings', 'image-captions', 'back-to-top-button' ], 'pluginsConfig': { - 'github': {'url': projectUrl} + 'github': {'url': projectUrl}, + 'hide-element': { + 'elements': ['.gitbook-link'] + } } }) saveFile(os.path.join(workDir, 'README.md'), cover) @@ -112,7 +115,6 @@ def staticRelease(metadata: dict, content: dict) -> None: print('\033[0;33mDue to the permission problems, it is recommended to run under root user.\033[0m') return tempDir = tempfile.TemporaryDirectory() # access temporary directory - content = {x: content[x] for x in list(content)[:20]} # TODO: just for test staticDepends(tempDir.name, metadata, content) staticBuild(tempDir.name) tempDir.cleanup()