Skip to content

Commit 6e41905

Browse files
committed
clean up website
0 parents  commit 6e41905

File tree

937 files changed

+71284
-0
lines changed

Some content is hidden

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

937 files changed

+71284
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Report a bug in Apache Dubbo docs
4+
title: ''
5+
labels: kind/bug
6+
assignees: ''
7+
8+
---
9+
## Expected Behavior
10+
11+
<!-- Briefly describe what you expect to happen -->
12+
13+
14+
## Actual Behavior
15+
16+
<!-- Briefly describe what is actually happening -->
17+
18+
19+
## Steps to Reproduce the Problem
20+
21+
<!-- How can a maintainer reproduce this issue (be detailed) -->
22+
23+
## Release Note
24+
<!-- How should the fix for this issue be communicated in our release notes? It can be populated later. -->
25+
<!-- Keep it as a single line. Examples: -->
26+
27+
<!-- RELEASE NOTE: **ADD** New feature in Dapr. -->
28+
<!-- RELEASE NOTE: **FIX** Bug in runtime. -->
29+
<!-- RELEASE NOTE: **UPDATE** Runtime dependency. -->
30+
31+
RELEASE NOTE:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Feature Request
3+
about: Start a discussion for Apache Dubbo docs
4+
title: ''
5+
labels: kind/discussion
6+
assignees: ''
7+
8+
---
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature Request
3+
about: Create a Feature Request for Apache Dubbo docs
4+
title: ''
5+
labels: kind/enhancement
6+
assignees: ''
7+
8+
---
9+
## Describe the feature
10+
11+
## Release Note
12+
<!-- How should this new feature be announced in our release notes? It can be populated later. -->
13+
<!-- Keep it as a single line. Examples: -->
14+
15+
<!-- RELEASE NOTE: **ADD** New feature in Dapr. -->
16+
<!-- RELEASE NOTE: **FIX** Bug in runtime. -->
17+
<!-- RELEASE NOTE: **UPDATE** Runtime dependency. -->
18+
19+
RELEASE NOTE:

‎.github/ISSUE_TEMPLATE/proposal.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Proposal
3+
about: Create a proposal for Apache Dubbo docs
4+
title: ''
5+
labels: kind/proposal
6+
assignees: ''
7+
8+
---
9+
## Describe the proposal

‎.github/ISSUE_TEMPLATE/question.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Question
3+
about: Ask a question about Apache Dubbo docs
4+
title: ''
5+
labels: kind/question
6+
assignees: ''
7+
8+
---
9+
## Ask your question here
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Website Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [ opened, synchronize, reopened, closed ]
9+
branches:
10+
- master
11+
12+
13+
jobs:
14+
build_and_deploy_job:
15+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
16+
runs-on: ubuntu-latest
17+
name: Build and Deploy Job
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
submodules: recursive
22+
- name: Setup Node
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: '12.x'
26+
- name: Setup Docsy
27+
run: git submodule update --init --recursive && sudo npm install -D --save autoprefixer && sudo npm install -D --save postcss-cli
28+
- name: Setup Hugo
29+
uses: peaceiris/actions-hugo@v2
30+
with:
31+
hugo-version: 'latest'
32+
extended: true
33+
- name: Build
34+
env:
35+
HUGO_ENV: production
36+
run: hugo --minify
37+
- name: Deploy
38+
uses: peaceiris/actions-gh-pages@v3
39+
if: github.ref == 'refs/heads/master'
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
publish_branch: asf-site
43+
publish_dir: ./public
44+
keep_files: true

‎.gitignore‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public/
2+
resources/
3+
node_modules/
4+
package-lock.json
5+
6+
*.iml
7+
.idea/
8+
9+
.DS_Store

‎.gitmodules‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
[submodule "themes/docsy"]
3+
path = themes/docsy
4+
url = https://github.com/google/docsy.git

‎404.html‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
</head>
6+
<body>
7+
<!-- 添加Apache校验项开始 -->
8+
<!-- 只加a标签和img标签,不要有其余的标签出现,同时设置style="display: none" -->
9+
<a style="display: none" href="http://www.apache.org/events/current-event">Apache Dubbo is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.</a>
10+
<img style="display: none" src="http://dubbo.apache.org/img/apache_logo.png"/>
11+
<ul style="display: none">
12+
<p class="header">ASF</p>
13+
<li><a href="http://www.apache.org">Foundation</a></li>
14+
<li><a href="http://www.apache.org/licenses/">License</a></li>
15+
<li><a href="http://www.apache.org/events/current-event">Events</a></li>
16+
<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
17+
<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
18+
</ul>
19+
<p style="display: none">Copyright © 2018 The Apache Software Foundation. Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
20+
<a style="display: none" href="http://www.apache.org/security/">Security</a>
21+
<!-- 添加Apache校验项结束 -->
22+
<script src="//cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
23+
24+
<script>
25+
var originalHref = window.location.href;
26+
if (originalHref.indexOf("docs/user/") > -1) {
27+
window.location.href = newHref("docs/user/", "docs/v2.7/user/");
28+
} else if (originalHref.indexOf("docs/dev/") > -1) {
29+
window.location.href = newHref("docs/dev/", "docs/v2.7/dev/");
30+
} else if (originalHref.indexOf("docs/admin/") > -1) {
31+
window.location.href = newHref("docs/admin/", "docs/v2.7/admin/");
32+
} else if (originalHref.indexOf("docs/source_code_guide/") > -1) {
33+
window.location.href = newHref("docs/source_code_guide/", "docs/v2.7/dev/source/");
34+
} else if (originalHref.indexOf("docs/developers/") > -1) {
35+
window.location.href = newHref("docs/developers/", "contribution-guidelines/");
36+
} else if (originalHref.indexOf("blog/index.html") >-1) {
37+
window.location.href = newHref("blog/index.html", "blog/2018/08/07/dubbo-101/");
38+
} else {
39+
// window.location.href = "http://dubbo.apache.org/en-us/";
40+
}
41+
42+
function newHref(path, newPath) {
43+
var idx = originalHref.indexOf(path);
44+
var part1 = originalHref.substring(0, idx);
45+
var part2 = "";
46+
if (idx + path.length < originalHref.length -1) {
47+
part2 = originalHref.substring(idx + path.length);
48+
}
49+
var newHref = part1 + newPath + part2;
50+
if (newHref.endsWith('.html')) {
51+
newHref = newHref.substr(0, newHref.length - 5) + "/";
52+
}
53+
return newHref;
54+
}
55+
</script>
56+
</body>
57+
</html>

0 commit comments

Comments
 (0)