Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Merge f965280 into 607dcfd
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWhited committed May 27, 2015
2 parents 607dcfd + f965280 commit 6b8b994
Show file tree
Hide file tree
Showing 19 changed files with 1,217 additions and 27 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
hooks:
- id: autopep8-wrapper
args: ['-i']
exclude: 'docs/source/_themes/'
- id: check-json
- id: check-yaml
- id: debug-statements
Expand Down
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,15 @@ clean:
rm -rf $(VENV)

.PHONY: docs
docs: docs/source/api/*.rst
$(ACTIVATE); $(MAKE) -C $@ html
docs: epub html docs/source/api/*.rst

.PHONY: html
html: docs/source/api/*.rst docs/source/* docs/source/_static/*
$(ACTIVATE); $(MAKE) -C docs $@

.PHONY: epub
epub: docs/source/api/*.rst
$(ACTIVATE); $(MAKE) -C docs $@

docs/source/api/*.rst: rawkit/*.py $(VENV)
$(ACTIVATE); sphinx-apidoc -o docs/source/api rawkit docs
12 changes: 0 additions & 12 deletions docs/source/.templates/layout.html

This file was deleted.

20 changes: 20 additions & 0 deletions docs/source/_static/rawkit.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@import url(http://fonts.googleapis.com/css?family=Prociono);
@import url(flasky.css);

div.indexwrapper h1 {
text-indent: 0;
font-family: "Prociono", "Garamond","Georgia", serif;
font-size: 5em;
}

div.body h2 {
font-family: "Prociono", "Garamond","Georgia", serif;
}

.indexwrapper div.body #rawkit.section h1 {
background-image: url(rocket.png);
background-size: 75px;
background-repeat: no-repeat;
padding-left: 85px;
background-position: 0;
}
Binary file added docs/source/_static/rocket.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% extends rtd_hack_template_path + '/layout.html' if READTHEDOCS
else '!layout.html' %}

{%- block extrahead %}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
<script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
{% endblock %}


{% block sidebarlogo %}
{% if pagename == 'index' %}
<a href="https://github.com/photoshell/rawkit">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
</a>
{% else %}
{{ super() }}
{% endif %}
{% endblock %}
3 changes: 3 additions & 0 deletions docs/source/_themes/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pyc
*.pyo
.DS_Store
37 changes: 37 additions & 0 deletions docs/source/_themes/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Copyright (c) 2010 by Armin Ronacher.

Some rights reserved.

Redistribution and use in source and binary forms of the theme, with or
without modification, are permitted provided that the following conditions
are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

* The names of the contributors may not be used to endorse or
promote products derived from this software without specific
prior written permission.

We kindly ask you to only use these themes in an unmodified manner just
for Flask and Flask-related products, not for unrelated projects. If you
like the visual style and want to use it for your own projects, please
consider making some larger changes to the themes (such as changing
font faces, sizes, colors or margins).

THIS THEME IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS THEME, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
31 changes: 31 additions & 0 deletions docs/source/_themes/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Flask Sphinx Styles
===================

This repository contains sphinx styles for Flask and Flask related
projects. To use this style in your Sphinx documentation, follow
this guide:

1. put this folder as _themes into your docs folder. Alternatively
you can also use git submodules to check out the contents there.
2. add this to your conf.py:

sys.path.append(os.path.abspath('_themes'))
html_theme_path = ['_themes']
html_theme = 'flask'

The following themes exist:

- 'flask' - the standard flask documentation theme for large
projects
- 'flask_small' - small one-page theme. Intended to be used by
very small addon libraries for flask.

The following options exist for the flask_small theme:

[options]
index_logo = '' filename of a picture in _static
to be used as replacement for the
h1 in the index.rst file.
index_logo_height = 120px height of the index logo
github_fork = '' repository name on github for the
"fork me" badge
24 changes: 24 additions & 0 deletions docs/source/_themes/flask/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{%- extends "basic/layout.html" %}
{%- block extrahead %}
{{ super() }}
{% if theme_touch_icon %}
<link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" />
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
{% endblock %}
{%- block relbar2 %}{% endblock %}
{% block header %}
{{ super() }}
{% if pagename == 'index' %}
<div class=indexwrapper>
{% endif %}
{% endblock %}
{%- block footer %}
<div class="footer">
&copy; Copyright {{ copyright }}.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
{% if pagename == 'index' %}
</div>
{% endif %}
{%- endblock %}
19 changes: 19 additions & 0 deletions docs/source/_themes/flask/relations.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<h3>Related Topics</h3>
<ul>
<li><a href="{{ pathto(master_doc) }}">Documentation overview</a><ul>
{%- for parent in parents %}
<li><a href="{{ parent.link|e }}">{{ parent.title }}</a><ul>
{%- endfor %}
{%- if prev %}
<li>Previous: <a href="{{ prev.link|e }}" title="{{ _('previous chapter')
}}">{{ prev.title }}</a></li>
{%- endif %}
{%- if next %}
<li>Next: <a href="{{ next.link|e }}" title="{{ _('next chapter')
}}">{{ next.title }}</a></li>
{%- endif %}
{%- for parent in parents %}
</ul></li>
{%- endfor %}
</ul></li>
</ul>
Loading

0 comments on commit 6b8b994

Please sign in to comment.