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