Skip to content

Commit 20e5b1a

Browse files
feat: 1,统一移动静态网站配置到docs目录||feat: 1, Configure the mobile static website to the docs directory (#1062)
Co-authored-by: [email protected] <[email protected]>
1 parent 5df108b commit 20e5b1a

File tree

5 files changed

+15061
-1
lines changed

5 files changed

+15061
-1
lines changed

.github/workflows/docusaurus-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
algolia_api_key: '478d2fe7bdad5ff46b87f1e8e4662e81'
2424
file: 'algolia-config.json'
2525
- name: creates output
26-
run: npm install && npm run build --config docs
26+
run: cd docs/ && npm install && npm run build
2727
# - name: Deploy
2828
# uses: peaceiris/actions-gh-pages@v3
2929
# with:

docs/algolia-config.json

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"index_name": "layotto",
3+
"start_urls": [
4+
"https://mosn.io/layotto/docs",
5+
"https://mosn.io/layotto/blog",
6+
"https://mosn.io/layotto/en-US/docs",
7+
"https://mosn.io/layotto/en-US/blog"
8+
],
9+
"stop_urls": [
10+
"/tests"
11+
],
12+
"selectors": {
13+
"lvl0": {
14+
"selector": "(//ul[contains(@class,'menu__list')]//a[contains(@class, 'menu__link menu__link--sublist menu__link--active')]/text() | //nav[contains(@class, 'navbar')]//a[contains(@class, 'navbar__link--active')]/text())[last()]",
15+
"type": "xpath",
16+
"global": true,
17+
"default_value": "Documentation"
18+
},
19+
"lvl1": "header h1",
20+
"lvl2": "article h2",
21+
"lvl3": "article h3",
22+
"lvl4": "article h4",
23+
"lvl5": "article h5, article td:first-child",
24+
"lvl6": "article h6",
25+
"text": "article p, article li, article td:last-child"
26+
},
27+
"strip_chars": " .,;:#",
28+
"custom_settings": {
29+
"separatorsToIndex": "_",
30+
"attributesForFaceting": [
31+
"language",
32+
"version",
33+
"type",
34+
"docusaurus_tag"
35+
],
36+
"attributesToRetrieve": [
37+
"hierarchy",
38+
"content",
39+
"anchor",
40+
"url",
41+
"url_without_anchor",
42+
"type"
43+
]
44+
},
45+
"conversation_id": [
46+
"833762294"
47+
],
48+
"nb_hits": 46250
49+
}

docs/crowdin.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
project_id: 688617
2+
api_token: 7305dcca805d8750a5d0983438bdc4bca9adff6bf35eff5a86dfdca9d85a1c273dd55e8b5362fe8d
3+
#api_token_env: CROWDIN_VERDACCIO_API_KEY
4+
5+
preserve_hierarchy: true
6+
7+
files:
8+
# - source: docs/blog/**/*
9+
# translation: '/i18n/%locale%/docusaurus-plugin-content-blog/current/**/%original_file_name%'
10+
- source: /docs/docs/**/*
11+
translation: '/docs/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%'

0 commit comments

Comments
 (0)