Browse files

import sublee-sphinx-themes

  • Loading branch information...
1 parent fc18ea3 commit ae357503790611403e438f61ee5c9bdd40f06a65 @sublee sublee committed Sep 7, 2012
View
3 .gitmodules
@@ -0,0 +1,3 @@
+[submodule "docs/_themes"]
+ path = docs/_themes
+ url = git@github.com:sublee/sublee-sphinx-themes.git
1 docs/_themes
@@ -0,0 +1 @@
+Subproject commit 0dd8441b1f7f8d07b0c1901618e11f745eda4501
View
40 docs/_themes/jdoctest/layout.html
@@ -1,40 +0,0 @@
-{% extends "basic/layout.html" %}
-{% block header %}
- <div class="wrap">
- <div class="logo">{{ theme_index_logo_alt }}</div>
- <div class="tocwrapper">
- <div class="showtoc">(<span>Show Table Of Contents</span>)</div>
- <div class="hidetoc">(<span>Hide Table Of Contents</span>)</div>
- <div class="toc">{{ toc }}</div>
- <script>
- var toc = $( ".toc" );
- $( ".showtoc span" ).click(function() {
- $( this ).parent().hide().next().show();
- toc.slideDown( "fast" );
- });
- $( ".hidetoc span" ).click(function() {
- $( this ).parent().hide().prev().show();
- toc.slideUp( "fast" );
- });
- </script>
- </div>
- {{ super() }}
-{% endblock %}
-{% block footer %}
- {{ super() }}
- </div>
-{% endblock %}
-{# do not display relbars #}
-{% block relbar1 %}{% endblock %}
-{% block relbar2 %}
- {% if theme_github_fork %}
- <a href="http://github.com/{{ theme_github_fork }}"><img
- style="position: absolute; top: 0; right: 0; border: 0;"
- src="{{ pathto("_static/fork_jdoctest.png", 1) }}"
- alt="Fork me on GitHub" /></a>
- {% endif %}
-{% endblock %}
-{% block sidebar1 %}{% endblock %}
-{% block sidebar2 %}{% endblock %}
-{% block sidebarsourcelink %}{% endblock %}
-{% block sidebarsearch %}{% endblock %}
View
32 docs/_themes/jdoctest/pygments_style.py
@@ -1,32 +0,0 @@
-# jDoctest pygments style based on flasky style
-from pygments.style import Style
-from pygments.token import Keyword, Name, Comment, String, Error, \
- Number, Operator, Generic, Whitespace, Punctuation, Other, Literal
-
-
-class jDoctestStyle(Style):
- background_color = "#fafafa"
- default_style = ""
-
- styles = {
- Comment: "#567", # class: 'c'
- Comment.Single: "italic #a97", # class: 'c1'
-
- Keyword: "#925", # class: 'k'
- Keyword.Constant: "#45a", # class: 'kc'
- Keyword.Declaration: "#a61", # class: 'kd'
-
- Operator: "#666", # class: 'o'
-
- Punctuation: "#333", # class: 'p'
-
- Name: "#000", # class: 'n'
- Name.Attribute: "#b58", # class: 'na'
- Name.Builtin: "#442", # class: 'nb'
- Name.Tag: "bold #45a", # class: 'nt'
-
- Number: "#b69", # class: 'm'
- String: "#690", # class: 's'
- Generic.Output: "bold #568", # class: 'go'
- Generic.Prompt: "#876", # class: 'gp'
- }
View
BIN docs/_themes/jdoctest/static/bg.gif
Deleted file not rendered
View
BIN docs/_themes/jdoctest/static/fork_jdoctest.png
Deleted file not rendered
View
172 docs/_themes/jdoctest/static/jdoctest.css_t
@@ -1,172 +0,0 @@
-@import url("basic.css");
-
-body {
- font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
- font-size: 15px;
- line-height: 1.6;
- background: #fefefa url('bg.gif') no-repeat center top;
- color: #554;
-}
-
-.logo {
- text-indent: -9999px;
- background: url({{ theme_index_logo }}) no-repeat center center;
- height: {{ theme_index_logo_height }};
-}
-
-h1 {
- display: none;
-}
-
-h2, h3, h4, h5, h6 {
- font-family: NeoSans, 'Trebuchet MS', sans-serif;
-}
-
-h2 {
- padding-top: 15px;
- border-bottom: 1px solid #e6e7db;
- color: #332;
- line-height: 1.5;
- letter-spacing: 2px;
- text-transform: uppercase;
-}
-
-h3 {
- padding-top: 10px;
-}
-
-em {
- font-family: 'Times New Roman', Times, serif;
-}
-
-a:link, a:visited {
- text-decoration: none;
-}
-a:link {
- color: #369;
-}
-a:visited {
- color: #669;
-}
-a:hover {
- text-decoration: underline;
-}
-
-.highlight {
- border: 1px solid;
- border-color: #ccc #ddd #eee;
- border-radius: 5px;
-}
-
-dd .highlight {
- margin-bottom: 1em;
-}
-
-.highlight pre, .pre {
- font-family: 'Lucida Console', Monaco, monospace;
- color: #567;
-}
-
-.highlight pre {
- margin: 9px 14px;
- font-size: 14px;
- line-height: 1.4;
-}
-
-.pre {
- background: #f4f4f4;
-}
-
-dt:target, .highlighted {
- background: #efb;
-}
-
-.figure {
- text-align: center;
-}
-
-.wrap {
- margin: 0 auto;
- width: 600px;
-}
-
-.footer {
- margin-top: 30px;
- padding-top: 10px;
- border-top: 1px solid #e6e7db;
- font-size: 11px;
- text-align: center;
-}
-
-.tocwrapper {
- padding: 0;
- font-size: 12px;
-}
-
-.toc {
- display: none;
- margin-top: 15px;
- padding: 10px;
- border: solid #e6e7db;
- border-width: 1px 0;
-}
-
-.toc ul {
- margin: 0;
- padding: 0;
- list-style: none;
-}
-
-.toc li {
- margin: 0;
- padding: 0;
-}
-
-.toc ul ul li {
- background: url(tree.gif) no-repeat 5px 0;
- line-height: 20px;
- margin-left: 6px;
- padding-left: 16px;
-}
-
-.toc ul ul li:last-child {
- background-repeat: no-repeat;
- background-position: 5px -1766px;
-}
-
-.toc > ul > li > a {
- background: url(favicon.ico) no-repeat 4px;
- padding-left: 22px;
- font-weight: bolder;
- color: #554;
-}
-
-.toc a tt {
- font-weight: normal;
-}
-
-.showtoc, .hidetoc {
- font-size: 11px;
- text-align: center;
- color: #ccc;
-}
-
-.showtoc span, .hidetoc span {
- cursor: pointer;
- color: #999;
-}
-
-.hidetoc {
- display: none;
-}
-
-.field-list ul {
- list-style: none;
- padding-left: 0;
-}
-
-.field-list .field-name {
- font-family: 'Times New Roman', Times, serif;
- font-weight: normal;
-}
-
View
BIN docs/_themes/jdoctest/static/tree.gif
Deleted file not rendered
View
12 docs/_themes/jdoctest/theme.conf
@@ -1,12 +0,0 @@
-[theme]
-inherit = basic
-stylesheet = jdoctest.css
-nosidebar = true
-pygments_style = pygments_style.jDoctestStyle
-
-[options]
-index_logo =
-index_logo_alt =
-index_logo_height = 120px
-github_fork =
-
View
18 docs/conf.py
@@ -12,13 +12,12 @@
# serve to show the default.
import sys, os
-sys.path.insert(0, os.path.abspath("../../sphinxcontrib-autojs"))
-sys.path.append(os.path.abspath("_themes/jdoctest"))
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('_themes'))
+sys.path.insert(0, os.path.abspath("../../sphinxcontrib-autojs"))
# -- General configuration -----------------------------------------------------
@@ -43,16 +42,16 @@
# General information about the project.
project = u'jDoctest'
-copyright = u'2010–2011, Heungsub Lee'
+copyright = u'2010–2012, Heungsub Lee'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
-version = '0.0.9'
+version = '0.0.10'
# The full version, including alpha/beta/rc tags.
-release = '0.0.9'
+release = '0.0.10'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@@ -98,9 +97,8 @@
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
-html_theme_options = {'index_logo': 'jdoctest.png',
- 'index_logo_alt': project,
- 'github_fork': 'lunant/jdoctest'}
+html_theme_options = {'github_fork': 'lunant/jdoctest',
+ 'google_analytics': 'UA-28655602-1'}
# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = ['_themes']
@@ -124,7 +122,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static', '../artwork']
+html_static_path = ['_static']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.

0 comments on commit ae35750

Please sign in to comment.