Skip to content

Commit

Permalink
chore: fix Generate PDF job (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo220yuyaodog authored Feb 19, 2024
1 parent ecbcc1a commit 2922c11
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
run: |
yarn serve > /dev/null &
sleep 3s
npx docusaurus-prince-pdf --include-index -u http://localhost:3000/docs/basic/overview --output pdf/Casvisor_Docs.pdf
npx docusaurus-prince-pdf --include-index -u http://localhost:3000/zh/docs/basic/overview --list-only
npx docusaurus-prince-pdf --include-index -u http://localhost:3000/docs/overview --output pdf/Casvisor_Docs.pdf
npx docusaurus-prince-pdf --include-index -u http://localhost:3000/zh/docs/overview --list-only
wget https://gist.githubusercontent.com/Selflocking/7a07d91d34ee227c93d2d8f583f981e3/raw/996a610b96e7e1f42e06ec555528f3427c2fb647/print.css
prince --no-warn-css --style=print.css --input-list=./pdf/localhost-zh-docs-overview.txt -o pdf/Casvisor_Docs_zh.pdf
rm pdf/*.txt
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = {
items: [
{
type: "doc",
docId: "basic/overview",
docId: "overview",
position: "left",
label: "Docs",
},
Expand Down Expand Up @@ -117,7 +117,7 @@ module.exports = {
items: [
{
label: "Overview",
to: "/docs/basic/overview",
to: "/docs/overview",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
label: "The Basics",
link: {type: "generated-index"},
items: [
"basic/overview",
"overview",
"basic/installation",
"basic/try-with-docker",
{
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function HomepageHeader() {
<Link
className="button button--secondary button--lg"
style={{marginTop: "2rem", marginRight: "3rem", marginLeft: "3rem"}}
to="/docs/basic/overview">
to="/docs/overview">
<Translate>Get Started</Translate>
</Link>
</div>
Expand Down

0 comments on commit 2922c11

Please sign in to comment.