Merge pull request #36 from rayalan/improve

Fix sidebar and blog_baseurl misconfig during quick start
This commit is contained in:
Nabil Freij 2019-08-19 21:53:17 +01:00 committed by GitHub
commit 5ccda0adb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -335,9 +335,6 @@ html_static_path = ['%(dot)sstatic']
# typographically correct entities. # typographically correct entities.
#html_use_smartypants = True #html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
# Additional templates that should be rendered to pages, maps page names to # Additional templates that should be rendered to pages, maps page names to
# template names. # template names.
#html_additional_pages = {} #html_additional_pages = {}
@ -629,9 +626,10 @@ def ask_user(d):
'be generated relative to this URL. If you don\'t have one yet, ' 'be generated relative to this URL. If you don\'t have one yet, '
'you can set it in configuration file later.')) 'you can set it in configuration file later.'))
if SPHINX_LT_17: if SPHINX_LT_17:
# APR: Not sure how do_prompt() worked prior to Sphinx 1.7; likely to be `lambda x: x` here too
do_prompt(d, 'blog_baseurl', 'Base URL for your project', None, lambda x: True) do_prompt(d, 'blog_baseurl', 'Base URL for your project', None, lambda x: True)
else: else:
d['blog_baseurl'] = do_prompt('Base URL for your project', None, lambda x: True) d['blog_baseurl'] = do_prompt('Base URL for your project', None, lambda x: x)
print('') print('')