From 3aa73f6a35b3c51f1c1ed3f9d4e0db372f86e3b3 Mon Sep 17 00:00:00 2001 From: novalagung Date: Fri, 15 Nov 2024 19:41:38 +0700 Subject: [PATCH] refactor: content --- .github/workflows/deploy.yml | 10 ---------- {etc => content}/book.json | 0 {etc => content}/cover.jpg | Bin {etc => content}/cover_small.jpg | Bin {etc => content}/cover_square.png | Bin {etc => content}/robots.txt | 0 {etc => content}/script-gitbook-plugin-disqus.js | 0 {etc => content}/style-custom.css | 0 8 files changed, 10 deletions(-) rename {etc => content}/book.json (100%) rename {etc => content}/cover.jpg (100%) rename {etc => content}/cover_small.jpg (100%) rename {etc => content}/cover_square.png (100%) rename {etc => content}/robots.txt (100%) rename {etc => content}/script-gitbook-plugin-disqus.js (100%) rename {etc => content}/style-custom.css (100%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a3b929641..cde90c33c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,18 +21,11 @@ jobs: run: | rm -f README.md mv content/* . - mv etc/cover_small.jpg . - mv etc/cover_square.png . - mv etc/cover.jpg . - mv etc/style-custom.css . mv etc/main.go . - mv etc/robots.txt . - mv etc/script-gitbook-plugin-disqus.js . npm install -g gitbook-cli gitbook install cd ~/.gitbook/versions/3.2.3 && npm i npm@5 cd ${{ github.workspace }} - mv etc/book.json . gitbook install go run main.go -mode=webbook -adjustment=pre gitbook build @@ -73,9 +66,6 @@ jobs: run: | rm -f README.md mv content/* . - mv etc/cover_small.jpg . - mv etc/cover_square.png . - mv etc/cover.jpg . mv etc/main.go . go run main.go -mode=ebook -adjustment=pre gitbook install diff --git a/etc/book.json b/content/book.json similarity index 100% rename from etc/book.json rename to content/book.json diff --git a/etc/cover.jpg b/content/cover.jpg similarity index 100% rename from etc/cover.jpg rename to content/cover.jpg diff --git a/etc/cover_small.jpg b/content/cover_small.jpg similarity index 100% rename from etc/cover_small.jpg rename to content/cover_small.jpg diff --git a/etc/cover_square.png b/content/cover_square.png similarity index 100% rename from etc/cover_square.png rename to content/cover_square.png diff --git a/etc/robots.txt b/content/robots.txt similarity index 100% rename from etc/robots.txt rename to content/robots.txt diff --git a/etc/script-gitbook-plugin-disqus.js b/content/script-gitbook-plugin-disqus.js similarity index 100% rename from etc/script-gitbook-plugin-disqus.js rename to content/script-gitbook-plugin-disqus.js diff --git a/etc/style-custom.css b/content/style-custom.css similarity index 100% rename from etc/style-custom.css rename to content/style-custom.css