File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ def generate_sitemap():
4141 # Traverse all subfolders and gather .json file data
4242 for root , dirs , files in os .walk (JSON_FOLDER ):
4343 print (f"Checking folder: { root } " )
44+ if "Example" in os .path .normpath (root ).split (os .sep ):
45+ continue # Skip any folder named Example
46+ print (f"Checking folder: { root } " )
4447 for file_name in files :
4548 if file_name .endswith (".json" ) and not file_name .endswith ("_actions.json" ) and not file_name .endswith ("_frequency.json" ):
4649 folder_name = os .path .splitext (file_name )[0 ]
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<urlset xmlns =" https://www.sitemaps.org/schemas/sitemap/0.9" >
3- <url >
4- <loc >https://raw.githubusercontent.com/BioEcoOcean/metadata-tracking-dev/refs/heads/main/jsonFiles/Draft_Sub/Draft_Sub.json</loc >
5- <lastmod >2025-07-22</lastmod >
6- <changefreq >asneeded</changefreq >
7- </url >
8- <url >
9- <loc >https://raw.githubusercontent.com/BioEcoOcean/metadata-tracking-dev/refs/heads/main/jsonFiles/Draft_Sub/Draft_Sub_actions.json</loc >
10- <lastmod >2025-07-22</lastmod >
11- <changefreq >asneeded</changefreq >
12- </url >
13- <url >
14- <loc >https://raw.githubusercontent.com/BioEcoOcean/metadata-tracking-dev/refs/heads/main/jsonFiles/Example/Example.json</loc >
15- <lastmod >2025-08-22</lastmod >
16- <changefreq >asNeeded</changefreq >
17- </url >
18- <url >
19- <loc >https://raw.githubusercontent.com/BioEcoOcean/metadata-tracking-dev/refs/heads/main/jsonFiles/Example/Example_actions.json</loc >
20- <lastmod >2025-08-22</lastmod >
21- <changefreq >asNeeded</changefreq >
22- </url >
3+ </url >
234</urlset >
You can’t perform that action at this time.
0 commit comments