Browse Source

Update sitemap file

Add new releases, add already stein to not forget about it.

Update regex for releases, we do not publish only to /ocata/
but also to /PROJECT/ocata - tread all these the same.

Change-Id: I8ef454f779904d91e5e79c83c488dcba42ba2150
changes/54/601054/2
Andreas Jaeger 1 year ago
parent
commit
a4f47a0246
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      sitemap/generator/spiders/sitemap_file.py

+ 7
- 3
sitemap/generator/spiders/sitemap_file.py View File

@@ -36,10 +36,14 @@ class SitemapSpider(spiders.CrawlSpider):
36 36
     MAINT_SERIES = [
37 37
         'newton',
38 38
         'ocata',
39
-        'pike'
39
+        'pike',
40
+        'queens',
41
+        'rocky',
42
+        'stein',
40 43
     ]
41
-    MAINT_RELEASES_PAT = re.compile('^/(' + '|'.join(MAINT_SERIES) + ')/')
42
-    LATEST_PAT = re.compile('^/latest/')
44
+    MAINT_RELEASES_PAT = re.compile('^.*/(' + '|'.join(MAINT_SERIES) + ')/')
45
+    print('/(' + '|'.join(MAINT_SERIES) + ')/')
46
+    LATEST_PAT = re.compile('^.*/latest/')
43 47
 
44 48
     rules = [
45 49
         spiders.Rule(

Loading…
Cancel
Save