This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/isis-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new cf8a20085 ISIS-2965: adds stop urls for older versions
cf8a20085 is described below

commit cf8a2008536ab29ffa81a7e8922eb77b148e67f1
Author: Dan Haywood <[email protected]>
AuthorDate: Thu Oct 6 12:16:45 2022 +0100

    ISIS-2965: adds stop urls for older versions
---
 algolia-config.json | 50 +++++++++++++++++++++++++++++++++-----------------
 1 file changed, 33 insertions(+), 17 deletions(-)

diff --git a/algolia-config.json b/algolia-config.json
index d213f94ca..05cfbeaf8 100644
--- a/algolia-config.json
+++ b/algolia-config.json
@@ -7,22 +7,38 @@
     "https://isis.apache.org/sitemap.xml";
   ],
   "stop_urls": [
-    "https://isis.apache.org/versions/1.17.0/documentation.html";,
-    "https://isis.apache.org/versions/1.16.2/documentation.html";,
-    "https://isis.apache.org/versions/1.16.1/documentation.html";,
-    "https://isis.apache.org/versions/1.16.0/documentation.html";,
-    "https://isis.apache.org/versions/1.15.1/documentation.html";,
-    "https://isis.apache.org/versions/1.15.0/documentation.html";,
-    "https://isis.apache.org/versions/1.14.0/documentation.html";,
-    "https://isis.apache.org/versions/1.13.2.1/documentation.html";,
-    "https://isis.apache.org/versions/1.13.2/documentation.html";,
-    "https://isis.apache.org/versions/1.13.1/documentation.html";,
-    "https://isis.apache.org/versions/1.13.0/documentation.html";,
-    "https://isis.apache.org/versions/1.12.2/documentation.html";,
-    "https://isis.apache.org/versions/1.12.1/documentation.html";,
-    "https://isis.apache.org/versions/1.12.0/documentation.html";,
-    "https://isis.apache.org/versions/1.11.1/documentation.html";,
-    "https://isis.apache.org/versions/1.11.0/documentation.html";
+    {
+      "url": "https://isis[.]apache[.]org/(?P<module>.*?)/(?P<version>.*?)/,",
+      "variables": {
+        "module": [
+          "docs", "comguide", "conguide", "setupguide", "relnotes",
+          "refguide",  "userguide",
+          "core", "security", "extensions", "valuetypes",
+          "vro", "vw", "pjdo", "pjpa", "testing",
+          "tutorials",
+          "incubator", "regressiontests"
+        ],
+        "version": [
+          "2.0.0-M7",
+          "2.0.0-M6",
+          "2.0.0-M5"
+        ]
+      }
+    },
+    {
+      "url": "https://isis[.]apache[.]org/versions/(?P<version>.*?)/",
+      "variables": {
+        "version": [
+          "1.17.0",
+          "1.16.2", "1.16.1", "1.16.0",
+          "1.15.1", "1.15.0",
+          "1.14.0",
+          "1.13.2", "1.13.2", "1.13.1", "1.13.0",
+          "1.12.2", "1.12.1", "1.12.0",
+          "1.11.1", "1.11.0"
+        ]
+      }
+    },
   ],
   "selectors": {
     "lvl0": {
@@ -37,4 +53,4 @@
     ,"lvl4": ".doc h4"
     ,"text": ".doc p, .doc td.content, .doc th.tableblock"
   }
-}
\ No newline at end of file
+}

Reply via email to