Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
cb4a0276
Commit
cb4a0276
authored
6 months ago
by
Martin Schroschk
Browse files
Options
Downloads
Patches
Plain Diff
Add option to check only internal links for MR
parent
c309462d
No related branches found
No related tags found
2 merge requests
!1138
Automated merge from preview to main
,
!1129
Refactor script check-links
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/util/check-links.sh
+6
-1
6 additions, 1 deletion
doc.zih.tu-dresden.de/util/check-links.sh
with
6 additions
and
1 deletion
doc.zih.tu-dresden.de/util/check-links.sh
+
6
−
1
View file @
cb4a0276
...
@@ -36,6 +36,7 @@ usage: $0 [file | -a | -c]
...
@@ -36,6 +36,7 @@ usage: $0 [file | -a | -c]
Options:
Options:
<file> Check links in the provided markdown file
<file> Check links in the provided markdown file
-a; --all Check links in all markdown files
-a; --all Check links in all markdown files
-i; --interal Check links in all markdown files (internal links only)
-c; --changed Check links in all git-changed files
-c; --changed Check links in all git-changed files
EOF
EOF
}
}
...
@@ -101,7 +102,6 @@ function check_changed_files(){
...
@@ -101,7 +102,6 @@ function check_changed_files(){
# Make use of the html-proofer-plugin and build documentation
# Make use of the html-proofer-plugin and build documentation
function
check_all_files_hpp
()
{
function
check_all_files_hpp
()
{
export
ENABLED_HTMLPROOFER
=
true
export
ENABLED_HTMLPROOFER
=
true
export
ENABLED_HTMLPROOFER_EXTERNAL_URLS
=
true
echo
"Info: Building documentation and checking internal and external links. Might take some time."
echo
"Info: Building documentation and checking internal and external links. Might take some time."
# Switch for wikiscript
# Switch for wikiscript
if
[[
-d
"doc.zih.tu-dresden.de"
]]
;
then
if
[[
-d
"doc.zih.tu-dresden.de"
]]
;
then
...
@@ -118,6 +118,11 @@ if [[ $# -ge 1 ]]; then
...
@@ -118,6 +118,11 @@ if [[ $# -ge 1 ]]; then
exit
exit
;;
;;
-a
|
--all
)
-a
|
--all
)
export
ENABLED_HTMLPROOFER_EXTERNAL_URLS
=
true
check_all_files_hpp
;;
-i
|
--internal
)
export
ENABLED_HTMLPROOFER_EXTERNAL_URLS
=
false
check_all_files_hpp
check_all_files_hpp
;;
;;
-c
|
--changed
)
-c
|
--changed
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment