Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #1656
  • Loading branch information
ralsina committed Apr 22, 2015
1 parent d478f86 commit 463b99b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -15,6 +15,7 @@ Features
Bugfixes
--------

* Don't default to any swatch in bootswatch_theme (Issue #1656)
* Fix ``nikola check -l`` for absolute and full-path URL styles
(Issue #1650)
* Really add missing trailing slashes in ``BASE_URL`` (Issue #1651)
Expand Down
2 changes: 1 addition & 1 deletion nikola/conf.py.in
Expand Up @@ -516,7 +516,7 @@ REDIRECTIONS = ${REDIRECTIONS}
# vim
# vs
# xcode
$ This list MAY be incomplete since pygments adds styles every now and then.
# This list MAY be incomplete since pygments adds styles every now and then.
# CODE_COLOR_SCHEME = 'default'

# If you use 'site-reveal' theme you can select several subthemes
Expand Down
6 changes: 5 additions & 1 deletion nikola/plugins/command/bootswatch_theme.py
Expand Up @@ -26,6 +26,7 @@

from __future__ import print_function
import os
import sys

try:
import requests
Expand Down Expand Up @@ -57,7 +58,7 @@ class CommandBootswatchTheme(Command):
{
'name': 'swatch',
'short': 's',
'default': 'slate',
'default': '',
'type': str,
'help': 'Name of the swatch from bootswatch.com.'
},
Expand All @@ -77,6 +78,9 @@ def _execute(self, options, args):

name = options['name']
swatch = options['swatch']
if not swatch:
LOGGER.error('The -s option is mandatory')
sys.exit(1)
parent = options['parent']
version = ''

Expand Down

0 comments on commit 463b99b

Please sign in to comment.