Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Commit

Permalink
update sphinx and pygments entry points
Browse files Browse the repository at this point in the history
css formatting
  • Loading branch information
davidism committed Nov 29, 2017
1 parent 0f7f447 commit d7135dd
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 111 deletions.
6 changes: 3 additions & 3 deletions README.rst
Expand Up @@ -2,7 +2,7 @@ Flask Sphinx Themes
===================

This repository contains Sphinx themes for Flask and Flask related
projects. To use this theme in your Sphinx documentation:
projects. To use this theme in your Sphinx documentation:

1. Install the package using pip: ``pip install Flask-Sphinx-Themes``

Expand All @@ -21,7 +21,7 @@ The following themes exist for ``html_theme``.
flask The standard Flask documentation theme for
large projects

flask_small Small single page theme. Intended to be used
flask_small Small single page theme. Intended to be used
by very small addon libraries for Flask.
======================= ===============================================

Expand Down Expand Up @@ -65,4 +65,4 @@ Pygments Style

The theme automatically sets ``pygments_style`` to the provided style.
Make sure you remove any override from ``conf.py`` or set it to
``flask_sphinx_themes.pygments.FlaskyStyle``.
``flasky``.
9 changes: 4 additions & 5 deletions flask_sphinx_themes/__init__.py
@@ -1,13 +1,12 @@
import os

__version__ = '1.0.1'


def get_path():
return os.path.abspath(os.path.dirname(__file__))
__version__ = '1.0.2'


