Skip to content
Snippets Groups Projects
Commit b10b1807 authored by Martin Schroschk's avatar Martin Schroschk
Browse files

Add note on changed interface

parent 465dde47
No related branches found
No related tags found
2 merge requests!1138Automated merge from preview to main,!1129Refactor script check-links
...@@ -100,7 +100,6 @@ function check_changed_files(){ ...@@ -100,7 +100,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
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
cd doc.zih.tu-dresden.de cd doc.zih.tu-dresden.de
...@@ -117,20 +116,27 @@ if [[ $# -ge 1 ]]; then ...@@ -117,20 +116,27 @@ if [[ $# -ge 1 ]]; then
;; ;;
-a | --all) -a | --all)
export ENABLED_HTMLPROOFER_EXTERNAL_URLS=true export ENABLED_HTMLPROOFER_EXTERNAL_URLS=true
echo "Info: Building documentation and checking internal and external links. Might take some time."
check_all_files_hpp check_all_files_hpp
;; ;;
-i | --internal) -i | --internal)
export ENABLED_HTMLPROOFER_EXTERNAL_URLS=false export ENABLED_HTMLPROOFER_EXTERNAL_URLS=false
echo "Info: Building documentation and checking internal links. Might take some time."
check_all_files_hpp check_all_files_hpp
;; ;;
-c | --changed) -c | --changed)
echo "Info: Checking links in modified files."
check_changed_files check_changed_files
;; ;;
*) *)
echo "Info: Checking links in file $1"
check_single_file "$1" check_single_file "$1"
;; ;;
esac esac
else else
echo -e "Remark: The script changed in Oct. 2024. You did not provide any option.
If you intend to check the links of all modified files, please
provide the option \"-c\"\n"
usage usage
exit 1 exit 1
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment