mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-06 00:04:17 +01:00
Merge branch 'current' into next
This commit is contained in:
commit
4928ec5de2
@ -9,6 +9,9 @@
|
||||
[context.next]
|
||||
environment = { BASE_URL = "https://next.esphome.io" }
|
||||
|
||||
[context.production]
|
||||
environment = { BASE_URL = "https://esphome.io", PRODUCTION = "YES" }
|
||||
|
||||
# A basic redirect rule
|
||||
[[redirects]]
|
||||
from = "/esphomeyaml/*"
|
||||
|
@ -39,6 +39,6 @@ def create_sitemap(app, exception):
|
||||
encoding='utf-8',
|
||||
method="xml")
|
||||
|
||||
if app.builder.config.html_baseurl != 'https://esphome.io':
|
||||
if os.getenv('PRODUCTION') != 'YES':
|
||||
with open(os.path.join(app.builder.outdir, 'robots.txt'), 'wt') as f:
|
||||
f.write('User-agent: *\nDisallow: /\n')
|
||||
|
Loading…
Reference in New Issue
Block a user