Fix sidebar and blog_baseurl misconfig during quick start

This commit is contained in:
Alan Ray 2019-08-18 01:34:38 -04:00
parent 2fc904e6ea
commit a2850635d6

View file

@ -329,9 +329,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 = {}
@ -623,9 +620,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('')