File tree Expand file tree Collapse file tree 10 files changed +33
-60
lines changed Expand file tree Collapse file tree 10 files changed +33
-60
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Hugo Site to GitHub Pages
1+ name : Deploy DataMate Website to GitHub Pages
22
33on :
44 push :
2020 hugo-version : ' latest' # 使用最新版 Hugo
2121 extended : true # 启用 extended 版本
2222
23+ # 新增步骤:安装 Node.js(PostCSS 依赖 Node 环境)
24+ - name : Setup Node.js
25+ uses : actions/setup-node@v4
26+ with :
27+ node-version : 20 # 使用稳定版本的 Node.js
28+
29+ # 新增步骤:安装 PostCSS 及相关依赖
30+ - name : Install PostCSS
31+ run : |
32+ npm install
33+
2334 - name : Build site
2435 run : hugo --minify # 构建并压缩静态文件
2536
2940 github_token : ${{ secrets.GITHUB_TOKEN }} # 自动生成的 Token
3041 publish_dir : ./public # 部署 public 目录
3142 # 若部署到个人主页(yourname.github.io),需设置为 main 分支:
32- publish_branch : main
43+ publish_branch : gh-pages
3344 # 若部署到项目站点,默认部署到 gh-pages 分支,无需修改
Original file line number Diff line number Diff line change @@ -187,3 +187,10 @@ Thumbs.db
187187.vscode /
188188* .sublime-project
189189* .sublime-workspace
190+
191+ # 忽略hugo生成的public文件夹
192+ public /
193+ # 忽略hugo生成的资源文件夹
194+ resources /
195+
196+ .hugo_build.lock
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ title: DataMate
33---
44
55{{< blocks/cover title="DataMate — All-in-one Data Processing Platform" image_anchor="top" height="full" >}}
6- <a class =" btn btn-lg btn-primary me-3 mb-4 " href =" /zh /docs/ " >
6+ <a class =" btn btn-lg btn-primary me-3 mb-4 " href =" /datamate-docs/en /docs/ " >
77Learn More <i class =" fas fa-arrow-alt-circle-right ms-2 " ></i >
88</a >
99<a class =" btn btn-lg btn-secondary me-3 mb-4 " href =" https://github.com/ModelEngine-Group/DataMate " >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ title: DataMate
33---
44
55{{< blocks/cover title="DataMate — 大模型数据处理的企业级首选平台!" image_anchor="top" height="full" >}}
6- <a class =" btn btn-lg btn-primary me-3 mb-4 " href =" /zh /docs/ " >
6+ <a class =" btn btn-lg btn-primary me-3 mb-4 " href =" /datamate-docs /docs/ " >
77 了解更多 <i class =" fas fa-arrow-alt-circle-right ms-2 " ></i >
88</a >
99<a class =" btn btn-lg btn-secondary me-3 mb-4 " href =" https://github.com/ModelEngine-Group/DataMate " >
Original file line number Diff line number Diff line change 11---
22title : 搜索结果
3- layout : 搜索
3+ layout : search
44---
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- baseURL : https://modelengine-ai.net /
1+ baseURL : https://modelengine-group.github.io/datamate-docs /
22title : DataMate
33
44# cSpell:ignore goldmark github hugo readingtime docsy subdir lastmod pygments linenos catmullrom norsk gu
@@ -52,7 +52,6 @@ languages:
5252 description : " All-in-one Data Processing Platform"
5353 zh :
5454 languageName : " 中文 (Chinese)"
55- weight : 1
5655 contentDir : content/zh
5756 title : " DataMate"
5857 params :
@@ -111,10 +110,10 @@ params:
111110 url_latest_version : https://modelengine-ai.net/
112111
113112 # Repository configuration (URLs for in-page links to opening issues and suggesting changes)
114- github_repo : https://github.com/ModelEngine-Group/DataMate
113+ github_repo : https://github.com/ModelEngine-Group/datamate-docs
115114
116115 # An optional link to a related project repo. For example, the sibling repository where your product code lives.
117- github_project_repo : https://github.com/ModelEngine-Group/DataMate
116+ github_project_repo : https://github.com/ModelEngine-Group/datamate-docs
118117
119118 # Specify a value here if your content directory is not in your repo's root directory
120119 # github_subdir: ""
Original file line number Diff line number Diff line change 11{
2- "name" : " docsy-example-site " ,
2+ "name" : " datamate-docs " ,
33 "version" : " 0.12.0" ,
44 "version.next" : " 0.12.1-dev-unreleased" ,
5- "description" : " Example site that uses Docsy theme for technical documentation. " ,
6- "repository" : " github:google/docsy-example " ,
7- "homepage" : " https://example.docsy .dev" ,
8- "author" : " Docsy Authors" ,
5+ "description" : " DataMate Documentation Site " ,
6+ "repository" : " https://github.com/ModelEngine-Group/datamate-docs " ,
7+ "homepage" : " https://datamate .dev" ,
8+ "author" : " DataMate Authors" ,
99 "license" : " Apache-2.0" ,
10- "bugs" : " https://github.com/google/docsy-example /issues" ,
10+ "bugs" : " https://github.com/ModelEngine-Group/datamate-docs /issues" ,
1111 "spelling" : " cSpell:ignore docsy hugo htmltest precheck postbuild rtlcss -" ,
1212 "scripts" : {
1313 "_build" : " npm run _hugo-dev --" ,
3939 "cross-env" : " ^7.0.3" ,
4040 "hugo-extended" : " 0.147.5" ,
4141 "postcss-cli" : " ^11.0.1" ,
42+ "postcss" : " ^8.4.38" ,
4243 "rtlcss" : " ^4.3.0"
4344 },
4445 "optionalDependencies" : {
You can’t perform that action at this time.
0 commit comments