diff --git a/src/release/release.py b/src/release/release.py index 93962a2..e369a8a 100755 --- a/src/release/release.py +++ b/src/release/release.py @@ -11,8 +11,8 @@ from utils import gitbookRelease metadata, content = loadBook('rc-5') -# txtRelease(metadata, content) -# jsonRelease(metadata, content) -# htmlRelease(metadata, content) -staticRelease(metadata, content) -# gitbookRelease(metadata, content) +txtRelease(metadata, content) +jsonRelease(metadata, content) +htmlRelease(metadata, content) +# staticRelease(metadata, content) +gitbookRelease(metadata, content) diff --git a/src/release/utils/release.py b/src/release/utils/release.py index 96672ff..4552f7d 100644 --- a/src/release/utils/release.py +++ b/src/release/utils/release.py @@ -38,7 +38,7 @@ def htmlRelease(metadata: dict, content: dict) -> None: def gitbookRelease(metadata: dict, content: dict) -> None: createFolder(releaseInfo['gitbook']) createFolder(os.path.join(releaseInfo['gitbook'], './assets/')) - createFolder(os.path.join(releaseInfo['gitbook'], './content/')) + createFolder(os.path.join(releaseInfo['gitbook'], './chapter/')) cover = gitbookMetadata(metadata) for (resName, resUrls) in resourceInfo.items(): @@ -59,7 +59,7 @@ def gitbookRelease(metadata: dict, content: dict) -> None: def staticDepends(workDir: str, metadata: dict, content: dict) -> None: createFolder(os.path.join(workDir, './assets/')) - createFolder(os.path.join(workDir, './content/')) + createFolder(os.path.join(workDir, './chapter/')) cover = gitbookMetadata(metadata) + '