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

Commit

Permalink
Merge pull request #11 from ryanlerch/master
Browse files Browse the repository at this point in the history
A first pass at a new fedora-ish theme
  • Loading branch information
kushaldas committed Aug 17, 2016
2 parents 1a3be7c + 10df6cc commit a0aca6b
Show file tree
Hide file tree
Showing 7 changed files with 246 additions and 3 deletions.
Binary file added docs/_static/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
162 changes: 162 additions & 0 deletions docs/_static/logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions docs/_theme/fedora-bootstrap/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{%- extends "basic/layout.html" %}
{%- block extrahead %}
{{ super() }}
<link rel='stylesheet' href='https://cdn.jsdelivr.net/font-hack/2.020/css/hack.min.css'>
<link rel='stylesheet' href='https://cdn.jsdelivr.net/open-iconic/1.1.0/font/css/open-iconic.min.css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,700,700italic' rel='stylesheet' type='text/css'>
{% endblock %}
{%- block relbar1 %}{% endblock %}
{%- block content %}
<div class="masthead">
<div class="container">
<div class="row">
<div class="col-sm-6">
<a href="#">
<img class="logo" src="{{ pathto('_static/logo.png', 1) }}" alt="Logo" height="40px"/>
</a>
</div>
<div class="col-sm-6">
<div class="row">
</div>
</div>
</div>
</div>
</div>


<div class="bodycontent">
<div class="container">
<div class="row">
{%- block document %}
<div class="col-sm-9 p-t-3 documentarea">
<div class="container">
<div class="body" role="main">
{% block body %} {% endblock %}
</div>
</div>
</div>
{%- endblock %}
{%- block sidebar1 %}
<div class="col-sm-3 sidebar p-t-3" >
{{ sidebar() }}
</div>
{% endblock %}
</div>
</div>
</div>
{%- endblock %}
16 changes: 16 additions & 0 deletions docs/_theme/fedora-bootstrap/searchbox.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{%- if pagename != "search" and builder != "singlehtml" %}
<div id="searchbox" style="display: none" role="search">
<h3>{{ _('Quick search') }}</h3>
<form class="search" action="{{ pathto('search') }}" method="get">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<input class="btn btn-secondary" value="{{ _('Go') }}" type="submit">Go!</button>
</span>
</div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
{%- endif %}
10 changes: 10 additions & 0 deletions docs/_theme/fedora-bootstrap/static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@import url("https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.1/fedora-bootstrap.css");

.row {
overflow: hidden;
}

[class*="col-"]{
margin-bottom: -99999px;
padding-bottom: 99999px;
}
6 changes: 6 additions & 0 deletions docs/_theme/fedora-bootstrap/theme.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[theme]
inherit = basic
stylesheet = style.css

[options]
touch_icon =
8 changes: 5 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@

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

# 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 = {}

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

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

# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
html_sidebars = {
'**': ['globaltoc.html', 'sourcelink.html', 'searchbox.html'],
}

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down

0 comments on commit a0aca6b

Please sign in to comment.