initial commit to seperate repo
This commit is contained in:
commit
8630e4db13
23669 changed files with 1067407 additions and 0 deletions
1
themes/ipython-xkcd/AUTHORS.txt
Normal file
1
themes/ipython-xkcd/AUTHORS.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
Damián Avila <https://github.com/damianavila>
|
||||
4
themes/ipython-xkcd/README.md
Normal file
4
themes/ipython-xkcd/README.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
This is the standard bootstrap3-jinja theme, with IPython Notebook support via
|
||||
additional CSS files. It also uses an xkcd-esque font for the entire site.
|
||||
|
||||
Supports `nikola bootswatch_theme`.
|
||||
33
themes/ipython-xkcd/assets/css/xkcd.css
Normal file
33
themes/ipython-xkcd/assets/css/xkcd.css
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/* IPython notebook specific changes */
|
||||
@font-face {
|
||||
font-family: "xkcd";
|
||||
src: url('xkcd.otf');
|
||||
}
|
||||
div.cell {
|
||||
border: 2px solid black;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10 px;
|
||||
}
|
||||
.CodeMirror {font-family: xkcd; font-size: 120%}
|
||||
.rendered_html {font-family: xkcd; font-size: 120%}
|
||||
pre {font-family: xkcd; font-size: 120%}
|
||||
.rendered_html table {border: 2px solid black;}
|
||||
.rendered_html tr {border: 2px solid black;}
|
||||
.rendered_html th {border: 2px solid black; padding: 0.45em 1em;}
|
||||
.rendered_html td {border: 2px solid black; padding: 0.45em 1em;}
|
||||
div.prompt {font-family: xkcd; font-size: 120%}
|
||||
div.output_area pre {font-family: xkcd; font-size: 120%}
|
||||
|
||||
/* Nikola specific changes */
|
||||
h1, h2, h3, h4, h5, h6, h7 {
|
||||
font-family: xkcd;
|
||||
}
|
||||
p, a, small, li {
|
||||
font-family: xkcd;
|
||||
}
|
||||
.footerbox {
|
||||
font-family: xkcd;
|
||||
}
|
||||
img, iframe {
|
||||
border: 2px solid black;
|
||||
}
|
||||
BIN
themes/ipython-xkcd/assets/css/xkcd.otf
Normal file
BIN
themes/ipython-xkcd/assets/css/xkcd.otf
Normal file
Binary file not shown.
4
themes/ipython-xkcd/bundles
Normal file
4
themes/ipython-xkcd/bundles
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
assets/css/all-nocdn.css=bootstrap.css,rst.css,code.css,colorbox.css,theme.css,custom.css,ipython.min.css,nikola_ipython.css,xkcd.css
|
||||
assets/css/all.css=rst.css,code.css,colorbox.css,theme.css,custom.css,ipython.min.css,nikola_ipython.css,xkcd.css
|
||||
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,jquery.colorbox-min.js,mathjax.js,moment-with-locales.min.js,fancydates.js
|
||||
assets/js/all.js=jquery.colorbox-min.js,mathjax.js,moment-with-locales.min.js,fancydates.js
|
||||
1
themes/ipython-xkcd/parent
Normal file
1
themes/ipython-xkcd/parent
Normal file
|
|
@ -0,0 +1 @@
|
|||
ipython
|
||||
172
themes/ipython-xkcd/templates/base_helper.tmpl
Normal file
172
themes/ipython-xkcd/templates/base_helper.tmpl
Normal file
|
|
@ -0,0 +1,172 @@
|
|||
{# -*- coding: utf-8 -*- #}
|
||||
|
||||
{% import 'annotation_helper.tmpl' as notes with context %}
|
||||
{% macro html_headstart() %}
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
|
||||
{% if use_open_graph or (twitter_card and twitter_card['use_twitter_cards']) or (comment_system == 'facebook') %}
|
||||
prefix='
|
||||
{% if use_open_graph or (twitter_card and twitter_card['use_twitter_cards']) %}
|
||||
og: http://ogp.me/ns#
|
||||
{% endif %}
|
||||
{% if use_open_graph %}
|
||||
article: http://ogp.me/ns/article#
|
||||
{% endif %}
|
||||
{% if comment_system == 'facebook' %}
|
||||
fb: http://ogp.me/ns/fb#
|
||||
{% endif %}
|
||||
'
|
||||
{% endif %}
|
||||
|
||||
{% if is_rtl %}
|
||||
dir="rtl"
|
||||
{% endif %}
|
||||
|
||||
lang="{{ lang }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{% if description %}
|
||||
<meta name="description" content="{{ description }}">
|
||||
{% endif %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ title|e }} | {{ blog_title|e }}</title>
|
||||
|
||||
{{ html_stylesheets() }}
|
||||
{{ html_feedlinks() }}
|
||||
{% if permalink %}
|
||||
<link rel="canonical" href="{{ abs_link(permalink) }}">
|
||||
{% endif %}
|
||||
|
||||
{% if favicons %}
|
||||
{% for name, file, size in favicons %}
|
||||
<link rel="{{ name }}" href="{{ file }}" sizes="{{ size }}"/>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if comment_system == 'facebook' %}
|
||||
<meta property="fb:app_id" content="{{ comment_system_id }}">
|
||||
{% endif %}
|
||||
|
||||
{% if prevlink %}
|
||||
<link rel="prev" href="{{ prevlink }}" type="text/html">
|
||||
{% endif %}
|
||||
{% if nextlink %}
|
||||
<link rel="next" href="{{ nextlink }}" type="text/html">
|
||||
{% endif %}
|
||||
|
||||
{{ mathjax_config }}
|
||||
{% if use_cdn %}
|
||||
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
{% else %}
|
||||
<!--[if lt IE 9]><script src="{{ url_replacer(permalink, '/assets/js/html5.js', lang) }}"></script><![endif]-->
|
||||
{% endif %}
|
||||
|
||||
{{ extra_head_data }}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro late_load_js() %}
|
||||
{% if use_bundles %}
|
||||
{% if use_cdn %}
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
|
||||
<script src="/assets/js/all.js"></script>
|
||||
{% else %}
|
||||
<script src="/assets/js/all-nocdn.js"></script>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if use_cdn %}
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
|
||||
{% else %}
|
||||
<script src="/assets/js/jquery.min.js"></script>
|
||||
<script src="/assets/js/bootstrap.min.js"></script>
|
||||
<script src="/assets/js/moment-with-locales.min.js"></script>
|
||||
<script src="/assets/js/fancydates.js"></script>
|
||||
{% endif %}
|
||||
<script src="/assets/js/mathjax.js"></script>
|
||||
<script src="/assets/js/jquery.colorbox-min.js"></script>
|
||||
{% endif %}
|
||||
{% if colorbox_locales[lang] %}
|
||||
<script src="/assets/js/colorbox-i18n/jquery.colorbox-{{ colorbox_locales[lang] }}.js"></script>
|
||||
{% endif %}
|
||||
{{ social_buttons_code }}
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
{% macro html_stylesheets() %}
|
||||
{% if use_bundles %}
|
||||
{% if use_cdn %}
|
||||
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="/assets/css/all.css" rel="stylesheet" type="text/css">
|
||||
{% else %}
|
||||
<link href="/assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if use_cdn %}
|
||||
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
|
||||
{% else %}
|
||||
<link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
|
||||
{% endif %}
|
||||
<link href="/assets/css/rst.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/code.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/colorbox.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/theme.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/ipython.min.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/nikola_ipython.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/xkcd.css" rel="stylesheet" type="text/css">
|
||||
{% if has_custom_css %}
|
||||
<link href="/assets/css/custom.css" rel="stylesheet" type="text/css">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if annotations and post and not post.meta('noannotations') %}
|
||||
{{ notes.css() }}
|
||||
{% elif not annotations and post and post.meta('annotations') %}
|
||||
{{ notes.css() }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro html_navigation_links() %}
|
||||
{% for url, text in navigation_links[lang] %}
|
||||
{% if isinstance(url, tuple) %}
|
||||
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ text }}<b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
{% for suburl, text in url %}
|
||||
{% if rel_link(permalink, suburl) == "#" %}
|
||||
<li class="active"><a href="{{ permalink }}">{{ text }}</a>
|
||||
{% else %}
|
||||
<li><a href="{{ suburl }}">{{ text }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
{% if rel_link(permalink, url) == "#" %}
|
||||
<li class="active"><a href="{{ permalink }}">{{ text }}</a>
|
||||
{% else %}
|
||||
<li><a href="{{ url }}">{{ text }}</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro html_feedlinks() %}
|
||||
{% if rss_link %}
|
||||
{{ rss_link }}
|
||||
{% elif generate_rss %}
|
||||
{% if translations|length > 1 %}
|
||||
{% for language in translations %}
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS ({{ language }})" href="{{ _link('rss', None, language) }}">
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ _link('rss', None) }}">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro html_translations() %}
|
||||
{% for langname in translations.keys() %}
|
||||
{% if langname != lang %}
|
||||
<li><a href="{{ _link("index", None, langname) }}" rel="alternate" hreflang="{{ langname }}">{{ messages("LANGUAGE", langname) }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue