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 \
|
sphinx \
|
||||||
breathe
|
breathe
|
||||||
|
|
||||||
VOLUME /data/esphomedocs
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
WORKDIR /data/esphomedocs
|
WORKDIR /data/esphomedocs
|
||||||
|
|
||||||
|
|
1
conf.py
1
conf.py
|
@ -217,3 +217,4 @@ texinfo_documents = [
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
linkcheck_ignore = [r'https://github.com/.*', r'https://discord.gg/.*']
|
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')
|
path = os.path.join(app.builder.outdir, 'CNAME')
|
||||||
with open(path, 'wt') as f:
|
with open(path, 'wt') as f:
|
||||||
f.write(os.getenv('CNAME', 'esphomelib.com'))
|
f.write(app.env.config.cname)
|
||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
|
app.add_config_value('cname', 'esphomelib.com', 'html')
|
||||||
app.connect('env-updated', create_nojekyll)
|
app.connect('env-updated', create_nojekyll)
|
||||||
|
|
Loading…
Reference in New Issue