Skip to content

Commit

Permalink
Merge pull request #36 from rayalan/improve
Browse files Browse the repository at this point in the history
Fix sidebar and blog_baseurl misconfig during quick start
  • Loading branch information
nabobalis authored Aug 19, 2019
2 parents 2e0ed98 + a285063 commit 5ccda0a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ablog/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,6 @@
# 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 = {}
Expand Down Expand Up @@ -629,9 +626,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('')

Expand Down

0 comments on commit 5ccda0a

Please sign in to comment.