Skip to content

Commit 0f681e5

Browse files
authored
支持多语言
1 parent 3faa72c commit 0f681e5

File tree

335 files changed

+372
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

335 files changed

+372
-178
lines changed

.drone.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,7 @@ steps:
1111
environment:
1212
JEKYLL_ENV: production
1313
commands:
14-
- touch Gemfile.lock
15-
- chmod a+w Gemfile.lock
16-
- chown -R jekyll:jekyll /drone
17-
- gem sources --add https://mirrors.cloud.tencent.com/rubygems/ --remove https://rubygems.org/
18-
- bundle config mirror.https://rubygems.org https://mirrors.cloud.tencent.com/rubygems
19-
- bundle install
20-
- bundle exec jekyll build --trace --verbose --destination _site --config _config.yml
21-
- bundle exec jekyll build --trace --verbose --destination _temp --config _config.yml,_config.en.yml
22-
- cd _temp && find . -type f -name "*.en.html" -exec cp --parents {} ../_site \; && cd .. && rm -rf _temp
23-
- bash scripts/copy_index_json.sh
14+
- bash scripts/build.sh
2415
volumes:
2516
- name: dist
2617
path: /drone/src/_site

_config.en.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,5 @@
11
title: HMCL Help Document
22
locale: en
33

4-
defaults:
5-
- scope:
6-
path: ""
7-
values:
8-
layout: document
9-
read_time: false
10-
author_profile: false
11-
share: false
12-
comments: false
13-
sidebar:
14-
nav: docs_en
15-
- scope:
16-
path: "assets/img"
17-
values:
18-
image: true
19-
- scope:
20-
path: "assets/css"
21-
values:
22-
css: true
23-
244
head_scripts:
255
- /assets/js/theme.en.js

0 commit comments

Comments
 (0)