Skip to content

Commit

Permalink
Fix both to master (#2748)
Browse files Browse the repository at this point in the history
* Update prepare.sh

* Update deploy.yaml

* Update deploy.yaml

* Update mkdocs.yml
  • Loading branch information
whitewum authored May 8, 2023
1 parent 8fede5c commit 3ca37b3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ jobs:

- name: mike
run: |
python ./scripts/conditional_render.py
python ./scripts/conditional_yml.py
git fetch origin gh-pages --depth=1 # fix mike's CI update
mike deploy ${{ env.ACTIONTEST }} -p --rebase
mike list
Expand Down Expand Up @@ -131,11 +133,11 @@ jobs:
mkdir -p /usr/web/ent-docs/
tar -xzf /usr/web/ent-docs.tar.gz -C /usr/web/ent-docs/
mkdir -p /usr/web/ent-docs/site/pdf/
cp -f /usr/web/ent-docs/${{ env.ACTIONTEST }}/pdf/NebulaGraph-CN.pdf /usr/web/ent-docs/site/pdf/NebulaGraph-book.pdf
#cp -f /usr/web/ent-docs/${{ env.ACTIONTEST }}/pdf/NebulaGraph-CN.pdf /usr/web/ent-docs/site/pdf/NebulaGraph-book.pdf
else
mkdir -p /usr/web/nebula-docs/
tar -xzf /usr/web/nebula-docs.tar.gz -C /usr/web/nebula-docs/
mkdir -p /usr/web/nebula-docs/site/pdf/
cp -f /usr/web/nebula-docs/${{ env.ACTIONTEST }}/pdf/NebulaGraph-CN.pdf /usr/web/nebula-docs/site/pdf/NebulaGraph-book.pdf
#cp -f /usr/web/nebula-docs/${{ env.ACTIONTEST }}/pdf/NebulaGraph-CN.pdf /usr/web/nebula-docs/site/pdf/NebulaGraph-book.pdf
fi
16 changes: 8 additions & 8 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ plugins:
# - '.*\.(tmp|bin|tar)$'

# modify when release:
- with-pdf:
copyright: 2023 vesoft Inc.
cover_subtitle: master
author: 吴敏,周瑶,梁振亚,黄凤仙
cover: true
back_cover: true
cover_logo: 'https://cloud-cdn.nebula-graph.com.cn/nebula-for-pdf.png'
output_path: pdf/NebulaGraph-CN.pdf
# - with-pdf:
# copyright: 2023 vesoft Inc.
# cover_subtitle: master
# author: 吴敏,梁振亚,黄凤仙,李泓臻
# cover: true
# back_cover: true
# cover_logo: 'https://cloud-cdn.nebula-graph.com.cn/nebula-for-pdf.png'
# output_path: pdf/NebulaGraph-CN.pdf

extra_javascript:
- js/version-select.js
Expand Down
4 changes: 2 additions & 2 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ pip install --upgrade pip
pip install -r ./requirements.txt

# Render content according to the database_edition in mkdocs.yml
python ./scripts/conditional_render.py
python ./scripts/conditional_yml.py
#python ./scripts/conditional_render.py
#python ./scripts/conditional_yml.py

# zh language
sudo apt install font-manager fonts-noto-cjk language-pack-zh-hans fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core
Expand Down

0 comments on commit 3ca37b3

Please sign in to comment.