-
Notifications
You must be signed in to change notification settings - Fork 216
Improve link checking for our docs #3022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5f73e7f
3f394fa
6ef72b2
d7822d5
711f079
e8ed3f5
ff3d061
a1c38e0
caef114
b1cdc4f
2cb7b23
5908ccc
88d4d8b
2ba9794
1c227b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,7 +150,8 @@ go-install kustomize sigs.k8s.io/kustomize/kustomize/[email protected] | |
|
||
# for docs site | ||
go-install hugo -tags extended github.com/gohugoio/[email protected] | ||
go-install htmltest github.com/wjdp/[email protected] | ||
# Restore this to github.com/wjdp/htmltest@v?? once PR#215 is merged with the feature we need | ||
go-install htmltest github.com/theunrepentantgeek/htmltest@latest | ||
|
||
# for api docs | ||
# TODO: Replace this with the new release tag. | ||
|
@@ -220,15 +221,7 @@ fi | |
write-verbose "Checking for /usr/bin/postcss" | ||
if should-install "/usr/bin/postcss"; then | ||
write-info "Installing postcss" | ||
sudo npm install -g postcss postcss-cli autoprefixer | ||
fi | ||
|
||
# Ensure we can check links | ||
write-verbose "Checking for /usr/bin/markdown-link-check" | ||
if should-install "/usr/bin/markdown-link-check"; then | ||
write-info "Installing markdown-link-check" | ||
# Pinned to 3.10 due to https://github.com/tcort/markdown-link-check/issues/246 | ||
sudo npm install -g [email protected] | ||
npm install --global postcss postcss-cli autoprefixer | ||
fi | ||
|
||
if [ "$VERBOSE" == true ]; then | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,21 +89,8 @@ tasks: | |
build-docs-site: | ||
dir: docs/hugo | ||
cmds: | ||
- npm install -g postcss postcss-cli autoprefixer | ||
- hugo | ||
# - htmltest | ||
# disabled pending: https://github.com/wjdp/htmltest/issues/45 | ||
# , or us moving to a no-directory URL | ||
env: | ||
NODE_PATH: | ||
sh: npm root -g | ||
|
||
check-docs-site-links: | ||
desc: Verify documentation site links | ||
dir: docs/hugo | ||
cmds: | ||
# Excluding './content/reference/*' path as it contains all auto-generated API docs. | ||
- find . -type f -name "*.md" -not -path "./content/reference/*" -not -path "./node_modules/*" -print0 | xargs -0 -n1 markdown-link-check -c link-checker.json | ||
- htmltest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how does this work? do we not require to provide any path? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The task runs in |
||
env: | ||
NODE_PATH: | ||
sh: npm root -g | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
DirectoryPath: public | ||
CheckExternal: false | ||
CheckExternal: true | ||
IgnoreAltMissing: true | ||
BaseURL: https://azure.github.io/azure-service-operator | ||
CheckSelfReferencesAsInternal: true | ||
IgnoreDirs: | ||
- "reference" # Ignore errors in CRD docs, content is not under our control | ||
IgnoreURLs: | ||
- /favicons/ | ||
- /scss/ | ||
- /js/ | ||
- example.com | ||
- index.xml | ||
- "https://armwiki.azurewebsites.net/api_contracts/guidelines/templatedeployment.html" # Returns 404 even though valid | ||
- "https://marketplace.visualstudio.com/items" # Marketplace links return 401 even if valid | ||
- "https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md" # Manually checked, not a 404 | ||
- "azure-workload-identity" # TODO: Work out why this fails | ||
LogLevel: 3 |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave a todo here mentioning the reason and parent repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also created #3024 so we don't lose track of the need to update.