use link check

This commit is contained in:
shenjack 2023-01-17 23:54:40 +08:00
parent 258cb85796
commit b3eb08dfd0
3 changed files with 14 additions and 4 deletions

View File

@ -34,13 +34,12 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v2
#- name: install mdbook
# uses: extractions/setup-mdbook@v1
- name: install mdbook
uses: extractions/setup-mdbook@v1
- name: setup、build mdbook
shell: pwsh
run: |
cargo install mdbook
mdbook build ./docs/
- name: Upload artifact

View File

@ -106,6 +106,7 @@ class Translates:
try:
cache_value = self.value[item]
self.get_list.append((True, item))
if self.config.always_copy:
return self.copy
except (KeyError, TypeError, AttributeError) as e:

View File

@ -13,7 +13,6 @@ extra-watch-dirs = [] # directories to watch for triggering builds
[output.html]
input-404 = "404.md"
# cname = 'hws.shenjack.top'
# Required: Your repository URL used in the link.
git-repository-url = "https://github.com/shenjackyuanjie/Difficult-Rocket"
@ -25,6 +24,15 @@ git-branch = "main"
# The link text is marked by `[]`
open-on-text = "Found a bug? [Edit this page on GitHub.]"
[output.linkcheck]
# Should we check links on the internet? Enabling this option adds a
# non-negligible performance impact
follow-web-links = false
# Are we allowed to link to files outside of the book's root directory? This
# may help prevent linking to sensitive files (e.g. "../../../../etc/shadow")
traverse-parent-directories = true
[output.html.search]
limit-results = 15
@ -32,6 +40,8 @@ limit-results = 15
enable = true # include support for printable output
page-break = true # insert page-break after each chapter
# [output.pdf]
# [output.copy-resources]
# optional = true
# command = 'python output.py'