def setup(app):
base = os.path.dirname(__file__)
app.add_html_theme('flask', os.path.join(base, 'flask'))
app.add_html_theme('flask_small', os.path.join(base, 'flask_small'))
return {
'version': __version__,
'parallel_read_safe': True
Expand Down
106 changes: 47 additions & 59 deletions flask_sphinx_themes/flask/static/flasky.css_t
Expand Up @@ -8,11 +8,11 @@

{% set page_width = '940px' %}
{% set sidebar_width = '220px' %}

@import url("basic.css");
/* -- page layout ----------------------------------------------------------- */

/* -- page layout ---------------------------------------------------------- */

body {
font-family: 'Georgia', serif;
font-size: 17px;
Expand Down Expand Up @@ -41,20 +41,20 @@ div.sphinxsidebar {
}

hr {
border: 1px solid #B1B4B6;
border: 1px solid #b1b4b6;
}

div.body {
background-color: #ffffff;
color: #3E4349;
background-color: #fff;
color: #3e4349;
padding: 0 30px 0 30px;
}

img.floatingflask {
padding: 0 0 10px 10px;
float: right;
}

div.footer {
width: {{ page_width }};
margin: 20px auto 30px auto;
Expand All @@ -70,7 +70,7 @@ div.footer a {
div.related {
display: none;
}

div.sphinxsidebar a {
color: #444;
text-decoration: none;
Expand All @@ -80,7 +80,7 @@ div.sphinxsidebar a {
div.sphinxsidebar a:hover {
border-bottom: 1px solid #999;
}

div.sphinxsidebar {
font-size: 14px;
line-height: 1.5;
Expand All @@ -95,7 +95,7 @@ div.sphinxsidebarwrapper p.logo {
margin: 0;
text-align: center;
}

div.sphinxsidebar h3,
div.sphinxsidebar h4 {
font-family: 'Garamond', 'Georgia', serif;
Expand All @@ -109,7 +109,7 @@ div.sphinxsidebar h4 {
div.sphinxsidebar h4 {
font-size: 20px;
}

div.sphinxsidebar h3 a {
color: #444;
}
Expand All @@ -120,7 +120,7 @@ div.sphinxsidebar p.logo a:hover,
div.sphinxsidebar h3 a:hover {
border: none;
}

div.sphinxsidebar p {
color: #555;
margin: 10px 0;
Expand All @@ -131,25 +131,25 @@ div.sphinxsidebar ul {
padding: 0;
color: #000;
}

div.sphinxsidebar input {
border: 1px solid #ccc;
font-family: 'Georgia', serif;
font-size: 1em;
}
/* -- body styles ----------------------------------------------------------- */

/* -- body styles ---------------------------------------------------------- */

a {
color: #004B6B;
color: #004b6b;
text-decoration: underline;
}

a:hover {
color: #6D4100;
color: #6d4100;
text-decoration: underline;
}

div.body h1,
div.body h2,
div.body h3,
Expand All @@ -158,7 +158,7 @@ div.body h5,
div.body h6 {
font-family: 'Garamond', 'Georgia', serif;
font-weight: normal;
margin: 30px 0px 10px 0px;
margin: 30px 0 10px 0;
padding: 0;
}

Expand All @@ -175,20 +175,20 @@ div.body h3 { font-size: 150%; }
div.body h4 { font-size: 130%; }
div.body h5 { font-size: 100%; }
div.body h6 { font-size: 100%; }

a.headerlink {
color: #ddd;
padding: 0 4px;
text-decoration: none;
}

a.headerlink:hover {
color: #444;
background: #eaeaea;
}

div.body p, div.body dd, div.body li {
line-height: 1.4em;
line-height: 1.4;
}

div.admonition {
Expand Down Expand Up @@ -226,27 +226,27 @@ div.highlight {
}

dt:target, .highlight {
background: #FAF3E8;
background: #faf3e8;
}

div.note {
background-color: #eee;
border: 1px solid #ccc;
}

div.seealso {
background-color: #ffc;
border: 1px solid #ff6;
}

div.topic {
background-color: #eee;
}

p.admonition-title {
display: inline;
}

p.admonition-title:after {
content: ":";
}
Expand Down Expand Up @@ -314,7 +314,7 @@ table.field-list td {
}

table.footnote td.label {
width: 0px;
width: 0;
padding: 0.3em 0 0.3em 0.5em;
}

Expand All @@ -340,12 +340,12 @@ ul, ol {
margin: 10px 0 10px 30px;
padding: 0;
}

pre {
background: #eee;
padding: 7px 30px;
margin: 15px -30px;
line-height: 1.3em;
line-height: 1.3;
}

dl pre, blockquote pre, li pre {
Expand All @@ -357,66 +357,59 @@ dl dl pre {
margin-left: -90px;
padding-left: 90px;
}

tt {
background-color: #ecf0f3;
color: #222;
/* padding: 1px 2px; */
}

tt.xref, a tt {
background-color: #FBFBFB;
background-color: #fbfbfb;
border-bottom: 1px solid white;
}

a.reference {
text-decoration: none;
border-bottom: 1px dotted #004B6B;
border-bottom: 1px dotted #004b6b;
}

a.reference:hover {
border-bottom: 1px solid #6D4100;
border-bottom: 1px solid #6d4100;
}

a.footnote-reference {
text-decoration: none;
font-size: 0.7em;
vertical-align: top;
border-bottom: 1px dotted #004B6B;
border-bottom: 1px dotted #004b6b;
}

a.footnote-reference:hover {
border-bottom: 1px solid #6D4100;
border-bottom: 1px solid #6d4100;
}

a:hover tt {
background: #EEE;
background: #eee;
}


@media screen and (max-width: 870px) {

div.sphinxsidebar {
display: none;
}

div.document {
width: 100%;
width: 100%;

}

div.documentwrapper {
margin-left: 0;
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin: 0;
}

div.bodywrapper {
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
margin: 0;
}

ul {
Expand All @@ -443,12 +436,8 @@ a:hover tt {
display: none;
}



}



@media screen and (max-width: 875px) {

body {
Expand Down Expand Up @@ -535,7 +524,6 @@ a:hover tt {
}
}


/* scrollbars */

::-webkit-scrollbar {
Expand Down Expand Up @@ -573,5 +561,5 @@ a:hover tt {
/* misc. */

.revsys-inline {
display: none!important;
}
display: none !important;
}
2 changes: 1 addition & 1 deletion flask_sphinx_themes/flask/theme.conf
@@ -1,7 +1,7 @@
[theme]
inherit = basic
stylesheet = flasky.css
pygments_style = flask_sphinx_themes.pygments.FlaskyStyle
pygments_style = flasky

[options]
index_logo =
Expand Down

0 comments on commit d7135dd

Please sign in to comment.