mirror of
https://github.com/vale981/ablog
synced 2025-03-05 09:11:38 -05:00
Merge pull request #36 from rayalan/improve
Fix sidebar and blog_baseurl misconfig during quick start
This commit is contained in:
commit
5ccda0adb1
1 changed files with 2 additions and 4 deletions
|
@ -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('')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue