diff --git a/conf.py b/conf.py index 06b6b265b..59cba22a3 100644 --- a/conf.py +++ b/conf.py @@ -112,7 +112,7 @@ html_theme = 'alabaster' # further. For a list of options available for each theme, see the # documentation. # -html_baseurl = os.getenv('BASE_URL', 'https://esphomelib.com') +html_baseurl = os.getenv('BASE_URL', 'https://esphome.io/') html_theme_options = { # 'logo': 'logo-full.png', 'logo_name': False, diff --git a/sitemap.py b/sitemap.py index 9f140e20f..5e613f28a 100644 --- a/sitemap.py +++ b/sitemap.py @@ -37,13 +37,11 @@ def create_sitemap(app, exception): for link in app.sitemap_links: url = ET.SubElement(root, "url") - ET.SubElement(url, "loc").text = app.builder.config.html_baseurl + '/' + link + ET.SubElement(url, "loc").text = app.builder.config.html_baseurl + link priority = 0.5 if link.endswith('index.html'): priority += 0.25 - if 'api' in link: - priority -= 0.25 - if link == 'esphomeyaml/index.html': + if link == 'index.html': priority = 1.0 ET.SubElement(url, "priority").text = str(priority)