Skip to content

Commit

Permalink
Update site config
Browse files Browse the repository at this point in the history
  • Loading branch information
cabbetlong committed Oct 9, 2024
1 parent fe0c61e commit 0907f40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 37 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'

- name: Cache dependencies
uses: actions/cache@v3
Expand All @@ -54,11 +54,10 @@ jobs:
npm install -D --save autoprefixer
npm install -D --save postcss-cli
npm install -D --save postcss
hugo
hugo --baseURL https://${REPO_OWNER}.github.io/${REPO_NAME} --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }} # <-- specify same branch as above here
with:
#deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
35 changes: 3 additions & 32 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base configuration
baseURL = "/"
baseURL = "https://huawei.github.io/css-docs/"
title = "Huawei"
contentDir = "content/zh-cn"
defaultContentLanguage = "zh-cn"
Expand Down Expand Up @@ -46,7 +46,7 @@ description = "Huawei Container Storage Suite"
version_menu = "Releases"
[[languages.en.params.versions]]
version = "v4.5.0 (current)"
url = "http://8.44.188.128:1313/en/docs"
url = "https://huawei.github.io/css-docs/en/docs"

[markup]
[markup.goldmark]
Expand Down Expand Up @@ -80,7 +80,7 @@ showLightDarkModeMenu = false

[[params.versions]]
version = "v4.5.0(当前版本)"
url = "http://8.44.188.128:1313/docs"
url = "https://huawei.github.io/css-docs/docs"

[[menu.main]]
name = "GitHub"
Expand All @@ -97,32 +97,3 @@ showLightDarkModeMenu = false
url = "https://github.com/Huawei/eSDK_K8S_Plugin"
icon = "fab fa-github"
desc = "Development takes place here!"

[module]
proxy = "direct"
[[module.imports]]
path = "github.com/google/docsy"
disable = false
[[module.mounts]]
source = "content/en"
target = "content"
lang = "en"
[[module.mounts]]
source = "content/zh-cn"
target = "content"
lang = "zh-cn"
[[module.mounts]]
source = "static"
target = "static"
[[module.mounts]]
source = "layouts"
target = "layouts"
[[module.mounts]]
source = "data"
target = "data"
[[module.mounts]]
source = "assets"
target = "assets"
[[module.mounts]]
source = "archetypes"
target = "archetypes"

0 comments on commit 0907f40

Please sign in to comment.