Skip to content

Commit

Permalink
Added design customizations
Browse files Browse the repository at this point in the history
  • Loading branch information
shabda committed Jul 16, 2018
1 parent 84b530a commit bbf49d9
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 1 deletion.
Binary file added docs/_static/book-covers/book-cover-api-320.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/book-covers/book-cover-dac-320.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/book-covers/book-cover-doc-320.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/book-covers/book-cover-mta-320.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.other-books{
display: flex;
flex-wrap: wrap;
}


.other-books img{
margin-top: 10px;
margin-left: 5px;
margin-right: 5px;
padding-left: 5px;
padding-right: 5px;
padding-top: 10px;
border: 1px solid;
border-color: black;
}

.contact-top{
float: right;
}
1 change: 1 addition & 0 deletions docs/_static/js/custom.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions docs/_templates/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{%- extends "sphinx_rtd_theme/breadcrumbs.html" %}

{% block breadcrumbs %}
<li><a href="https://books.agiliq.com/">{{ _('Books') }}</a> &raquo;</li>
<li><a href="{{ pathto(master_doc) }}">{{ _('Django Admin Cookbook') }}</a> &raquo;</li>
{% for doc in parents %}
<li><a href="{{ doc.link|e }}">{{ doc.title }}</a> &raquo;</li>
{% endfor %}
<li>{{ title }}</li>
{% endblock %}


{% block breadcrumbs_aside %}
<a href="mailto:[email protected]" target="_blank" class="btn contact-top">[email protected]</a>
{% endblock %}
22 changes: 22 additions & 0 deletions docs/_templates/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{%- extends "sphinx_rtd_theme/footer.html" %}

{%- block extrafooter %}
<p>
<a href="https://books.agiliq.com" class="btn">Read more books at https://books.agiliq.com</a>
</p>

<div class="other-books">
<a href="http://books.agiliq.com/projects/django-api-polls-tutorial/">
<img src="{{ pathto('_static/book-covers/book-cover-api-320.png', 1) }}" />
</a>
<a href="https://books.agiliq.com/projects/django-admin-cookbook/">
<img src="{{ pathto('_static/book-covers/book-cover-dac-320.png', 1) }}" />
</a>
<a href="https://books.agiliq.com/projects/django-orm-cookbook/">
<img src="{{ pathto('_static/book-covers/book-cover-doc-320.png', 1) }}" />
</a>
<a href="https://books.agiliq.com/projects/django-multi-tenant/">
<img src="{{ pathto('_static/book-covers/book-cover-mta-320.png', 1) }}" />
</a>
</div>
{% endblock %}
14 changes: 13 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = 'perldoc'

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
Expand Down Expand Up @@ -144,3 +144,15 @@
'Agiliq', 'manual'),
]


# -- Custom marketing js ---
def setup(app):
app.add_stylesheet('css/custom.css')

# Design customizations

html_theme_options = {
'display_version': False,
}

html_show_sphinx = False

0 comments on commit bbf49d9

Please sign in to comment.