Skip to content

Commit

Permalink
fix sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
akaszynski committed Apr 15, 2023
1 parent 98807e3 commit 64ad7a0
Show file tree
Hide file tree
Showing 2 changed files with 2,068 additions and 2,065 deletions.
5 changes: 4 additions & 1 deletion gen-sitemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
import xml.etree.ElementTree as ET
from xml.dom.minidom import parseString

base_url = "https://docs.pyvista.org"
with open('CNAME') as fid:
cname = fid.read().strip()
base_url = f"https://{cname}"

base_path = "version/stable"

def create_sitemap_element(url):
Expand Down
Loading

0 comments on commit 64ad7a0

Please sign in to comment.