Skip to content

Commit 1a4b998

Browse files
authored
Refactor website structure (#2860)
1 parent 0409054 commit 1a4b998

File tree

1,227 files changed

+37761
-35621
lines changed

Some content is hidden

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

1,227 files changed

+37761
-35621
lines changed

.github/workflows/build_and_deploy_history.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Hugo
2424
uses: peaceiris/actions-hugo@v2
2525
with:
26-
hugo-version: 'latest'
26+
hugo-version: '0.121.2'
2727
extended: true
2828
- name: Build
2929
env:

.github/workflows/link_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Hugo
2626
uses: peaceiris/actions-hugo@v2
2727
with:
28-
hugo-version: '0.122.0'
28+
hugo-version: '0.121.2'
2929
extended: true
3030
- name: Build
3131
env:

.htmltest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DirectoryPath: public
2-
IgnoreAltMissing: false
3-
IgnoreAltEmpty: false
2+
IgnoreAltMissing: true
3+
IgnoreAltEmpty: true
44
IgnoreInternalEmptyHash: true
55
IgnoreDirectoryMissingTrailingSlash: true
66
IgnoreCanonicalBrokenLinks: false

assets/scss/_base.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ main {
149149
// HERO
150150
.header-hero {
151151
background-image: url(/imgs/texture.png);
152-
background-color: $blue;
152+
background-color: $gray;
153153
text-align: center;
154154
padding-left: 0;
155155
padding-right: 0;
@@ -181,7 +181,7 @@ main {
181181
}
182182

183183
.header-hero {
184-
background-color: $blue;
184+
background-color: $gray;
185185

186186
h5 {
187187
margin: 20px 0;

assets/scss/_buttons.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Buttons
2+
3+
@if $enable-rounded {
4+
.btn {
5+
border-radius: 1rem;
6+
7+
&-lg {
8+
border-radius: 2rem;
9+
}
10+
11+
&-sm {
12+
border-radius: 1rem;
13+
}
14+
}
15+
}

assets/scss/_case-studies.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ h2 {
6666
}
6767

6868
body footer {
69-
background-color: #585858 !important;
69+
background-color: #F4F4F6 !important;
7070
}
7171

7272
.section1 {

assets/scss/_custom.scss

Lines changed: 68 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ $announcement-size-adjustment: 8px;
33
/* GLOBAL */
44
.td-main {
55
.row {
6+
--bs-gutter-x: 4rem;
67
margin: 0;
78
}
89

@@ -24,6 +25,10 @@ $announcement-size-adjustment: 8px;
2425
.ui-widget-content a {
2526
color: $blue;
2627
}
28+
29+
a {
30+
text-decoration: none;
31+
}
2732
}
2833

2934
.footer-margin-0{
@@ -106,17 +111,18 @@ body.td-404 main .error-details {
106111
.td-navbar {
107112
position: fixed !important;
108113
width: 100%;
109-
padding-bottom: 1rem !important;
114+
height: 40px;
110115
background: transparent !important;
111116
transition: 0.3s;
117+
padding: 1rem;
112118

113119
.navbar-brand {
114-
position: absolute;
115-
width: 45px;
116-
height: 44px;
120+
// position: absolute;
121+
width: 96px;
122+
height: 20px;
117123
background-repeat: no-repeat;
118124
background-size: contain;
119-
background-image: url("/imgs/favicon.png");
125+
background-image: url("/imgs/nav_logo2.png");
120126
}
121127

122128
#hamburger {
@@ -135,9 +141,11 @@ body.td-404 main .error-details {
135141
}
136142
}
137143

144+
145+
138146
.td-navbar-nav-scroll {
139147
overflow: visible !important;
140-
display: none;
148+
// display: none;
141149

142150
.navbar-nav {
143151
overflow: visible !important;
@@ -146,6 +154,7 @@ body.td-404 main .error-details {
146154
flex-direction: row;
147155
flex-wrap: wrap;
148156
justify-content: space-evenly;
157+
padding-bottom: 0px!important;
149158

150159
.nav-item {
151160
position: relative;
@@ -154,7 +163,7 @@ body.td-404 main .error-details {
154163
.active::after {
155164
position: absolute;
156165
width: 100%;
157-
height: 2px;
166+
height: 0px;
158167
content: "";
159168
bottom: -4px;
160169
left: 0;
@@ -163,21 +172,22 @@ body.td-404 main .error-details {
163172
}
164173
}
165174

175+
166176
@media only screen and (min-width: 768px) {
167-
display: block;
168-
margin-top: 3.5rem !important;
177+
display: flex!important;
178+
align-items: center!important;
169179
}
170180

171-
@media only screen and (min-width: 1075px) {
172-
margin-top: 1rem !important;
173-
}
174181
}
175182

183+
176184
// Flip-Nav
177185
.flip-nav .td-navbar {
178-
background-color: white !important;
179-
// box-shadow: 0 1px 2px $medium-grey;
180-
border: 1px solid #ddd;
186+
// background-color: #EBECEF !important;
187+
.dropdown {
188+
min-width: 0px;
189+
190+
}
181191
.navbar-nav {
182192
.nav-item {
183193
&.show .nav-link,
@@ -194,6 +204,24 @@ body.td-404 main .error-details {
194204
color: $medium-grey;
195205
}
196206
}
207+
.nav-link {
208+
font-size: 14px;
209+
font-weight: 400;
210+
color: #597371;
211+
&:hover {
212+
color:#49615f;
213+
}
214+
}
215+
}
216+
.nav-item-line ::after{
217+
content:"";
218+
position: absolute;
219+
top: 50%;
220+
transform: translateY(-50%);
221+
left: 100%;
222+
width: 1px;
223+
height: 16px;
224+
background-color: #8FA8A6;
197225
}
198226
}
199227

@@ -659,7 +687,7 @@ body.td-documentation {
659687
margin-bottom: 0px;
660688

661689
// for padding-top see _size.scss
662-
padding-bottom: calc(max(2em, 2rem));
690+
padding-bottom: calc(max(1em, 1rem));
663691

664692
max-width: calc(min(1200px - 8em, 80vw));
665693
}
@@ -687,7 +715,7 @@ body.td-documentation {
687715
@media (min-width: 992px) {
688716
#announcement aside { // more specific
689717
.announcement-main {
690-
padding-top: calc(max(8em, 8rem));
718+
padding-top: calc(max(6em, 6rem));
691719
}
692720
}
693721
}
@@ -860,10 +888,27 @@ div.alert > em.javascript-required {
860888
margin: calc(max(4em, ( 8vh + 4em ) / 2)) 0 0.25em 0;
861889
}
862890

863-
#td-sidebar-menu{
864-
overflow: auto;
865-
white-space: nowrap;
891+
#docsearch {
892+
.DocSearch-Button {
893+
background: #DDDEE4;
894+
padding: 0 10px !important;
895+
}
896+
.DocSearch-Button-Container{
897+
width: 15px;
898+
}
899+
.DocSearch-Button-Placeholder{
900+
font-size: 12px;
901+
display: none;
902+
}
903+
.DocSearch-Button-Keys{
904+
display: none;
905+
}
906+
}
907+
908+
#language .btn-language {
909+
width: 156px;
910+
height: 40px;
911+
margin-right: 16px;
912+
margin-bottom: 12px;
913+
border-radius: 24px;
866914
}
867-
.td-page-meta a{
868-
display: inline-block !important;
869-
}

assets/scss/_skin.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ $light-grey: #f7f7f7;
33
$dark-grey: #303030;
44
$medium-grey: #4c4c4c;
55
$white: #ffffff;
6+
$gray: #EBECEF;

assets/scss/main.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
@import "support/functions";
1+
@import "../vendor/bootstrap/scss/functions";
2+
@import "_variables_forward";
23
@import "variables_project";
34
@import "variables";
45
@import "support/mixins";
56

67
@import "../vendor/bootstrap/scss/bootstrap";
8+
@import "support/bootstrap_vers_test";
79

810
@import "../vendor/Font-Awesome/scss/fontawesome.scss";
911
@import "../vendor/Font-Awesome/scss/solid.scss";
1012
@import "../vendor/Font-Awesome/scss/brands.scss";
1113

1214
@import "support/utilities";
1315
@import "colors";
16+
@import "table";
1417
@import "boxes";
1518
@import "blog";
1619
@import "code";
1720
@import "nav";
1821
@import "sidebar-tree";
1922
@import "sidebar-toc";
2023
@import "buttons";
21-
@import "breadcrumb";
2224
@import "alerts";
2325
@import "content";
2426
@import "search";
@@ -27,6 +29,9 @@
2729
@import "section-index";
2830
@import "pageinfo";
2931
@import "taxonomy";
32+
@import "drawio";
33+
@import "shortcodes";
34+
@import "swagger";
3035

3136
@if $td-enable-google-fonts {
3237
@import url("/css/open-sans.css");
@@ -98,4 +103,4 @@ footer {
98103
@import "tablet";
99104
@import "desktop";
100105
@import "reset";
101-
@import "size";
106+
@import "size";

cn_config.toml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ defaultContentLanguageInSubdir = false
5555
[languages.en]
5656
title = "Apache Dubbo"
5757
description = "Apache Dubbo Official Website"
58-
languageName = "English"
58+
languageName = "EN"
5959
contentDir = "content/en"
6060
# Weight used for sorting.
6161
weight = 1
@@ -208,6 +208,26 @@ url = "mailto:dev-subscribe@dubbo.apache.org"
208208
icon = "fa fa-envelope"
209209
desc = "Discuss development issues around the project"
210210

211+
212+
[params.ecosystem]
213+
navLabel = "生态"
214+
[params.ecosystem.navOptions]
215+
[[params.ecosystem.navOptions.items]]
216+
name = "Launch A Project"
217+
url = "/zh-cn/blog"
218+
[[params.ecosystem.navOptions.items]]
219+
name = "可视化控制台"
220+
url = "/zh-cn/download"
221+
[[params.ecosystem.navOptions.items]]
222+
name = "商城系统"
223+
url = "/option-3"
224+
[[params.ecosystem.navOptions.items]]
225+
name = "Benchmark"
226+
url = "/option-3"
227+
[[params.ecosystem.navOptions.items]]
228+
name = "Proxyless Mesh"
229+
url = "/option-3"
230+
211231
[sitemap]
212232
changefreq = "monthly"
213233
filename = "sitemap.xml"

0 commit comments

Comments
 (0)