[libadwaita/wip/exalm/pages] Fix docs
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/pages] Fix docs
- Date: Fri, 18 Mar 2022 19:44:06 +0000 (UTC)
commit fab8a1687cade17cb743eba040728591b355d630
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Mar 18 23:43:22 2022 +0400
Fix docs
- Make the dir names actually match the ones in html
- Add redirects for the old ones
doc.sh | 11 ++++++++++-
doc/index.html | 2 --
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/doc.sh b/doc.sh
index 63f6842a..d390d4ff 100755
--- a/doc.sh
+++ b/doc.sh
@@ -15,12 +15,21 @@ IFS='
mkdir -p $DOC_DIR
for REF in $REFS; do
+ API_VERSION=`echo $REF | sed 's/libadwaita-\([0-9][0-9]*\)-\([0-9][0-9]*\)/\1.\2/'`
+
curl -L --output "$REF.zip"
"https://gitlab.gnome.org/GNOME/libadwaita/-/jobs/artifacts/$REF/download?job=doc"
unzip -d "$REF" "$REF.zip"
- mv "$REF/_doc" $DOC_DIR/$REF
+ mv "$REF/_doc" $DOC_DIR/$API_VERSION
rm "$REF.zip"
rm -rf "$REF"
done
ln -s $LATEST_STABLE_1 $DOC_DIR/1-latest
+
+# Redirect the old links
+ln -s $LATEST_STABLE_1 $DOC_DIR/1.0.0-alpha.1
+ln -s $LATEST_STABLE_1 $DOC_DIR/1.0.0-alpha.2
+ln -s $LATEST_STABLE_1 $DOC_DIR/1.0.0.alpha.3
+ln -s $LATEST_STABLE_1 $DOC_DIR/1.0.0.beta.1
+ln -s $LATEST_STABLE_1 $DOC_DIR/1.0.0
diff --git a/doc/index.html b/doc/index.html
index 46cd707d..31c48965 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -45,8 +45,6 @@
<ul class="doclist">
<li><a href="1.1/">1.1</a></li>
- </ul>
- <ul class="doclist">
<li><a href="1.0/">1.0</a></li>
</ul>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]