mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Revert "[FIX] config(link_checker): ignore external anchors and downgrade external link errors to warnings"
This reverts commit 9c53ca1a9a.
This commit is contained in:
@@ -10,8 +10,8 @@ minify_html = false
|
||||
ignored_content = [
|
||||
"*/README.md",
|
||||
"*/LICENSE-CC-BY-NC",
|
||||
"**/*.ja.md", # ignora qualquer arquivo terminado em .ja.md
|
||||
"**/*.ja/*.md", # ignora diretórios "algo.ja" com md dentro, se houver
|
||||
"**/*.ja.md", # ignora qualquer arquivo terminado em .ja.md
|
||||
"**/*.ja/*.md", # ignora diretórios "algo.ja" com md dentro, se houver
|
||||
]
|
||||
|
||||
[markdown]
|
||||
@@ -21,28 +21,37 @@ smart_punctuation = true
|
||||
|
||||
[link_checker]
|
||||
skip_prefixes = [
|
||||
"https://crates.io/crates", # crates.io API sometimes unstable
|
||||
"https://www.amd.com/system/files/TechDocs/", # issues with PDFs
|
||||
"https://developer.apple.com/library/archive/qa/qa1118/_index.html", # 401 errors
|
||||
"https://github.com", # rate limiting (429)
|
||||
"https://www.linkedin.com/", # invalid status codes
|
||||
"https://crates.io/crates", # see https://github.com/rust-lang/crates.io/issues/788
|
||||
"https://www.amd.com/system/files/TechDocs/", # seems to have problems with PDFs
|
||||
"https://developer.apple.com/library/archive/qa/qa1118/_index.html", # results in a 401 (I don't know why)
|
||||
"https://github.com", # rate limiting often leads to "Error 429 Too Many Requests"
|
||||
"https://www.linkedin.com/", # seems to send invalid HTTP status codes
|
||||
]
|
||||
|
||||
# Ignore all anchor checks on any external site
|
||||
skip_anchor_prefixes = [
|
||||
"http://",
|
||||
"https://",
|
||||
"https://github.com/", # see https://github.com/getzola/zola/issues/805
|
||||
"https://docs.rs/x86_64/0.1.2/src/", # source code highlight
|
||||
"https://doc.rust-jp.rs/book-ja/", # seems like Zola has problems with Japanese anchor names
|
||||
"https://doc.rust-jp.rs/edition-guide/rust-2018", # seems like Zola has problems with Japanese anchor names
|
||||
"https://doc.rust-jp.rs/rust-nomicon-ja/", # seems like Zola has problems with Japanese anchor names
|
||||
]
|
||||
|
||||
# Treat external link issues as warnings instead of build errors
|
||||
external_level = "warn"
|
||||
|
||||
|
||||
[extra]
|
||||
subtitle = "Philipp Oppermann's blog"
|
||||
author = { name = "Philipp Oppermann" }
|
||||
default_language = "en"
|
||||
languages = ["en", "ar", "es", "fa", "fr", "ja", "ko", "pt-BR", "ru", "zh-CN", "zh-TW"]
|
||||
languages = [
|
||||
"en",
|
||||
"ar",
|
||||
"es",
|
||||
"fa",
|
||||
"fr",
|
||||
"ja",
|
||||
"ko",
|
||||
"pt-BR",
|
||||
"ru",
|
||||
"zh-CN",
|
||||
"zh-TW",
|
||||
]
|
||||
|
||||
[translations]
|
||||
lang_name = "English (original)"
|
||||
|
||||
Reference in New Issue
Block a user