mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Further style nit and fix a missing import error.
This commit is contained in:
parent
7e6201a701
commit
a5c6fe7ac0
@ -589,8 +589,8 @@ div.admonition dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div.admonition dd {
|
||||
margin-bottom: 10px;
|
||||
div.admonition dl {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
div.admonition p {
|
||||
@ -616,7 +616,6 @@ p.admonition-title {
|
||||
margin: 0px 10px 5px 0px;
|
||||
font-weight: bold;
|
||||
display: inline;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
table.docutils {
|
||||
|
@ -768,7 +768,7 @@ def _check_superuser(app):
|
||||
pw2 = getpass.getpass('Enter password again: ')
|
||||
if pw1 != pw2:
|
||||
print 'Error: Passwords don\'t match.'
|
||||
sys.exit(1)
|
||||
raise SystemExit(1)
|
||||
app.userdb.set_password('admin', pw1)
|
||||
app.userdb.privileges['admin'].add('master')
|
||||
app.userdb.save()
|
||||
|
Loading…
Reference in New Issue
Block a user