Skip to content

Commit 35dbdd5

Browse files
author
Sam Kleinman
committed
theme: new mongodb theme
1 parent 66d941b commit 35dbdd5

File tree

6 files changed

+59
-65
lines changed

6 files changed

+59
-65
lines changed

source/.static/logo-mongodb.png

-419 Bytes
Loading

themes/mongodb/layout.html

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,30 @@
2929
{% endif %}
3030

3131
{%- macro githublink() %}
32-
<a href="https://github.com/mongodb/docs/tree/{{theme_branch}}/{{pagename}}.txt">Edit
32+
<a href="https://github.com/mongodb/docs/blob/{{theme_branch}}/source/{{pagename}}.txt"
33+
>Edit
3334
this page</a>
3435
{%- endmacro -%}
3536

36-
{%- macro relbar() %}
37+
{%- macro relbar(show_logo=True) %}
38+
3739
<div class="related">
3840
<h3>{{ _('Navigation') }}</h3>
41+
3942
<ul>
43+
{%- if show_logo %}
44+
<li><p><a href="{{ pathto('index') }}"><img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/></p></li>
45+
{%- endif %}
4046

4147
{#- for rellink in rellinks %}
4248
<li class="right" {% if loop.first %}style="margin-right: 10px"{% endif %}> |
43-
4449
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}"
4550
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
4651
{%- if not loop.first %}{{ reldelim2 }}{% endif %}</li>
4752
{%- endfor #}
48-
53+
<li class="right">| {{ githublink() }} </li>
4954
<li class="right">| <a href="http://github.com/mongodb/docs" title="Fork the documentation on GitHub to contribute.">GitHub</a></li>
5055
<li class="right">| <a href="http://jira.mongodb.org/browse/DOCS" title="Open a case in Jira to report a problem with the documentation.">Jira</a></li>
51-
<li class="right"><a href="http://docs.mongodb.org/">docs</a></li>
5256

5357
{%- block rootrellink %}
5458
<li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a> (<a href="{{ pathto('genindex') }}">index</a>) {{ reldelim1 }}</li>
@@ -65,13 +69,6 @@ <h3>{{ _('Navigation') }}</h3>
6569
{%- if render_sidebar %}
6670
<div class="sphinxsidebar">
6771
<div class="sphinxsidebarwrapper">
68-
{%- block sidebarlogo %}
69-
{%- if logo %}
70-
<p class="logo"><a href="{{ pathto('index') }}">
71-
<img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
72-
</a></p>
73-
{%- endif %}
74-
{%- endblock %}
7572
{%- if sidebars != None %}
7673
{#- new style sidebar: explicitly include/exclude templates #}
7774
{%- for sidebartemplate in sidebars %}
@@ -196,10 +193,11 @@ <h3>{{ _('Navigation') }}</h3>
196193
</div>
197194
{%- endblock %}
198195

199-
{%- block relbar2 %}{{ relbar() }}{% endblock %}
196+
<div class="footer-nav">{%- block relbar2 %}{{ relbar(show_logo=False) }}{% endblock %}</div>
200197

201198
{%- block footer %}
202199
<div class="footer">
200+
203201
{%- if show_copyright %}
204202
{%- if hasdoc('copyright') %}
205203
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }} {% endtrans %}

