Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix both to master #2748

Merged
merged 4 commits into from
May 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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