forked from apache/dubbo-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken links & Add link checker (apache#1339)
* add lint * add on * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update time * add ignore * update * update limit * update * update * update * update * update link * update link * update workflows * pretty * concurrency * limit * switch to 8 * switch to 12 * update workflows * remove concurrency * ignore new * lint self * fix link * add ignore * pack lint * rewrite base * temp ignore mesh * add imgs * add imgs * add imgs * add yuque ignore
- Loading branch information
Showing
316 changed files
with
663 additions
and
687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Link Check | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
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 --baseURL / | ||
- name: Setup Html Test | ||
run: curl https://htmltest.wjdp.uk | bash | ||
- name: Lint Self | ||
run: ./bin/htmltest -s | ||
- name: Lint External | ||
run: ./bin/htmltest | ||
- name: Print lint failed list if failure | ||
if: failure() | ||
run: cat tmp/.htmltest/htmltest.log | grep -v "hitting ---" | ||
- name: Pack lint result if failure | ||
if: failure() | ||
run: 7z a ${{ github.workspace }}/htmltest.zip tmp/.htmltest/* -r | ||
- name: Upload lint result failure | ||
if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: "htmltest.zip" | ||
path: htmltest.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
DirectoryPath: public | ||
IgnoreAltMissing: true | ||
IgnoreInternalEmptyHash: true | ||
IgnoreDirectoryMissingTrailingSlash: true | ||
ExternalTimeout: 15 | ||
LogLevel: 1 | ||
IgnoreURLs: [ | ||
# starter not available => temp ignore | ||
"http://start.dubbo.io", | ||
# mesh | ||
"https://github.com/apache/dubbo-go-samples/tree/master/route/meshroute", | ||
# edit page => always ignore | ||
"https://github.com/apache/dubbo-website/edit/master/content/.*", | ||
"https://github.com/apache/dubbo-website/new/master/content/.*", | ||
# docs external link might temporally unavailable => always ignore | ||
"http://javatar.iteye.com/.*", | ||
"https://www.baeldung.com/bdd-mockito", | ||
"https://docs.github.com/.*", | ||
"https://github.com/dubbo/awesome-dubbo/blob/master/slides/meetup/201812%40hangzhou/troubleshooting-dubbo-with-arthas.pdf", | ||
"https://apachecon.dukecon.org/acna/2018/#/scheduledEvent/b8db9dc580d85853f", | ||
"https://www.yuque.com/docs/share/eff9c51f-a7f4-47d6-87ff-11a2152bdffe?", | ||
"https://www.yuque.com/docs/share/c698bd6e-e4d6-47db-bc1c-c757cc9b4f3e?", | ||
"https://www.yuque.com/docs/share/c132d5db-0dcb-487f-8833-7c7732964bd4?#", | ||
"https://www.yuque.com/docs/share/f4e72670-74ab-45b9-bc0c-4b42249ed953?#", | ||
"https://www.oschina.net/question/3820517_2306822", | ||
"https://www.webjars.org/documentation#servlet3", | ||
"https://developer.aliyun.com/article/"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,11 +162,11 @@ name = "Dubbo mailing list archive" | |
url = "https://lists.apache.org/[email protected]" | ||
icon = "fa fa-envelope" | ||
desc = "Discussion and help from your fellow users" | ||
[[params.links.user]] | ||
name = "Twitter" | ||
url = "https://twitter.com/ApacheDubbo" | ||
icon = "fab fa-twitter" | ||
desc = "Follow us on Twitter to get the latest news!" | ||
#[[params.links.user]] | ||
#name = "Bilibili" | ||
#url = "https://space.bilibili.com/1395485052" | ||
#icon = "fa-brands fa-bilibili" | ||
#desc = "Follow us on Bilibili to get the latest news!" | ||
#[[params.links.user]] | ||
# name = "Stack Overflow" | ||
# url = "https://example.org/stack" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.