diff options
author | Hossein <hossein@libreoffice.org> | 2021-10-26 12:40:50 +0200 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2021-10-26 15:09:33 +0200 |
commit | e62c4241093409583c913165ddc1e4c300c6218c (patch) | |
tree | 815cc3fc714e6e8ec7fe552ad0a8e824e5f2b266 /solenv/bin | |
parent | f7e351d7efa66ee3a28b339a7b2f1a5089f37024 (diff) |
Use LO repo for mkdocs git links
* Use git.libreoffice.org instead of cgit.freedesktop.org for the git
links generated by mkdocs scripts
Change-Id: Iac6e9ea1b73dcd0155786798c0ec162865299ada
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124186
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'solenv/bin')
-rwxr-xr-x | solenv/bin/mkdocs.sh | 8 | ||||
-rwxr-xr-x | solenv/bin/mkdocs_portal.sh | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/solenv/bin/mkdocs.sh b/solenv/bin/mkdocs.sh index 4b70787787e8..b339acbc3cff 100755 --- a/solenv/bin/mkdocs.sh +++ b/solenv/bin/mkdocs.sh @@ -54,7 +54,7 @@ function footer { </div> <div id="foot"> <small> - <p>Generated by Libreoffice <a href="https://cgit.freedesktop.org/libreoffice/core/plain/solenv/bin/mkdocs.sh">Module Description Tool</a></p> + <p>Generated by Libreoffice <a href="https://git.libreoffice.org/core/+/refs/heads/master/solenv/bin/mkdocs.sh">Module Description Tool</a></p> <p>Last updated: EOF LANG= date >> $output @@ -75,7 +75,7 @@ function proc_text { # Headings: == bleh == # Paragraphs: \n\n sed -re ' s/\[\[([-_a-zA-Z0-9]+)\]\]/<a href="\1.html">\1<\/a>/g' - \ - | sed -re ' s/\[git:([^]]+)\]/<a href="https:\/\/cgit.freedesktop.org\/libreoffice\/core\/tree\/\1">\1<\/a>/g' \ + | sed -re ' s/\[git:([^]]+)\]/<a href="https:\/\/git.freedesktop.org\/core\/+\/refs\/heads\/master\/\1">\1<\/a>/g' \ | sed -re ' s/\[([^]]+)\]/<a href="\1">\1<\/a>/g' \ | sed -re ' s/====([^=]+)====/<h4>\1<\/h4>/g' \ | sed -re ' s/===([^=]+)===/<h3>\1<\/h3>/g' \ @@ -243,7 +243,7 @@ for module_name in *; do # write detailed module content header "$module_name" "<a href=\"index.html\">LibreOffice</a> » ${module_name}" "$BASE_OUTPUT/${module_name}.html" text="<p><b>View module in:</b>" - text="${text} <a href=\"https://cgit.freedesktop.org/libreoffice/core/tree/${module_name}\">cgit</a>" + text="${text} <a href=\"https://git.libreoffice.org/core/+/refs/heads/master/${module_name}\">git</a>" if $(echo $INPUT_PROJECTS | grep -q $module_name); then text="${text} <a href=\"${module_name}/html/classes.html\">Doxygen</a>" fi @@ -271,7 +271,7 @@ if [ ${#empty_modules[*]} -gt 10 ]; then if [[ "$module_name" =~ ^(autom4te.cache|dictionaries|docs|helpcompiler|helpcontent2|include|instdir|lo|translations|workdir)$ ]]; then continue fi - echo -e "<li><a href=\"https://cgit.freedesktop.org/libreoffice/core/tree/${module_name}\">${module_name}</a></li>\n" >> "$BASE_OUTPUT/index.html" + echo -e "<li><a href=\"https://git.libreoffice.org/core/+/refs/heads/master/${module_name}\">${module_name}</a></li>\n" >> "$BASE_OUTPUT/index.html" done echo -e "</ul>\n" >> "$BASE_OUTPUT/index.html" fi diff --git a/solenv/bin/mkdocs_portal.sh b/solenv/bin/mkdocs_portal.sh index 867198fa8c59..6c3dc8ae3a9c 100755 --- a/solenv/bin/mkdocs_portal.sh +++ b/solenv/bin/mkdocs_portal.sh @@ -80,7 +80,7 @@ function proc_text # Headings: == bleh == # Paragraphs: \n\n sed -re ' s/\[\[([-_a-zA-Z0-9]+)\]\]/<a href="\1.html">\1<\/a>/g' - \ - | sed -re ' s/\[git:([^]]+)\]/<a href="https:\/\/cgit.freedesktop.org\/libreoffice\/core\/tree\/\1">\1<\/a>/g' \ + | sed -re ' s/\[git:([^]]+)\]/<a href="https:\/\/git.freedesktop.org\/core\/+\/refs\/heads\/master\/\1">\1<\/a>/g' \ | sed -re ' s/\[([^]]+)\]/<a href="\1">\1<\/a>/g' \ | sed -re ' s/====([^=]+)====/<h4>\1<\/h4>/g' \ | sed -re ' s/===([^=]+)===/<h3>\1<\/h3>/g' \ @@ -90,7 +90,7 @@ function proc_text } function proc_text_markdown { - sed -re ' s/\[git:([^]]+)\]/<a href="https:\/\/cgit.freedesktop.org\/libreoffice\/core\/tree\/\1">\1<\/a>/g' + sed -re ' s/\[git:([^]]+)\]/<a href="https:\/\/git.freedesktop.org\/core\/+\/refs\/heads\/master\/\1">\1<\/a>/g' } # generate entry page @@ -117,7 +117,7 @@ for module_name in *; do # write detailed module content header "$module_name" "<a href=\"index.html\">LibreOffice</a> » ${module_name}" "$BASE_OUTPUT/${module_name}.html" text="<p><b>View module in:</b>" - text="${text} <a href=\"https://cgit.freedesktop.org/libreoffice/core/tree/${module_name}\">cgit</a>" + text="${text} <a href=\"https://git.libreoffice.org/core/+/refs/heads/master/${module_name}\">git</a>" if $(echo $INPUT_PROJECTS | grep -q $module_name); then text="${text} <a href=\"${module_name}/html/classes.html\">Doxygen</a>" fi @@ -145,7 +145,7 @@ if [ ${#empty_modules[*]} -gt 10 ]; then then continue fi - echo -e "<li><a href=\"https://cgit.freedesktop.org/libreoffice/core/tree/${module_name}\">${module_name}</a></li>\n" >> "$BASE_OUTPUT/index.html" + echo -e "<li><a href=\"https://git.libreoffice.org/core/+/refs/heads/master/${module_name}\">${module_name}</a></li>\n" >> "$BASE_OUTPUT/index.html" done echo -e "</ul>\n" >> "$BASE_OUTPUT/index.html" fi |