themes/mongodb/pagenav.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{#
22
cat basic/sourcelink.html basic/relations.html
3-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
/go ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44

55
Sphinx sidebar template: "show source" link.
66

@@ -9,7 +9,7 @@
99
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
1010
:license: BSD, see LICENSE for details.
1111
#}
12-
<h3><a href="{{ pathto(master_doc) }}">{{ _('Manual') }}</a></h3>
12+
<h3>{{ _('Manual') }}</h3>
1313
{{ toctree(maxdepth=1) }}
1414
<ul class="this-page-menu">
1515
<li><strong>Home:</strong> <a href="{{ pathto('index') }}">{{ project|e }} Manual Home</a></li>
@@ -18,24 +18,26 @@ <h3><a href="{{ pathto(master_doc) }}">{{ _('Manual') }}</a></h3>
1818
</ul>
1919
{%- if pagename != "search" %}
2020
<div id="searchbox" style="display: none">
21-
<h4>{{ _('Search') }}</h4>
22-
<p class="searchtip">{{ _('Search <strong>this</strong> manual.') }}</p>
21+
<h3>{{ _('Search') }}</h3>
22+
<p class="searchtip">{{ _('Search <strong>this</strong> manual.') }}
2323
<form class="search" action="{{ pathto('search') }}" method="get">
2424
<input type="text" name="q" />
2525
<input type="submit" value="{{ _('Search') }}" />
2626
<input type="hidden" name="check_keywords" value="yes" />
2727
<input type="hidden" name="area" value="default" />
2828
</form>
29-
<p class="searchtip">{{ _('Search the MongoDB wiki.') }}</p>
29+
</p>
30+
<p class="searchtip">{{ _('Search the MongoDB wiki.') }}
3031
<form class="search" action="http://www.mongodb.org/dosearchsite.action" method="get">
3132
<input type="text" name="queryString" />
3233
<input type="submit" value="{{ _('Wiki') }}" />
3334
</form>
35+
</p>
3436
</div>
3537
<script type="text/javascript">$('#searchbox').show(0);</script>
3638
{%- endif %}
3739

38-
<h4>{{ _('Editions') }}</h4>
40+
<h3>{{ _('Formats') }}</h3>
3941
<ul class="this-page-menu">
4042
{%- if show_source and has_source and sourcename %}
4143
<li><a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow">{{ _("This Page's Source") }}</a></li>

themes/mongodb/static/mongodb-docs.css_t

Lines changed: 37 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@
1616
body {
1717
font-family: helvetica,arial,sans-serif;
1818
font-size: 100%;
19-
background-color: #111;
20-
color: #555;
19+
background-color: #402817;
20+
color: black;
2121
margin: 0;
2222
padding: 0;
2323
}
2424

2525
div.documentwrapper {
2626
float: left;
2727
width: 100%;
28+
background-color: #F3F4EB;
2829
}
2930

3031
div.bodywrapper {
@@ -37,71 +38,67 @@ hr {
3738

3839
div.document {
3940
background-color: #eee;
41+
text-shadow: none;
4042
}
4143

4244
div.body {
43-
background-color: #ffffff;
44-
color: #3E4349;
45+
background-color: white;
46+
color: black;
4547
padding: 0 30px 30px 30px;
4648
font-size: 0.9em;
4749
}
4850

4951
div.footer {
50-
color: #555;
52+
color: white;
5153
width: 100%;
5254
padding: 13px 0;
5355
text-align: center;
5456
font-size: 75%;
5557
}
5658

5759
div.footer a {
58-
color: #444;
60+
color: #989898;
5961
text-decoration: underline;
6062
}
6163

6264
div.related {
63-
background-color: #6BA81E;
64-
line-height: 32px;
65+
background-color: #402817;
66+
margin-bottom: 10px;
6567
color: #fff;
66-
text-shadow: 0px 1px 0 #444;
6768
font-size: 0.9em;
69+
6870
}
6971

7072
div.related a {
7173
color: #E2F3CC;
7274
}
7375

76+
div.related ul {
77+
padding: 0 10px 0;
78+
}
79+
80+
div.footer-nav div.related ul {
81+
padding: 5px 10px 0;
82+
}
83+
7484
div.sphinxsidebar {
7585
font-size: 0.72em;
7686
line-height: 1.4em;
87+
width: 230px;
7788
}
7889

7990
div.sphinxsidebarwrapper{
80-
padding: 20px 0;
91+
background-color: #F3F4EB;
92+
padding: 12px 5px;
8193
}
8294

8395
div.sphinxsidebar h3 {
8496
font-family: helvetica,arial,sans-serif;
85-
color: #222;
86-
font-size: 1.2em;
87-
font-weight: normal;
88-
margin: 0;
89-
padding: 5px 10px;
90-
background-color: #ddd;
91-
text-shadow: 1px 1px 0 white;
92-
}
93-
94-
div.sphinxsidebar h4 {
95-
font-family: helvetica,arial,sans-serif;
96-
color: #111;
97-
font-size: 1.2em;
98-
font-weight: normal;
97+
color: black;
98+
font-size: 1.5em;
99+
font-weight: bold;
99100
margin: 0;
100-
padding: 5px 0 0 10px;
101-
}
102-
103-
div.sphinxsidebar h4{
104-
font-size: 1.1em;
101+
padding: 10px 0 0 10px;
105102
}
106103

107104
div.sphinxsidebar h3 a {
@@ -174,20 +171,17 @@ div.body h4,
174171
div.body h5,
175172
div.body h6 {
176173
font-family: helvetica,arial,sans-serif;
177-
background-color: #BED4EB;
178-
font-weight: normal;
179-
color: #212224;
180-
margin: 30px 0px 10px 0px;
181-
padding: 5px 0 5px 10px;
182-
text-shadow: 0px 1px 0 white
183-
}
184-
185-
div.body h1 { border-top: 20px solid white; margin-top: 0; font-size: 200%; }
186-
div.body h2 { font-size: 150%; background-color: #C8D5E3; }
187-
div.body h3 { font-size: 120%; background-color: #D8DEE3; }
188-
div.body h4 { font-size: 110%; background-color: #D8DEE3; }
189-
div.body h5 { font-size: 100%; background-color: #D8DEE3; }
190-
div.body h6 { font-size: 100%; background-color: #D8DEE3; }
174+
font-weight: bold;
175+
margin: 30px 0px 0px 0px;
176+
padding: 0;
177+
}
178+
179+
div.body h1 { border-top: 15px solid white; margin-top: 0; font-size: 200%; }
180+
div.body h2 { font-size: 150%; }
181+
div.body h3 { font-size: 120%; }
182+
div.body h4 { font-size: 110%; }
183+
div.body h5 { font-size: 100%; }
184+
div.body h6 { font-size: 100%; }
191185

192186
a.headerlink {
193187
color: #c60f0f;

themes/mongodb/wikilist.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
`MongoDB Wiki <http://mongodb.org>`_
2-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1+
MongoDB Wiki
2+
~~~~~~~~~~~~
33

44
- Getting Started
55

themes/mongodb/wikisidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h3><a href="http://mongodb.org">MongoDB Wiki</a></h3>
1+
<h3>MongoDB Wiki</h3>
22

33
<ul>
44
<li>Getting Started

0 commit comments

Comments
 (0)