mirror of
https://github.com/vale981/ablog
synced 2025-03-04 16:51:39 -05:00
Fix sidebar and blog_baseurl misconfig during quick start
This commit is contained in:
parent
2fc904e6ea
commit
a2850635d6
1 changed files with 2 additions and 4 deletions
|
@ -329,9 +329,6 @@ html_static_path = ['%(dot)sstatic']
|
|||
# typographically correct entities.
|
||||
#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
|
||||
# template names.
|
||||
#html_additional_pages = {}
|
||||
|
@ -623,9 +620,10 @@ def ask_user(d):
|
|||
'be generated relative to this URL. If you don\'t have one yet, '
|
||||
'you can set it in configuration file later.'))
|
||||
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)
|
||||
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('')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue