pygments.rb 0.5.4 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +40 -0
- data/README.md +3 -0
- data/lexers +0 -0
- data/lib/pygments/popen.rb +3 -2
- data/lib/pygments/version.rb +1 -1
- data/pygments.rb.gemspec +2 -1
- data/vendor/pygments-main/AUTHORS +20 -1
- data/vendor/pygments-main/CHANGES +55 -3
- data/vendor/pygments-main/LICENSE +1 -1
- data/vendor/pygments-main/MANIFEST.in +1 -1
- data/vendor/pygments-main/Makefile +5 -8
- data/vendor/pygments-main/REVISION +1 -1
- data/vendor/pygments-main/doc/Makefile +153 -0
- data/vendor/pygments-main/doc/_static/favicon.ico +0 -0
- data/vendor/pygments-main/doc/_static/logo_new.png +0 -0
- data/vendor/pygments-main/doc/_static/logo_only.png +0 -0
- data/vendor/pygments-main/doc/_templates/docssidebar.html +3 -0
- data/vendor/pygments-main/doc/_templates/indexsidebar.html +25 -0
- data/vendor/pygments-main/doc/_themes/pygments14/layout.html +98 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/bodybg.png +0 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/docbg.png +0 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/listitem.png +0 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/logo.png +0 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/pocoo.png +0 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/pygments14.css_t +401 -0
- data/vendor/pygments-main/doc/_themes/pygments14/theme.conf +15 -0
- data/vendor/pygments-main/doc/conf.py +249 -0
- data/vendor/pygments-main/doc/docs/api.rst +316 -0
- data/vendor/pygments-main/doc/docs/authors.rst +4 -0
- data/vendor/pygments-main/doc/docs/changelog.rst +1 -0
- data/vendor/pygments-main/{docs/src/cmdline.txt → doc/docs/cmdline.rst} +9 -11
- data/vendor/pygments-main/{docs/src/filterdevelopment.txt → doc/docs/filterdevelopment.rst} +1 -1
- data/vendor/pygments-main/{docs/src/filters.txt → doc/docs/filters.rst} +4 -5
- data/vendor/pygments-main/{docs/src/formatterdevelopment.txt → doc/docs/formatterdevelopment.rst} +1 -1
- data/vendor/pygments-main/{docs/src/formatters.txt → doc/docs/formatters.rst} +6 -6
- data/vendor/pygments-main/doc/docs/index.rst +66 -0
- data/vendor/pygments-main/{docs/src/integrate.txt → doc/docs/integrate.rst} +3 -7
- data/vendor/pygments-main/{docs/src/java.txt → doc/docs/java.rst} +0 -0
- data/vendor/pygments-main/{docs/src/lexerdevelopment.txt → doc/docs/lexerdevelopment.rst} +13 -14
- data/vendor/pygments-main/{docs/src/lexers.txt → doc/docs/lexers.rst} +7 -5
- data/vendor/pygments-main/{docs/src/moinmoin.txt → doc/docs/moinmoin.rst} +0 -0
- data/vendor/pygments-main/{docs/src/plugins.txt → doc/docs/plugins.rst} +0 -0
- data/vendor/pygments-main/{docs/src/quickstart.txt → doc/docs/quickstart.rst} +22 -19
- data/vendor/pygments-main/{docs/src/rstdirective.txt → doc/docs/rstdirective.rst} +0 -0
- data/vendor/pygments-main/{docs/src/styles.txt → doc/docs/styles.rst} +2 -2
- data/vendor/pygments-main/{docs/src/tokens.txt → doc/docs/tokens.rst} +10 -7
- data/vendor/pygments-main/{docs/src/unicode.txt → doc/docs/unicode.rst} +8 -7
- data/vendor/pygments-main/doc/download.rst +41 -0
- data/vendor/pygments-main/doc/faq.rst +143 -0
- data/vendor/pygments-main/doc/index.rst +53 -0
- data/vendor/pygments-main/doc/languages.rst +151 -0
- data/vendor/pygments-main/doc/make.bat +190 -0
- data/vendor/pygments-main/{docs → doc}/pygmentize.1 +0 -0
- data/vendor/pygments-main/external/autopygmentize +65 -48
- data/vendor/pygments-main/external/markdown-processor.py +15 -15
- data/vendor/pygments-main/external/moin-parser.py +1 -1
- data/vendor/pygments-main/external/rst-directive.py +2 -3
- data/vendor/pygments-main/ez_setup.py +340 -234
- data/vendor/pygments-main/pygments/__init__.py +4 -4
- data/vendor/pygments-main/pygments/cmdline.py +81 -68
- data/vendor/pygments-main/pygments/console.py +1 -1
- data/vendor/pygments-main/pygments/filter.py +1 -1
- data/vendor/pygments-main/pygments/filters/__init__.py +11 -9
- data/vendor/pygments-main/pygments/formatter.py +3 -3
- data/vendor/pygments-main/pygments/formatters/__init__.py +5 -3
- data/vendor/pygments-main/pygments/formatters/_mapping.py +16 -5
- data/vendor/pygments-main/pygments/formatters/bbcode.py +1 -1
- data/vendor/pygments-main/pygments/formatters/html.py +44 -26
- data/vendor/pygments-main/pygments/formatters/img.py +21 -14
- data/vendor/pygments-main/pygments/formatters/latex.py +104 -12
- data/vendor/pygments-main/pygments/formatters/other.py +53 -6
- data/vendor/pygments-main/pygments/formatters/rtf.py +30 -16
- data/vendor/pygments-main/pygments/formatters/svg.py +2 -2
- data/vendor/pygments-main/pygments/formatters/terminal.py +41 -1
- data/vendor/pygments-main/pygments/formatters/terminal256.py +2 -2
- data/vendor/pygments-main/pygments/lexer.py +59 -39
- data/vendor/pygments-main/pygments/lexers/__init__.py +38 -15
- data/vendor/pygments-main/pygments/lexers/_asybuiltins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_clbuiltins.py +15 -15
- data/vendor/pygments-main/pygments/lexers/_cocoabuiltins.py +73 -0
- data/vendor/pygments-main/pygments/lexers/_lassobuiltins.py +11 -1
- data/vendor/pygments-main/pygments/lexers/_luabuiltins.py +14 -8
- data/vendor/pygments-main/pygments/lexers/_mapping.py +81 -30
- data/vendor/pygments-main/pygments/lexers/_openedgebuiltins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_phpbuiltins.py +1067 -95
- data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +7 -7
- data/vendor/pygments-main/pygments/lexers/_robotframeworklexer.py +5 -4
- data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_sourcemodbuiltins.py +12 -7
- data/vendor/pygments-main/pygments/lexers/_stan_builtins.py +112 -18
- data/vendor/pygments-main/pygments/lexers/_vimbuiltins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/agile.py +644 -382
- data/vendor/pygments-main/pygments/lexers/asm.py +66 -29
- data/vendor/pygments-main/pygments/lexers/compiled.py +1643 -174
- data/vendor/pygments-main/pygments/lexers/dalvik.py +27 -6
- data/vendor/pygments-main/pygments/lexers/dotnet.py +45 -33
- data/vendor/pygments-main/pygments/lexers/foxpro.py +3 -3
- data/vendor/pygments-main/pygments/lexers/functional.py +1510 -570
- data/vendor/pygments-main/pygments/lexers/graph.py +81 -0
- data/vendor/pygments-main/pygments/lexers/hdl.py +29 -30
- data/vendor/pygments-main/pygments/lexers/inferno.py +96 -0
- data/vendor/pygments-main/pygments/lexers/jvm.py +622 -207
- data/vendor/pygments-main/pygments/lexers/math.py +438 -70
- data/vendor/pygments-main/pygments/lexers/other.py +885 -171
- data/vendor/pygments-main/pygments/lexers/parsers.py +24 -24
- data/vendor/pygments-main/pygments/lexers/qbasic.py +157 -0
- data/vendor/pygments-main/pygments/lexers/rdf.py +99 -0
- data/vendor/pygments-main/pygments/lexers/shell.py +28 -25
- data/vendor/pygments-main/pygments/lexers/special.py +7 -8
- data/vendor/pygments-main/pygments/lexers/sql.py +56 -23
- data/vendor/pygments-main/pygments/lexers/templates.py +377 -59
- data/vendor/pygments-main/pygments/lexers/text.py +208 -46
- data/vendor/pygments-main/pygments/lexers/web.py +729 -264
- data/vendor/pygments-main/pygments/modeline.py +1 -1
- data/vendor/pygments-main/pygments/plugin.py +1 -1
- data/vendor/pygments-main/pygments/scanner.py +1 -1
- data/vendor/pygments-main/pygments/sphinxext.py +153 -0
- data/vendor/pygments-main/pygments/style.py +3 -2
- data/vendor/pygments-main/pygments/styles/__init__.py +5 -1
- data/vendor/pygments-main/pygments/styles/autumn.py +1 -1
- data/vendor/pygments-main/pygments/styles/borland.py +1 -1
- data/vendor/pygments-main/pygments/styles/bw.py +1 -1
- data/vendor/pygments-main/pygments/styles/colorful.py +1 -1
- data/vendor/pygments-main/pygments/styles/default.py +1 -1
- data/vendor/pygments-main/pygments/styles/emacs.py +1 -1
- data/vendor/pygments-main/pygments/styles/friendly.py +1 -1
- data/vendor/pygments-main/pygments/styles/fruity.py +1 -1
- data/vendor/pygments-main/pygments/styles/igor.py +29 -0
- data/vendor/pygments-main/pygments/styles/manni.py +1 -1
- data/vendor/pygments-main/pygments/styles/monokai.py +4 -4
- data/vendor/pygments-main/pygments/styles/murphy.py +1 -1
- data/vendor/pygments-main/pygments/styles/native.py +1 -1
- data/vendor/pygments-main/pygments/styles/paraiso_dark.py +125 -0
- data/vendor/pygments-main/pygments/styles/paraiso_light.py +125 -0
- data/vendor/pygments-main/pygments/styles/pastie.py +1 -1
- data/vendor/pygments-main/pygments/styles/perldoc.py +1 -1
- data/vendor/pygments-main/pygments/styles/rrt.py +1 -1
- data/vendor/pygments-main/pygments/styles/tango.py +1 -1
- data/vendor/pygments-main/pygments/styles/trac.py +1 -1
- data/vendor/pygments-main/pygments/styles/vim.py +1 -1
- data/vendor/pygments-main/pygments/styles/vs.py +1 -1
- data/vendor/pygments-main/pygments/styles/xcode.py +51 -0
- data/vendor/pygments-main/pygments/token.py +4 -1
- data/vendor/pygments-main/pygments/unistring.py +6 -5
- data/vendor/pygments-main/pygments/util.py +35 -21
- data/vendor/pygments-main/scripts/check_sources.py +28 -44
- data/vendor/pygments-main/scripts/detect_missing_analyse_text.py +5 -4
- data/vendor/pygments-main/scripts/find_codetags.py +27 -19
- data/vendor/pygments-main/scripts/find_error.py +16 -13
- data/vendor/pygments-main/scripts/get_vimkw.py +3 -3
- data/vendor/pygments-main/scripts/vim2pygments.py +9 -7
- data/vendor/pygments-main/setup.py +19 -19
- data/vendor/pygments-main/tests/examplefiles/99_bottles_of_beer.chpl +118 -0
- data/vendor/pygments-main/tests/examplefiles/Error.pmod +38 -0
- data/vendor/pygments-main/tests/examplefiles/FakeFile.pike +360 -0
- data/vendor/pygments-main/tests/examplefiles/{ANTLRv3.g → antlr_ANTLRv3.g} +0 -0
- data/vendor/pygments-main/tests/examplefiles/clojure-weird-keywords.clj +5 -0
- data/vendor/pygments-main/tests/examplefiles/core.cljs +52 -0
- data/vendor/pygments-main/tests/examplefiles/demo.cfm +13 -1
- data/vendor/pygments-main/tests/examplefiles/demo.hbs +12 -0
- data/vendor/pygments-main/tests/examplefiles/ember.handlebars +33 -0
- data/vendor/pygments-main/tests/examplefiles/example.als +217 -0
- data/vendor/pygments-main/tests/examplefiles/example.c +1 -1
- data/vendor/pygments-main/tests/examplefiles/example.chai +6 -0
- data/vendor/pygments-main/tests/examplefiles/example.coffee +27 -0
- data/vendor/pygments-main/tests/examplefiles/example.e +124 -0
- data/vendor/pygments-main/tests/examplefiles/example.f90 +8 -0
- data/vendor/pygments-main/tests/examplefiles/example.feature +16 -0
- data/vendor/pygments-main/tests/examplefiles/example.gd +23 -0
- data/vendor/pygments-main/tests/examplefiles/example.gi +64 -0
- data/vendor/pygments-main/tests/examplefiles/example.groovy +2 -0
- data/vendor/pygments-main/tests/examplefiles/example.hs +27 -0
- data/vendor/pygments-main/tests/examplefiles/example.hx +44 -1
- data/vendor/pygments-main/tests/examplefiles/example.i6t +32 -0
- data/vendor/pygments-main/tests/examplefiles/example.i7x +45 -0
- data/vendor/pygments-main/tests/examplefiles/example.inf +374 -0
- data/vendor/pygments-main/tests/examplefiles/example.j +564 -0
- data/vendor/pygments-main/tests/examplefiles/example.java +16 -0
- data/vendor/pygments-main/tests/examplefiles/example.kal +75 -0
- data/vendor/pygments-main/tests/examplefiles/example.liquid +42 -0
- data/vendor/pygments-main/tests/examplefiles/example.ma +8 -0
- data/vendor/pygments-main/tests/examplefiles/example.mq4 +187 -0
- data/vendor/pygments-main/tests/examplefiles/example.mqh +123 -0
- data/vendor/pygments-main/tests/examplefiles/example.ni +57 -0
- data/vendor/pygments-main/tests/examplefiles/example.nix +80 -0
- data/vendor/pygments-main/tests/examplefiles/example.pp +8 -0
- data/vendor/pygments-main/tests/examplefiles/example.red +257 -0
- data/vendor/pygments-main/tests/examplefiles/example.reds +150 -0
- data/vendor/pygments-main/tests/examplefiles/example.rkt +677 -29
- data/vendor/pygments-main/tests/examplefiles/example.sh +22 -0
- data/vendor/pygments-main/tests/examplefiles/example.slim +31 -0
- data/vendor/pygments-main/tests/examplefiles/example.sls +51 -0
- data/vendor/pygments-main/tests/examplefiles/example.stan +2 -0
- data/vendor/pygments-main/tests/examplefiles/example.todotxt +9 -0
- data/vendor/pygments-main/tests/examplefiles/exampleScript.cfc +241 -0
- data/vendor/pygments-main/tests/examplefiles/exampleTag.cfc +18 -0
- data/vendor/pygments-main/tests/examplefiles/example_elixir.ex +192 -350
- data/vendor/pygments-main/tests/examplefiles/hash_syntax.rb +5 -0
- data/vendor/pygments-main/tests/examplefiles/hello.at +6 -0
- data/vendor/pygments-main/tests/examplefiles/hello.golo +5 -0
- data/vendor/pygments-main/tests/examplefiles/hello.lsl +12 -0
- data/vendor/pygments-main/tests/examplefiles/{File.hy → hybris_File.hy} +0 -0
- data/vendor/pygments-main/tests/examplefiles/{mg_sample.pro → idl_sample.pro} +0 -0
- data/vendor/pygments-main/tests/examplefiles/iex_example +23 -0
- data/vendor/pygments-main/tests/examplefiles/inet_pton6.dg +24 -24
- data/vendor/pygments-main/tests/examplefiles/language.hy +165 -0
- data/vendor/pygments-main/tests/examplefiles/limbo.b +456 -0
- data/vendor/pygments-main/tests/examplefiles/livescript-demo.ls +3 -1
- data/vendor/pygments-main/tests/examplefiles/main.cmake +2 -0
- data/vendor/pygments-main/tests/examplefiles/objc_example.m +163 -16
- data/vendor/pygments-main/tests/examplefiles/{example.p → openedge_example} +0 -0
- data/vendor/pygments-main/tests/examplefiles/pawn_example +25 -0
- data/vendor/pygments-main/tests/examplefiles/qbasic_example +2 -0
- data/vendor/pygments-main/tests/examplefiles/r6rs-comments.scm +23 -0
- data/vendor/pygments-main/tests/examplefiles/{robotframework.txt → robotframework_test.txt} +0 -0
- data/vendor/pygments-main/tests/examplefiles/rql-queries.rql +34 -0
- data/vendor/pygments-main/tests/examplefiles/scope.cirru +43 -0
- data/vendor/pygments-main/tests/examplefiles/sparql.rq +23 -0
- data/vendor/pygments-main/tests/examplefiles/test.R +37 -5
- data/vendor/pygments-main/tests/examplefiles/test.apl +26 -0
- data/vendor/pygments-main/tests/examplefiles/test.cyp +123 -0
- data/vendor/pygments-main/tests/examplefiles/test.idr +93 -0
- data/vendor/pygments-main/tests/examplefiles/test.mask +41 -0
- data/vendor/pygments-main/tests/examplefiles/test.pan +54 -0
- data/vendor/pygments-main/tests/examplefiles/test.php +3 -1
- data/vendor/pygments-main/tests/examplefiles/test.pig +148 -0
- data/vendor/pygments-main/tests/examplefiles/test.pwn +253 -0
- data/vendor/pygments-main/tests/examplefiles/test.r3 +27 -7
- data/vendor/pygments-main/tests/examplefiles/test.rsl +111 -0
- data/vendor/pygments-main/tests/examplefiles/test.swift +65 -0
- data/vendor/pygments-main/tests/examplefiles/test.zep +33 -0
- data/vendor/pygments-main/tests/examplefiles/unicode.go +10 -0
- data/vendor/pygments-main/tests/examplefiles/{test.bas → vbnet_test.bas} +0 -0
- data/vendor/pygments-main/tests/examplefiles/vctreestatus_hg +4 -0
- data/vendor/pygments-main/tests/examplefiles/vimrc +21 -0
- data/vendor/pygments-main/tests/run.py +14 -19
- data/vendor/pygments-main/tests/string_asserts.py +22 -0
- data/vendor/pygments-main/tests/test_basic_api.py +28 -14
- data/vendor/pygments-main/tests/test_cfm.py +46 -0
- data/vendor/pygments-main/tests/test_clexer.py +208 -3
- data/vendor/pygments-main/tests/test_cmdline.py +6 -5
- data/vendor/pygments-main/tests/test_examplefiles.py +30 -19
- data/vendor/pygments-main/tests/test_html_formatter.py +15 -13
- data/vendor/pygments-main/tests/test_latex_formatter.py +4 -2
- data/vendor/pygments-main/tests/test_lexers_other.py +11 -11
- data/vendor/pygments-main/tests/test_objectiveclexer.py +81 -0
- data/vendor/pygments-main/tests/test_perllexer.py +1 -1
- data/vendor/pygments-main/tests/test_qbasiclexer.py +43 -0
- data/vendor/pygments-main/tests/test_regexlexer.py +8 -1
- data/vendor/pygments-main/tests/test_rtf_formatter.py +109 -0
- data/vendor/pygments-main/tests/test_string_asserts.py +39 -0
- data/vendor/pygments-main/tests/test_token.py +3 -3
- data/vendor/pygments-main/tests/test_using_api.py +1 -1
- data/vendor/pygments-main/tests/test_util.py +1 -1
- metadata +138 -51
- data/vendor/pygments-main/docs/generate.py +0 -472
- data/vendor/pygments-main/docs/src/api.txt +0 -270
- data/vendor/pygments-main/docs/src/authors.txt +0 -5
- data/vendor/pygments-main/docs/src/changelog.txt +0 -5
- data/vendor/pygments-main/docs/src/index.txt +0 -69
- data/vendor/pygments-main/docs/src/installation.txt +0 -71
- data/vendor/pygments-main/external/rst-directive-old.py +0 -77
- data/vendor/pygments-main/scripts/reindent.py +0 -291
- data/vendor/pygments-main/tests/examplefiles/import.hs +0 -4
- data/vendor/pygments-main/tests/examplefiles/objc_example2.m +0 -24
- data/vendor/pygments-main/tests/old_run.py +0 -138
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<h3>Download</h3>
|
2
|
+
{% if version.endswith('(hg)') %}
|
3
|
+
<p>This documentation is for version <b>{{ version }}</b>, which is
|
4
|
+
not released yet.</p>
|
5
|
+
<p>You can use it from the
|
6
|
+
<a href="http://bitbucket.org/birkenfeld/sphinx/">Mercurial repo</a> or look for
|
7
|
+
released versions in the <a href="http://pypi.python.org/pypi/Sphinx">Python
|
8
|
+
Package Index</a>.</p>
|
9
|
+
{% else %}
|
10
|
+
<p>Current version: <b>{{ version }}</b></p>
|
11
|
+
<p>Get Pygments from the <a href="http://pypi.python.org/pypi/Pygments">Python Package
|
12
|
+
Index</a>, or install it with:</p>
|
13
|
+
<pre>pip install Pygments</pre>
|
14
|
+
{% endif %}
|
15
|
+
|
16
|
+
<h3>Questions? Suggestions?</h3>
|
17
|
+
|
18
|
+
<p>Clone at <a href="https://bitbucket.org/birkenfeld/pygments-main">Bitbucket</a>
|
19
|
+
or come to the <tt>#pocoo</tt> channel on FreeNode.</p>
|
20
|
+
<p>You can also open an issue at the
|
21
|
+
<a href="https://www.bitbucket.org/birkenfeld/pygments-main/issues/">tracker</a>.</p>
|
22
|
+
|
23
|
+
<p class="logo">A <a href="http://pocoo.org/">
|
24
|
+
<img src="{{ pathto("_static/pocoo.png", 1) }}" /></a> project</a></p>
|
25
|
+
|
@@ -0,0 +1,98 @@
|
|
1
|
+
{#
|
2
|
+
sphinxdoc/layout.html
|
3
|
+
~~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
Sphinx layout template for the sphinxdoc theme.
|
6
|
+
|
7
|
+
:copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
|
8
|
+
:license: BSD, see LICENSE for details.
|
9
|
+
#}
|
10
|
+
{%- extends "basic/layout.html" %}
|
11
|
+
|
12
|
+
{# put the sidebar before the body #}
|
13
|
+
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
|
14
|
+
{% block sidebar2 %}{% endblock %}
|
15
|
+
|
16
|
+
{% block relbar1 %}{% endblock %}
|
17
|
+
{% block relbar2 %}{% endblock %}
|
18
|
+
|
19
|
+
{% block extrahead %}
|
20
|
+
<link href='http://fonts.googleapis.com/css?family={{ theme_font|replace(' ', '+') }}:300,400,700'
|
21
|
+
rel='stylesheet' type='text/css'>
|
22
|
+
{{ super() }}
|
23
|
+
{%- if not embedded %}
|
24
|
+
<style type="text/css">
|
25
|
+
table.right { float: right; margin-left: 20px; }
|
26
|
+
table.right td { border: 1px solid #ccc; }
|
27
|
+
{% if pagename == 'index' %}
|
28
|
+
.related { display: none; }
|
29
|
+
{% endif %}
|
30
|
+
</style>
|
31
|
+
<script type="text/javascript">
|
32
|
+
// intelligent scrolling of the sidebar content
|
33
|
+
$(window).scroll(function() {
|
34
|
+
var sb = $('.sphinxsidebarwrapper');
|
35
|
+
var win = $(window);
|
36
|
+
var sbh = sb.height();
|
37
|
+
var offset = $('.sphinxsidebar').position()['top'];
|
38
|
+
var wintop = win.scrollTop();
|
39
|
+
var winbot = wintop + win.innerHeight();
|
40
|
+
var curtop = sb.position()['top'];
|
41
|
+
var curbot = curtop + sbh;
|
42
|
+
// does sidebar fit in window?
|
43
|
+
if (sbh < win.innerHeight()) {
|
44
|
+
// yes: easy case -- always keep at the top
|
45
|
+
sb.css('top', $u.min([$u.max([0, wintop - offset - 10]),
|
46
|
+
$(document).height() - sbh - 200]));
|
47
|
+
} else {
|
48
|
+
// no: only scroll if top/bottom edge of sidebar is at
|
49
|
+
// top/bottom edge of window
|
50
|
+
if (curtop > wintop && curbot > winbot) {
|
51
|
+
sb.css('top', $u.max([wintop - offset - 10, 0]));
|
52
|
+
} else if (curtop < wintop && curbot < winbot) {
|
53
|
+
sb.css('top', $u.min([winbot - sbh - offset - 20,
|
54
|
+
$(document).height() - sbh - 200]));
|
55
|
+
}
|
56
|
+
}
|
57
|
+
});
|
58
|
+
</script>
|
59
|
+
{%- endif %}
|
60
|
+
{% endblock %}
|
61
|
+
|
62
|
+
{% block header %}
|
63
|
+
<div class="outerwrapper">
|
64
|
+
<div class="pageheader">
|
65
|
+
<ul>
|
66
|
+
<li><a href="{{ pathto('index') }}">Home</a></li>
|
67
|
+
{% if demo_active %}
|
68
|
+
<li><a href="{{ pathto('demo') }}">Demo</a></li>
|
69
|
+
{% endif %}
|
70
|
+
<li><a href="{{ pathto('languages') }}">Languages</a></li>
|
71
|
+
<li><a href="{{ pathto('faq') }}">FAQ</a></li>
|
72
|
+
<li><a href="{{ pathto('download') }}">Get it</a></li>
|
73
|
+
<li><a href="{{ pathto('docs/index') }}">Docs</a></li>
|
74
|
+
</ul>
|
75
|
+
<div>
|
76
|
+
<a href="{{ pathto('index') }}">
|
77
|
+
<img src="{{ pathto('_static/logo.png', 1) }}" alt="Pygments logo" />
|
78
|
+
</a>
|
79
|
+
</div>
|
80
|
+
</div>
|
81
|
+
{% endblock %}
|
82
|
+
|
83
|
+
{% block footer %}
|
84
|
+
<div class="footer" role="contentinfo">
|
85
|
+
© Copyright 2014, Georg Brandl and Pygments contributors.
|
86
|
+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{
|
87
|
+
sphinx_version }}. <br/>
|
88
|
+
Pygments logo created by <a href="http://joelunger.com">Joel Unger</a>.
|
89
|
+
Backgrounds from <a href="http://subtlepatterns.com">subtlepatterns.com</a>.
|
90
|
+
</div>
|
91
|
+
</div> {# closes "outerwrapper" div #}
|
92
|
+
{% endblock %}
|
93
|
+
|
94
|
+
{% block sidebarrel %}
|
95
|
+
{% endblock %}
|
96
|
+
|
97
|
+
{% block sidebarsourcelink %}
|
98
|
+
{% endblock %}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,401 @@
|
|
1
|
+
/*
|
2
|
+
* pygments14.css
|
3
|
+
* ~~~~~~~~~~~~~~
|
4
|
+
*
|
5
|
+
* Sphinx stylesheet -- pygments14 theme. Heavily copied from sphinx13.
|
6
|
+
*
|
7
|
+
* :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
|
8
|
+
* :license: BSD, see LICENSE for details.
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
|
12
|
+
@import url("basic.css");
|
13
|
+
|
14
|
+
/* -- page layout ----------------------------------------------------------- */
|
15
|
+
|
16
|
+
body {
|
17
|
+
font-family: {{ theme_font }}, 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva',
|
18
|
+
'Verdana', sans-serif;
|
19
|
+
font-size: 14px;
|
20
|
+
text-align: center;
|
21
|
+
background-image: url(bodybg.png);
|
22
|
+
background-color: {{ theme_background }};
|
23
|
+
color: black;
|
24
|
+
padding: 0;
|
25
|
+
/*
|
26
|
+
border-right: 1px solid {{ theme_border }};
|
27
|
+
border-left: 1px solid {{ theme_border }};
|
28
|
+
*/
|
29
|
+
|
30
|
+
margin: 0 auto;
|
31
|
+
min-width: 780px;
|
32
|
+
max-width: 1080px;
|
33
|
+
}
|
34
|
+
|
35
|
+
.outerwrapper {
|
36
|
+
background-image: url(docbg.png);
|
37
|
+
background-attachment: fixed;
|
38
|
+
}
|
39
|
+
|
40
|
+
.pageheader {
|
41
|
+
text-align: left;
|
42
|
+
padding: 10px 15px;
|
43
|
+
}
|
44
|
+
|
45
|
+
.pageheader ul {
|
46
|
+
float: right;
|
47
|
+
color: white;
|
48
|
+
list-style-type: none;
|
49
|
+
padding-left: 0;
|
50
|
+
margin-top: 40px;
|
51
|
+
margin-right: 10px;
|
52
|
+
}
|
53
|
+
|
54
|
+
.pageheader li {
|
55
|
+
float: left;
|
56
|
+
margin: 0 0 0 10px;
|
57
|
+
}
|
58
|
+
|
59
|
+
.pageheader li a {
|
60
|
+
border-radius: 3px;
|
61
|
+
padding: 8px 12px;
|
62
|
+
color: {{ theme_darkgray }};
|
63
|
+
text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
|
64
|
+
}
|
65
|
+
|
66
|
+
.pageheader li a:hover {
|
67
|
+
background-color: {{ theme_yellow }};
|
68
|
+
color: black;
|
69
|
+
text-shadow: none;
|
70
|
+
}
|
71
|
+
|
72
|
+
div.document {
|
73
|
+
text-align: left;
|
74
|
+
/*border-left: 1em solid {{ theme_lightyellow }};*/
|
75
|
+
}
|
76
|
+
|
77
|
+
div.bodywrapper {
|
78
|
+
margin: 0 12px 0 240px;
|
79
|
+
background-color: white;
|
80
|
+
/* border-right: 1px solid {{ theme_border }}; */
|
81
|
+
}
|
82
|
+
|
83
|
+
div.body {
|
84
|
+
margin: 0;
|
85
|
+
padding: 0.5em 20px 20px 20px;
|
86
|
+
}
|
87
|
+
|
88
|
+
div.related {
|
89
|
+
font-size: 1em;
|
90
|
+
color: {{ theme_darkgray }};
|
91
|
+
}
|
92
|
+
|
93
|
+
div.related ul {
|
94
|
+
background-image: url(relbg.png);
|
95
|
+
background-repeat: repeat-y;
|
96
|
+
background-color: {{ theme_yellow }};
|
97
|
+
height: 1.9em;
|
98
|
+
/*
|
99
|
+
border-top: 1px solid {{ theme_border }};
|
100
|
+
border-bottom: 1px solid {{ theme_border }};
|
101
|
+
*/
|
102
|
+
}
|
103
|
+
|
104
|
+
div.related ul li {
|
105
|
+
margin: 0 5px 0 0;
|
106
|
+
padding: 0;
|
107
|
+
float: left;
|
108
|
+
}
|
109
|
+
|
110
|
+
div.related ul li.right {
|
111
|
+
float: right;
|
112
|
+
margin-right: 5px;
|
113
|
+
}
|
114
|
+
|
115
|
+
div.related ul li a {
|
116
|
+
margin: 0;
|
117
|
+
padding: 0 5px 0 5px;
|
118
|
+
line-height: 1.75em;
|
119
|
+
color: {{ theme_darkgray }};
|
120
|
+
/*text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.5);*/
|
121
|
+
}
|
122
|
+
|
123
|
+
div.related ul li a:hover {
|
124
|
+
text-decoration: underline;
|
125
|
+
text-shadow: 0px 0px 1px rgba(255, 255, 255, 0.5);
|
126
|
+
}
|
127
|
+
|
128
|
+
div.sphinxsidebarwrapper {
|
129
|
+
position: relative;
|
130
|
+
top: 0px;
|
131
|
+
padding: 0;
|
132
|
+
}
|
133
|
+
|
134
|
+
div.sphinxsidebar {
|
135
|
+
margin: 0;
|
136
|
+
padding: 0 0px 15px 15px;
|
137
|
+
width: 210px;
|
138
|
+
float: left;
|
139
|
+
font-size: 1em;
|
140
|
+
text-align: left;
|
141
|
+
}
|
142
|
+
|
143
|
+
div.sphinxsidebar .logo {
|
144
|
+
font-size: 1.8em;
|
145
|
+
color: #666;
|
146
|
+
font-weight: 300;
|
147
|
+
text-align: center;
|
148
|
+
}
|
149
|
+
|
150
|
+
div.sphinxsidebar .logo img {
|
151
|
+
vertical-align: middle;
|
152
|
+
}
|
153
|
+
|
154
|
+
div.sphinxsidebar input {
|
155
|
+
border: 1px solid #aaa;
|
156
|
+
font-family: {{ theme_font }}, 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva',
|
157
|
+
'Verdana', sans-serif;
|
158
|
+
font-size: 1em;
|
159
|
+
}
|
160
|
+
|
161
|
+
div.sphinxsidebar h3 {
|
162
|
+
font-size: 1.5em;
|
163
|
+
/* border-top: 1px solid {{ theme_border }}; */
|
164
|
+
margin-top: 1em;
|
165
|
+
margin-bottom: 0.5em;
|
166
|
+
padding-top: 0.5em;
|
167
|
+
}
|
168
|
+
|
169
|
+
div.sphinxsidebar h4 {
|
170
|
+
font-size: 1.2em;
|
171
|
+
margin-bottom: 0;
|
172
|
+
}
|
173
|
+
|
174
|
+
div.sphinxsidebar h3, div.sphinxsidebar h4 {
|
175
|
+
margin-right: -15px;
|
176
|
+
margin-left: -15px;
|
177
|
+
padding-right: 14px;
|
178
|
+
padding-left: 14px;
|
179
|
+
color: #333;
|
180
|
+
font-weight: 300;
|
181
|
+
/*text-shadow: 0px 0px 0.5px rgba(0, 0, 0, 0.4);*/
|
182
|
+
}
|
183
|
+
|
184
|
+
div.sphinxsidebarwrapper > h3:first-child {
|
185
|
+
margin-top: 0.5em;
|
186
|
+
border: none;
|
187
|
+
}
|
188
|
+
|
189
|
+
div.sphinxsidebar h3 a {
|
190
|
+
color: #333;
|
191
|
+
}
|
192
|
+
|
193
|
+
div.sphinxsidebar ul {
|
194
|
+
color: #444;
|
195
|
+
margin-top: 7px;
|
196
|
+
padding: 0;
|
197
|
+
line-height: 130%;
|
198
|
+
}
|
199
|
+
|
200
|
+
div.sphinxsidebar ul ul {
|
201
|
+
margin-left: 20px;
|
202
|
+
list-style-image: url(listitem.png);
|
203
|
+
}
|
204
|
+
|
205
|
+
div.footer {
|
206
|
+
color: {{ theme_darkgray }};
|
207
|
+
text-shadow: 0 0 .2px rgba(255, 255, 255, 0.8);
|
208
|
+
padding: 2em;
|
209
|
+
text-align: center;
|
210
|
+
clear: both;
|
211
|
+
font-size: 0.8em;
|
212
|
+
}
|
213
|
+
|
214
|
+
/* -- body styles ----------------------------------------------------------- */
|
215
|
+
|
216
|
+
p {
|
217
|
+
margin: 0.8em 0 0.5em 0;
|
218
|
+
}
|
219
|
+
|
220
|
+
a {
|
221
|
+
color: {{ theme_darkgreen }};
|
222
|
+
text-decoration: none;
|
223
|
+
}
|
224
|
+
|
225
|
+
a:hover {
|
226
|
+
color: {{ theme_darkyellow }};
|
227
|
+
}
|
228
|
+
|
229
|
+
div.body a {
|
230
|
+
text-decoration: underline;
|
231
|
+
}
|
232
|
+
|
233
|
+
h1 {
|
234
|
+
margin: 10px 0 0 0;
|
235
|
+
font-size: 2.4em;
|
236
|
+
color: {{ theme_darkgray }};
|
237
|
+
font-weight: 300;
|
238
|
+
}
|
239
|
+
|
240
|
+
h2 {
|
241
|
+
margin: 1.em 0 0.2em 0;
|
242
|
+
font-size: 1.5em;
|
243
|
+
font-weight: 300;
|
244
|
+
padding: 0;
|
245
|
+
color: {{ theme_darkgreen }};
|
246
|
+
}
|
247
|
+
|
248
|
+
h3 {
|
249
|
+
margin: 1em 0 -0.3em 0;
|
250
|
+
font-size: 1.3em;
|
251
|
+
font-weight: 300;
|
252
|
+
}
|
253
|
+
|
254
|
+
div.body h1 a, div.body h2 a, div.body h3 a, div.body h4 a, div.body h5 a, div.body h6 a {
|
255
|
+
text-decoration: none;
|
256
|
+
}
|
257
|
+
|
258
|
+
div.body h1 a tt, div.body h2 a tt, div.body h3 a tt, div.body h4 a tt, div.body h5 a tt, div.body h6 a tt {
|
259
|
+
color: {{ theme_darkgreen }} !important;
|
260
|
+
font-size: inherit !important;
|
261
|
+
}
|
262
|
+
|
263
|
+
a.headerlink {
|
264
|
+
color: {{ theme_green }} !important;
|
265
|
+
font-size: 12px;
|
266
|
+
margin-left: 6px;
|
267
|
+
padding: 0 4px 0 4px;
|
268
|
+
text-decoration: none !important;
|
269
|
+
float: right;
|
270
|
+
}
|
271
|
+
|
272
|
+
a.headerlink:hover {
|
273
|
+
background-color: #ccc;
|
274
|
+
color: white!important;
|
275
|
+
}
|
276
|
+
|
277
|
+
cite, code, tt {
|
278
|
+
font-family: 'Consolas', 'DejaVu Sans Mono',
|
279
|
+
'Bitstream Vera Sans Mono', monospace;
|
280
|
+
font-size: 14px;
|
281
|
+
letter-spacing: -0.02em;
|
282
|
+
}
|
283
|
+
|
284
|
+
tt {
|
285
|
+
background-color: #f2f2f2;
|
286
|
+
border: 1px solid #ddd;
|
287
|
+
border-radius: 2px;
|
288
|
+
color: #333;
|
289
|
+
padding: 1px;
|
290
|
+
}
|
291
|
+
|
292
|
+
tt.descname, tt.descclassname, tt.xref {
|
293
|
+
border: 0;
|
294
|
+
}
|
295
|
+
|
296
|
+
hr {
|
297
|
+
border: 1px solid #abc;
|
298
|
+
margin: 2em;
|
299
|
+
}
|
300
|
+
|
301
|
+
a tt {
|
302
|
+
border: 0;
|
303
|
+
color: {{ theme_darkgreen }};
|
304
|
+
}
|
305
|
+
|
306
|
+
a tt:hover {
|
307
|
+
color: {{ theme_darkyellow }};
|
308
|
+
}
|
309
|
+
|
310
|
+
pre {
|
311
|
+
font-family: 'Consolas', 'DejaVu Sans Mono',
|
312
|
+
'Bitstream Vera Sans Mono', monospace;
|
313
|
+
font-size: 13px;
|
314
|
+
letter-spacing: 0.015em;
|
315
|
+
line-height: 120%;
|
316
|
+
padding: 0.5em;
|
317
|
+
border: 1px solid #ccc;
|
318
|
+
border-radius: 2px;
|
319
|
+
background-color: #f8f8f8;
|
320
|
+
}
|
321
|
+
|
322
|
+
pre a {
|
323
|
+
color: inherit;
|
324
|
+
text-decoration: underline;
|
325
|
+
}
|
326
|
+
|
327
|
+
td.linenos pre {
|
328
|
+
padding: 0.5em 0;
|
329
|
+
}
|
330
|
+
|
331
|
+
div.quotebar {
|
332
|
+
background-color: #f8f8f8;
|
333
|
+
max-width: 250px;
|
334
|
+
float: right;
|
335
|
+
padding: 0px 7px;
|
336
|
+
border: 1px solid #ccc;
|
337
|
+
margin-left: 1em;
|
338
|
+
}
|
339
|
+
|
340
|
+
div.topic {
|
341
|
+
background-color: #f8f8f8;
|
342
|
+
}
|
343
|
+
|
344
|
+
table {
|
345
|
+
border-collapse: collapse;
|
346
|
+
margin: 0 -0.5em 0 -0.5em;
|
347
|
+
}
|
348
|
+
|
349
|
+
table td, table th {
|
350
|
+
padding: 0.2em 0.5em 0.2em 0.5em;
|
351
|
+
}
|
352
|
+
|
353
|
+
div.admonition, div.warning {
|
354
|
+
font-size: 0.9em;
|
355
|
+
margin: 1em 0 1em 0;
|
356
|
+
border: 1px solid #86989B;
|
357
|
+
border-radius: 2px;
|
358
|
+
background-color: #f7f7f7;
|
359
|
+
padding: 0;
|
360
|
+
}
|
361
|
+
|
362
|
+
div.admonition p, div.warning p {
|
363
|
+
margin: 0.5em 1em 0.5em 1em;
|
364
|
+
padding: 0;
|
365
|
+
}
|
366
|
+
|
367
|
+
div.admonition pre, div.warning pre {
|
368
|
+
margin: 0.4em 1em 0.4em 1em;
|
369
|
+
}
|
370
|
+
|
371
|
+
div.admonition p.admonition-title,
|
372
|
+
div.warning p.admonition-title {
|
373
|
+
margin-top: 1em;
|
374
|
+
padding-top: 0.5em;
|
375
|
+
font-weight: bold;
|
376
|
+
}
|
377
|
+
|
378
|
+
div.warning {
|
379
|
+
border: 1px solid #940000;
|
380
|
+
/* background-color: #FFCCCF;*/
|
381
|
+
}
|
382
|
+
|
383
|
+
div.warning p.admonition-title {
|
384
|
+
}
|
385
|
+
|
386
|
+
div.admonition ul, div.admonition ol,
|
387
|
+
div.warning ul, div.warning ol {
|
388
|
+
margin: 0.1em 0.5em 0.5em 3em;
|
389
|
+
padding: 0;
|
390
|
+
}
|
391
|
+
|
392
|
+
.viewcode-back {
|
393
|
+
font-family: {{ theme_font }}, 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva',
|
394
|
+
'Verdana', sans-serif;
|
395
|
+
}
|
396
|
+
|
397
|
+
div.viewcode-block:target {
|
398
|
+
background-color: #f4debf;
|
399
|
+
border-top: 1px solid #ac9;
|
400
|
+
border-bottom: 1px solid #ac9;
|
401
|
+
}
|