Skip to content

Commit a9fab1b

Browse files
committed
Update python-sitemap.py
1 parent cd20986 commit a9fab1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python-sitemap.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def generate_sitemap():
1717
# Skip dash.plotly.com URLs
1818
if 'dash.plotly.com' in url:
1919
continue
20-
urls.append(url)
20+
# Only include URLs that are under /python/
21+
if permalink.startswith('/python/'):
22+
urls.append(url)
2123
except:
2224
pass
2325

0 commit comments

Comments
 (0)