Skip to content
This repository was archived by the owner on Jul 5, 2021. It is now read-only.

Commit a0aca6b

Browse files
authored
Merge pull request #11 from ryanlerch/master
A first pass at a new fedora-ish theme
2 parents 1a3be7c + 10df6cc commit a0aca6b

File tree

7 files changed

+246
-3
lines changed

7 files changed

+246
-3
lines changed

docs/_static/logo.png

10.5 KB
Loading

docs/_static/logo.svg

Lines changed: 162 additions & 0 deletions
Loading
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{%- extends "basic/layout.html" %}
2+
{%- block extrahead %}
3+
{{ super() }}
4+
<link rel='stylesheet' href='https://cdn.jsdelivr.net/font-hack/2.020/css/hack.min.css'>
5+
<link rel='stylesheet' href='https://cdn.jsdelivr.net/open-iconic/1.1.0/font/css/open-iconic.min.css'>
6+
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,700,700italic' rel='stylesheet' type='text/css'>
7+
{% endblock %}
8+
{%- block relbar1 %}{% endblock %}
9+
{%- block content %}
10+
<div class="masthead">
11+
<div class="container">
12+
<div class="row">
13+
<div class="col-sm-6">
14+
<a href="#">
15+
<img class="logo" src="{{ pathto('_static/logo.png', 1) }}" alt="Logo" height="40px"/>
16+
</a>
17+
</div>
18+
<div class="col-sm-6">
19+
<div class="row">
20+
</div>
21+
</div>
22+
</div>
23+
</div>
24+
</div>
25+
26+
27+
<div class="bodycontent">
28+
<div class="container">
29+
<div class="row">
30+
{%- block document %}
31+
<div class="col-sm-9 p-t-3 documentarea">
32+
<div class="container">
33+
<div class="body" role="main">
34+
{% block body %} {% endblock %}
35+
</div>
36+
</div>
37+
</div>
38+
{%- endblock %}
39+
{%- block sidebar1 %}
40+
<div class="col-sm-3 sidebar p-t-3" >
41+
{{ sidebar() }}
42+
</div>
43+
{% endblock %}
44+
</div>
45+
</div>
46+
</div>
47+
{%- endblock %}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{%- if pagename != "search" and builder != "singlehtml" %}
2+
<div id="searchbox" style="display: none" role="search">
3+
<h3>{{ _('Quick search') }}</h3>
4+
<form class="search" action="{{ pathto('search') }}" method="get">
5+
<div class="input-group">
6+
<input type="text" name="q" class="form-control" placeholder="Search for...">
7+
<span class="input-group-btn">
8+
<input class="btn btn-secondary" value="{{ _('Go') }}" type="submit">Go!</button>
9+
</span>
10+
</div>
11+
<input type="hidden" name="check_keywords" value="yes" />
12+
<input type="hidden" name="area" value="default" />
13+
</form>
14+
</div>
15+
<script type="text/javascript">$('#searchbox').show(0);</script>
16+
{%- endif %}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@import url("https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.1/fedora-bootstrap.css");
2+
3+
.row {
4+
overflow: hidden;
5+
}
6+
7+
[class*="col-"]{
8+
margin-bottom: -99999px;
9+
padding-bottom: 99999px;
10+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[theme]
2+
inherit = basic
3+
stylesheet = style.css
4+
5+
[options]
6+
touch_icon =

docs/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@
100100

101101
# The theme to use for HTML and HTML Help pages. See the documentation for
102102
# a list of builtin themes.
103-
html_theme = 'default'
103+
html_theme = 'fedora-bootstrap'
104104

105105
# Theme options are theme-specific and customize the look and feel of a theme
106106
# further. For a list of options available for each theme, see the
107107
# documentation.
108108
#html_theme_options = {}
109109

110110
# Add any paths that contain custom themes here, relative to this directory.
111-
#html_theme_path = []
111+
html_theme_path = ['_theme']
112112

113113
# The name for this set of Sphinx documents. If None, it defaults to
114114
# "<project> v<release> documentation".
@@ -145,7 +145,9 @@
145145
#html_use_smartypants = True
146146

147147
# Custom sidebar templates, maps document names to template names.
148-
#html_sidebars = {}
148+
html_sidebars = {
149+
'**': ['globaltoc.html', 'sourcelink.html', 'searchbox.html'],
150+
}
149151

150152
# Additional templates that should be rendered to pages, maps page names to
151153
# template names.

0 commit comments

Comments
 (0)