Skip to content

Commit

Permalink
clean up website
Browse files Browse the repository at this point in the history
  • Loading branch information
beiwei30 committed Dec 22, 2020
0 parents commit 6e41905
Show file tree
Hide file tree
Showing 937 changed files with 71,284 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Report a bug in Apache Dubbo docs
title: ''
labels: kind/bug
assignees: ''

---
## Expected Behavior

<!-- Briefly describe what you expect to happen -->


## Actual Behavior

<!-- Briefly describe what is actually happening -->


## Steps to Reproduce the Problem

<!-- How can a maintainer reproduce this issue (be detailed) -->

## Release Note
<!-- How should the fix for this issue be communicated in our release notes? It can be populated later. -->
<!-- Keep it as a single line. Examples: -->

<!-- RELEASE NOTE: **ADD** New feature in Dapr. -->
<!-- RELEASE NOTE: **FIX** Bug in runtime. -->
<!-- RELEASE NOTE: **UPDATE** Runtime dependency. -->

RELEASE NOTE:
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/discussion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Feature Request
about: Start a discussion for Apache Dubbo docs
title: ''
labels: kind/discussion
assignees: ''

---
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature Request
about: Create a Feature Request for Apache Dubbo docs
title: ''
labels: kind/enhancement
assignees: ''

---
## Describe the feature

## Release Note
<!-- How should this new feature be announced in our release notes? It can be populated later. -->
<!-- Keep it as a single line. Examples: -->

<!-- RELEASE NOTE: **ADD** New feature in Dapr. -->
<!-- RELEASE NOTE: **FIX** Bug in runtime. -->
<!-- RELEASE NOTE: **UPDATE** Runtime dependency. -->

RELEASE NOTE:
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/proposal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Proposal
about: Create a proposal for Apache Dubbo docs
title: ''
labels: kind/proposal
assignees: ''

---
## Describe the proposal
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Question
about: Ask a question about Apache Dubbo docs
title: ''
labels: kind/question
assignees: ''

---
## Ask your question here
44 changes: 44 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Website Deploy

on:
push:
branches:
- master
pull_request:
types: [ opened, synchronize, reopened, closed ]
branches:
- master


jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Setup Docsy
run: git submodule update --init --recursive && sudo npm install -D --save autoprefixer && sudo npm install -D --save postcss-cli
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build
env:
HUGO_ENV: production
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: asf-site
publish_dir: ./public
keep_files: true
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
public/
resources/
node_modules/
package-lock.json

*.iml
.idea/

.DS_Store
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

[submodule "themes/docsy"]
path = themes/docsy
url = https://github.com/google/docsy.git
57 changes: 57 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<!-- 添加Apache校验项开始 -->
<!-- 只加a标签和img标签,不要有其余的标签出现,同时设置style="display: none" -->
<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>
<img style="display: none" src="http://dubbo.apache.org/img/apache_logo.png"/>
<ul style="display: none">
<p class="header">ASF</p>
<li><a href="http://www.apache.org">Foundation</a></li>
<li><a href="http://www.apache.org/licenses/">License</a></li>
<li><a href="http://www.apache.org/events/current-event">Events</a></li>
<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
</ul>
<p style="display: none">Copyright © 2018 The Apache Software Foundation. Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
<a style="display: none" href="http://www.apache.org/security/">Security</a>
<!-- 添加Apache校验项结束 -->
<script src="//cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>

<script>
var originalHref = window.location.href;
if (originalHref.indexOf("docs/user/") > -1) {
window.location.href = newHref("docs/user/", "docs/v2.7/user/");
} else if (originalHref.indexOf("docs/dev/") > -1) {
window.location.href = newHref("docs/dev/", "docs/v2.7/dev/");
} else if (originalHref.indexOf("docs/admin/") > -1) {
window.location.href = newHref("docs/admin/", "docs/v2.7/admin/");
} else if (originalHref.indexOf("docs/source_code_guide/") > -1) {
window.location.href = newHref("docs/source_code_guide/", "docs/v2.7/dev/source/");
} else if (originalHref.indexOf("docs/developers/") > -1) {
window.location.href = newHref("docs/developers/", "contribution-guidelines/");
} else if (originalHref.indexOf("blog/index.html") >-1) {
window.location.href = newHref("blog/index.html", "blog/2018/08/07/dubbo-101/");
} else {
// window.location.href = "http://dubbo.apache.org/en-us/";
}

function newHref(path, newPath) {
var idx = originalHref.indexOf(path);
var part1 = originalHref.substring(0, idx);
var part2 = "";
if (idx + path.length < originalHref.length -1) {
part2 = originalHref.substring(idx + path.length);
}
var newHref = part1 + newPath + part2;
if (newHref.endsWith('.html')) {
newHref = newHref.substr(0, newHref.length - 5) + "/";
}
return newHref;
}
</script>
</body>
</html>
Loading

0 comments on commit 6e41905

Please sign in to comment.