Skip to content

Commit

Permalink
Update docsy to 0.6.0 (#2141)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Feb 9, 2023
1 parent 6aa68e2 commit 2008157
Show file tree
Hide file tree
Showing 1,283 changed files with 595 additions and 771 deletions.
1 change: 0 additions & 1 deletion .github/themes/docsy
Submodule docsy deleted from 7dc708
4 changes: 2 additions & 2 deletions .github/workflows/build_and_deploy.yml
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Build
env:
HUGO_ENV: production
run: hugo --minify
run: hugo mod clean && hugo --minify
- name: Copy other files
run: cp .htaccess ./public
- name: Deploy
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Build
env:
HUGO_ENV: production
run: hugo --minify --config cn_config.toml
run: hugo mod clean && hugo --minify --config cn_config.toml
- name: Copy other files
run: cp .htaccess ./public
- name: Deploy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/link_check.yml
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Build
env:
HUGO_ENV: production
run: hugo --minify --baseURL /
run: hugo mod clean && hugo --minify --baseURL /
- name: Cache Html Test Ref
uses: ./.github/actions/always-upload-cache
with:
Expand Down
6 changes: 0 additions & 6 deletions .gitmodules
@@ -1,10 +1,4 @@

[submodule "themes/docsy"]
path = themes/docsy
url = https://github.com/google/docsy.git
[submodule ".github/themes/docsy"]
path = .github/themes/docsy
url = https://github.com/google/docsy.git
[submodule ".github/actions/always-upload-cache"]
path = .github/actions/always-upload-cache
url = https://github.com/pat-s/always-upload-cache.git
6 changes: 4 additions & 2 deletions .htaccess
Expand Up @@ -16,19 +16,21 @@

RewriteCond "%{HTTP:Accept-Language}" ^zh
RewriteCond %{HTTP_HOST} !cn
RewriteCond %{HTTP_HOST} !static
RewriteRule ^(.*)$ https://cn.dubbo.apache.org/$1 [L,R=302]

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
RewriteRule ^/?(index\.html)?$ "/zh/index.html" [L,R=302]
RewriteRule ^/?(index\.html)?$ "/zh-cn/index.html" [L,R=302]

RewriteRule ^/?(index\.html)?$ "/en/index.html" [L,R=302]

RewriteCond "%{HTTP:Accept-Language}" ^zh [NC]
RewriteRule ^/?faq/?([\w\-/]+)?$ "/zh/docs3-v2/java-sdk/faq/$1" [L,R=302]
RewriteRule ^/?faq/?([\w\-/]+)?$ "/zh-cn/docs3-v2/java-sdk/faq/$1" [L,R=302]

RewriteRule ^/?faq/?([\w\-/]+)?$ "/en/docs3-v2/java-sdk/faq/$1" [L,R=302]

RewriteRule ^/?zh/([\w\-/]+)?$ "/zh-cn/$1" [L,R=302]
</IfModule>
1 change: 1 addition & 0 deletions .htmltest.yml
Expand Up @@ -13,6 +13,7 @@ IgnoreURLs: [
# edit page => always ignore
"https://github.com/apache/dubbo-website/edit/master/content/.*",
"https://github.com/apache/dubbo-website/new/master/content/.*",
"https://github.com/apache/dubbo-website/tree/master/content/.*",
# docs external link might temporally unavailable => always ignore
"http://javatar.iteye.com/.*",
"https://www.baeldung.com/bdd-mockito",
Expand Down
11 changes: 6 additions & 5 deletions cn_config.toml
@@ -1,14 +1,14 @@
baseURL = "https://cn.dubbo.apache.org/"
languageCode = "en-us"
title = "Apache Dubbo"
theme = ["docsy"]
theme = ["github.com/google/docsy", "github.com/google/docsy/dependencies"]

enableGitInfo = true
enableRobotsTXT = true

# Language settings
contentDir = "content/zh"
defaultContentLanguage = "zh"
contentDir = "content/zh-cn"
defaultContentLanguage = "zh-cn"
defaultContentLanguageInSubdir = true
# Useful when translating.
enableMissingTranslationPlaceholders = true
Expand Down Expand Up @@ -62,11 +62,11 @@ contentDir = "content/en"
# Weight used for sorting.
weight = 1

[languages.zh]
[languages.zh-cn]
title = "Apache Dubbo"
description = "Apache Dubbo 官方网站"
languageName = "中文"
contentDir = "content/zh"
contentDir = "content/zh-cn"
#time_format_default = "02.01.2006"
#time_format_blog = "02.01.2006"

Expand Down Expand Up @@ -118,6 +118,7 @@ offlineSearch = false
github_repo = "https://github.com/apache/dubbo-website"
# An optional link to a related project repo. For example, the sibling repository where your product code lives.
github_project_repo = "https://github.com/apache/dubbo"
github_branch = "master"

# Specify a value here if your content directory is not in your repo's root directory
# github_subdir = ""
Expand Down
11 changes: 6 additions & 5 deletions config.toml
@@ -1,14 +1,14 @@
baseURL = "https://dubbo.apache.org/"
languageCode = "en-us"
title = "Apache Dubbo"
theme = ["docsy"]
theme = ["github.com/google/docsy", "github.com/google/docsy/dependencies"]

enableGitInfo = true
enableRobotsTXT = true

# Language settings
contentDir = "content/zh"
defaultContentLanguage = "zh"
contentDir = "content/zh-cn"
defaultContentLanguage = "zh-cn"
defaultContentLanguageInSubdir = true
# Useful when translating.
enableMissingTranslationPlaceholders = true
Expand Down Expand Up @@ -62,11 +62,11 @@ contentDir = "content/en"
# Weight used for sorting.
weight = 1

[languages.zh]
[languages.zh-cn]
title = "Apache Dubbo"
description = "Apache Dubbo 官方网站"
languageName = "中文"
contentDir = "content/zh"
contentDir = "content/zh-cn"
#time_format_default = "02.01.2006"
#time_format_blog = "02.01.2006"

Expand Down Expand Up @@ -118,6 +118,7 @@ offlineSearch = false
github_repo = "https://github.com/apache/dubbo-website"
# An optional link to a related project repo. For example, the sibling repository where your product code lives.
github_project_repo = "https://github.com/apache/dubbo"
github_branch = "master"

# Specify a value here if your content directory is not in your repo's root directory
# github_subdir = ""
Expand Down
183 changes: 0 additions & 183 deletions content/en/community/_index.md

This file was deleted.

Expand Up @@ -30,7 +30,7 @@ The figure below shows the priority of configuration override, decreasing from t

![Override Priority](/imgs/blog/configuration.jpg)

click here to view [Externalize configuration details](/zh/docsv2.7/user/configuration/config-center/)
click here to view [Externalize configuration details](/zh-cn/docsv2.7/user/configuration/config-center/)


## Configuration Format
Expand Down Expand Up @@ -92,7 +92,7 @@ Next, let's look at the changes corresponding to `ServiceConfig, ReferenceConfig

- XML

Refer to [the sample](https://github.com/apache/dubbo-samples/tree/master/1-basic/dubbo-samples-basic)
Refer to [the sample](https://github.com/apache/dubbo-samples/tree/master/1-basic/dubbo-samples-spring-xml)

```xml
<!-- dubbo-provier.xml -->
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs3-v2/golang-sdk/preface/concept/registry.md
Expand Up @@ -13,7 +13,7 @@ The server registers the interface information and sends its own address to the

![img](/imgs/architecture.png)

For details about Dubbo service discovery, please refer to [Dubbo Official Website Concept Introduction](/zh/docs/concepts/service-discovery/)
For details about Dubbo service discovery, please refer to [Dubbo Official Website Concept Introduction](/zh-cn/docs/concepts/service-discovery/)

## 2. Service discovery concept

Expand Down
Expand Up @@ -153,7 +153,7 @@ Reference [dubbo-go-samples/helloworld](https://github.com/apache/dubbo-go-sampl

#### Java-Server start

1. Define Java PB file, please refer to [Dubbo Quick Start](/zh/docs/quick-start/)
1. Define Java PB file, please refer to [Dubbo Quick Start](/zh-cn/docs/quick-start/)

```protobuf
syntax = "proto3";
Expand Down Expand Up @@ -448,7 +448,7 @@ Reference [dubbo-go-samples/rpc/dubbo](https://github.com/apache/dubbo-go-sample

#### Java-Server start

1. Define the Java interface, parameters and return values, please refer to [Dubbo Quick Start](/zh/docs/quick-start/)
1. Define the Java interface, parameters and return values, please refer to [Dubbo Quick Start](/zh-cn/docs/quick-start/)

```java
package org.apache.dubbo;
Expand Down
Expand Up @@ -58,7 +58,7 @@ In production-oriented applications, I recommend Kryo as the preferred choice fo
## Enable Kryo and FST

Using Kryo and FST is very simple, just add the corresponding dependencies first:
More plugins: [Dubbo SPI Extensions](https://dubbo.apache.org/zh/release/dubbo-spi-extensions)
More plugins: [Dubbo SPI Extensions](/zh-cn/release/dubbo-spi-extensions)

```xml
<dependency>
Expand Down

0 comments on commit 2008157

Please sign in to comment.