Skip to content

Commit

Permalink
doc: regenerate the document.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 13, 2023
1 parent e1b791b commit 3959338
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 17 deletions.
46 changes: 29 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,42 @@ jobs:
- name: Create Coverage Badges
uses: jaywcjlove/coverage-badges-cli@main

- name: Converts Markdown to HTML
uses: jaywcjlove/markdown-to-html-cli@main
with:
source: README.md
output: coverage/index.html
github-corners: https://github.com/jaywcjlove/store.js
- name: Create idoc config.
run: |
cat > idoc.yml << EOF
site: "JavaScript localStorage {{version}}"
favicon: data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍪</text></svg>
output: build
menus:
Cookie: https://jaywcjlove.github.io/cookie.js/
giscus:
src: https://giscus.app/client.js
data-repo: jaywcjlove/store.js
data-repo-id: MDEwOlJlcG9zaXRvcnkyNjgwMTc1Nw==
data-category: Q&A
data-category-id: DIC_kwDOAZj2Xc4CZRcC
data-mapping: pathname
data-strict: 0
data-reactions-enabled: 1
data-emit-metadata: 0
data-input-position: top
data-theme: dark
data-lang: zh-CN
data-loading: lazy
crossorigin: anonymous
async: true
EOF
- name: Converts Markdown to HTML
uses: jaywcjlove/markdown-to-html-cli@main
with:
source: README-zh.md
output: coverage/index.zh.html
github-corners: https://github.com/jaywcjlove/store.js
favicon: data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍪</text></svg>
- run: npm install [email protected] -g
- run: idoc

- run: cp -rp coverage/lcov-report build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./coverage
publish_dir: ./build

- name: Create Tag
id: create_tag
Expand Down Expand Up @@ -72,9 +87,6 @@ jobs:
${{ steps.changelog.outputs.changelog }}
# - run: npm install @jsdevtools/npm-publish -g
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

- name: 📦 storejs publish to NPM
run: npm publish
continue-on-error: true
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules
coverage
npm-debug.log*
package-lock.json
build

.DS_Store
.cache
Expand Down
1 change: 1 addition & 0 deletions docs/README-zh.md

0 comments on commit 3959338

Please sign in to comment.