better docs style
authorAlexander Solovyov <alexander@solovyov.net>
Wed, 26 Jan 2011 19:01:37 +0100
changeset 172 f495e252c498
parent 171 b0a57d631b66
child 173 c96a3a22fdae
better docs style
docs/_static/custom.css
docs/conf.py
docs/index.rst
--- a/docs/_static/custom.css	Mon Jan 24 11:21:38 2011 +0100
+++ b/docs/_static/custom.css	Wed Jan 26 19:01:37 2011 +0100
@@ -1,3 +1,24 @@
 @import url("default.css");
 
-body { max-width: 70em; margin: 0 auto; }
+body {
+    max-width: 60em;
+    margin: 0 auto;
+    background-color: white;
+}
+
+h1, h2, h3, h4, h5, h6 {
+    background-color: white !important;
+    border-bottom: none !important;
+}
+
+div.related {
+    background-color: white;
+    color: black;
+}
+div.related a {
+    color: #20435C
+}
+
+div.related .right, div.document + div.related {
+    display: none;
+}
--- a/docs/conf.py	Mon Jan 24 11:21:38 2011 +0100
+++ b/docs/conf.py	Wed Jan 26 19:01:37 2011 +0100
@@ -20,9 +20,13 @@
 # -- Options for HTML output ---------------------------------------------------
 
 html_theme = 'default'
-html_style = 'custom.css'
 html_title = "%s v%s" % (project, version)
 html_static_path = ['_static']
 html_use_smartypants = True
 html_use_index = False
 html_show_sourcelink = False
+
+html_style = 'custom.css'
+html_theme_options = {
+    'nosidebar': True,
+    }
--- a/docs/index.rst	Mon Jan 24 11:21:38 2011 +0100
+++ b/docs/index.rst	Wed Jan 26 19:01:37 2011 +0100
@@ -14,23 +14,23 @@
 Features
 --------
 
- - parsing arguments from sys.argv or custom strings
- - converting from string to appropriate Python objects
- - help message generation
- - positional and named arguments
- - subcommands support
- - short, clean and concise definitions
- - ability to shorten names of subcommand and long options
+- parsing arguments from sys.argv or custom strings
+- converting from string to appropriate Python objects
+- help message generation
+- positional and named arguments
+- subcommands support
+- short, clean and concise definitions
+- ability to shorten names of subcommand and long options
 
 What's nice
 -----------
 
- - Opster is a `single file`_, which means that you can easily include it with
-   your application
- - When you've decorated function as command, you can continue to use it as
-   usual Python function.
- - It's easy to switch between usual command line options parser and
-   subcommands.
+- Opster is a `single file`_, which means that you can easily include it with
+  your application
+- When you've decorated function as command, you can continue to use it as
+  usual Python function.
+- It's easy to switch between usual command line options parser and
+  subcommands.
 
 Read more in :doc:`overview`.