Skip to content

Commit

Permalink
feat: 1,统一移动静态网站配置到docs目录||feat: 1, Configure the mobile static websi…
Browse files Browse the repository at this point in the history
…te to the docs directory (#1062)

Co-authored-by: [email protected] <[email protected]>
  • Loading branch information
15669072513 and [email protected] authored Jul 10, 2024
1 parent 5df108b commit 20e5b1a
Show file tree
Hide file tree
Showing 5 changed files with 15,061 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docusaurus-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
algolia_api_key: '478d2fe7bdad5ff46b87f1e8e4662e81'
file: 'algolia-config.json'
- name: creates output
run: npm install && npm run build --config docs
run: cd docs/ && npm install && npm run build
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
Expand Down
49 changes: 49 additions & 0 deletions docs/algolia-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"index_name": "layotto",
"start_urls": [
"https://mosn.io/layotto/docs",
"https://mosn.io/layotto/blog",
"https://mosn.io/layotto/en-US/docs",
"https://mosn.io/layotto/en-US/blog"
],
"stop_urls": [
"/tests"
],
"selectors": {
"lvl0": {
"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()]",
"type": "xpath",
"global": true,
"default_value": "Documentation"
},
"lvl1": "header h1",
"lvl2": "article h2",
"lvl3": "article h3",
"lvl4": "article h4",
"lvl5": "article h5, article td:first-child",
"lvl6": "article h6",
"text": "article p, article li, article td:last-child"
},
"strip_chars": " .,;:#",
"custom_settings": {
"separatorsToIndex": "_",
"attributesForFaceting": [
"language",
"version",
"type",
"docusaurus_tag"
],
"attributesToRetrieve": [
"hierarchy",
"content",
"anchor",
"url",
"url_without_anchor",
"type"
]
},
"conversation_id": [
"833762294"
],
"nb_hits": 46250
}
11 changes: 11 additions & 0 deletions docs/crowdin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
project_id: 688617
api_token: 7305dcca805d8750a5d0983438bdc4bca9adff6bf35eff5a86dfdca9d85a1c273dd55e8b5362fe8d
#api_token_env: CROWDIN_VERDACCIO_API_KEY

preserve_hierarchy: true

files:
# - source: docs/blog/**/*
# translation: '/i18n/%locale%/docusaurus-plugin-content-blog/current/**/%original_file_name%'
- source: /docs/docs/**/*
translation: '/docs/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%'
Loading

0 comments on commit 20e5b1a

Please sign in to comment.