mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-12 20:10:50 +01:00
Fix CNAME
This commit is contained in:
parent
3763c08c0d
commit
be4acd29aa
@ -22,7 +22,6 @@ RUN pip3 install --no-cache-dir --no-binary :all: \
|
||||
sphinx \
|
||||
breathe
|
||||
|
||||
VOLUME /data/esphomedocs
|
||||
EXPOSE 8000
|
||||
WORKDIR /data/esphomedocs
|
||||
|
||||
|
1
conf.py
1
conf.py
@ -217,3 +217,4 @@ texinfo_documents = [
|
||||
'Miscellaneous'),
|
||||
]
|
||||
linkcheck_ignore = [r'https://github.com/.*', r'https://discord.gg/.*']
|
||||
cname = os.getenv('CNAME', 'esphomelib.com')
|
||||
|
@ -7,8 +7,9 @@ def create_nojekyll(app, env):
|
||||
|
||||
path = os.path.join(app.builder.outdir, 'CNAME')
|
||||
with open(path, 'wt') as f:
|
||||
f.write(os.getenv('CNAME', 'esphomelib.com'))
|
||||
f.write(app.env.config.cname)
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.add_config_value('cname', 'esphomelib.com', 'html')
|
||||
app.connect('env-updated', create_nojekyll)
|
||||
|
Loading…
Reference in New Issue
Block a user