mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
newest version
This commit is contained in:
parent
b74a20a058
commit
5d5625ca02
|
@ -25,7 +25,7 @@
|
|||
"tests"
|
||||
],
|
||||
"dependencies": {
|
||||
"wyrm": "~0.0.2"
|
||||
"wyrm": "~0.0.3"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,16 +1,11 @@
|
|||
{% if READTHEDOCS %}
|
||||
<p class="wy-breadcrumbs-extra">Free document hosting provided by <a href="">Read the Docs</a>.</p>
|
||||
{% endif %}
|
||||
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="/">Docs</a> »</li>
|
||||
<li><a href="">{{ title }}</a></li>
|
||||
{% if display_github %}
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
<a href="https://github.com/{{ github_user }}/{{ github_repo }}/edit/{{ github_version }}{{ conf_py_path }}{{ pagename }}.rst" class="icon icon-github"> Edit on GitHub</a>
|
||||
<a href="https://github.com/{{ github_user }}/{{ github_repo }}/blob/{{ github_version }}{{ conf_py_path }}{{ pagename }}.rst" class="icon icon-github"> Edit on GitHub</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<hr/>
|
||||
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
HAS_SOURCE: {{ has_source|lower }}
|
||||
};
|
||||
</script>
|
||||
{%- for scriptfile in script_files + ["_static/sphinx_rtd_theme.js"] %}
|
||||
{%- for scriptfile in script_files + ["_static/theme.js"] %}
|
||||
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
|
||||
{%- endfor %}
|
||||
|
||||
|
@ -94,13 +94,14 @@
|
|||
{# SIDE NAV, TOGGLES ON MOBILE #}
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-nav-search">
|
||||
<a href="{{ pathto(master_doc) }}" class="icon icon-home"> {{ docstitle }}</a>
|
||||
<a href="{{ pathto(master_doc) }}" class="icon icon-home"> {{ project }}</a>
|
||||
{% include "searchbox.html" %}
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix">
|
||||
{{ toctree(maxdepth=2, collapse=False) }}
|
||||
</div>
|
||||
{% include "versions.html" %}
|
||||
|
||||
</nav>
|
||||
|
||||
|
@ -109,9 +110,10 @@
|
|||
{# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
|
||||
<nav class="wy-nav-top">
|
||||
<i data-toggle="wy-nav-top" class="icon icon-reorder"></i>
|
||||
<a href="/">{{ docstitle }}</a>
|
||||
<a href="/">{{ project }}</a>
|
||||
</nav>
|
||||
|
||||
|
||||
{# PAGE CONTENT #}
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
background-color: $menu-logo-color
|
||||
padding: 5px
|
||||
border-radius: 100%
|
||||
a
|
||||
> a, .wy-dropdown > a
|
||||
color: $section-background-color
|
||||
font-size: 100%
|
||||
font-weight: bold
|
||||
|
|
|
@ -30,12 +30,27 @@
|
|||
@import wyrm_core/table
|
||||
@import wyrm_core/type
|
||||
|
||||
// Cms
|
||||
// @import wyrm_addons/cms/dashboard
|
||||
// @import wyrm_addons/cms/layout
|
||||
// @import wyrm_addons/cms/list_like_table
|
||||
// @import wyrm_addons/cms/plugin_store
|
||||
|
||||
// Elements
|
||||
@import wyrm_addons/elements/modal
|
||||
@import wyrm_addons/elements/stars
|
||||
@import wyrm_addons/elements/tooltip
|
||||
|
||||
// Redactor
|
||||
@import wyrm_addons/redactor/figures
|
||||
@import wyrm_addons/redactor/redactor
|
||||
|
||||
// Restructured text and Sphinx
|
||||
@import wyrm_addons/rst/rst
|
||||
@import wyrm_addons/rst/pygments
|
||||
// @import wyrm_addons/rst/pygments_dark
|
||||
@import wyrm_addons/rst/pygments_light
|
||||
|
||||
// Theme specific files
|
||||
@import nav
|
||||
// Theme specific styles
|
||||
@import breadcrumbs
|
||||
@import nav
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +0,0 @@
|
|||
$( document ).ready(function() {
|
||||
$(".icon-reorder").click(function () {
|
||||
$(".wy-nav-content-wrap").toggleClass("shift");
|
||||
$(".wy-nav-side").toggleClass("shift");
|
||||
});
|
||||
});
|
5064
sphinx_rtd_theme/static/theme.css
Normal file
5064
sphinx_rtd_theme/static/theme.css
Normal file
File diff suppressed because one or more lines are too long
15
sphinx_rtd_theme/static/theme.js
Normal file
15
sphinx_rtd_theme/static/theme.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
$( document ).ready(function() {
|
||||
// Shift nav in mobile when clicking the menu.
|
||||
$("[data-toggle='wy-nav-top']").click(function() {
|
||||
$("[data-toggle='wy-nav-shift']").toggleClass("shift");
|
||||
$("[data-toggle='rst-versions']").toggleClass("shift");
|
||||
});
|
||||
// Close menu when you click a link.
|
||||
$(".wy-menu-vertical .current ul li a").click(function() {
|
||||
$("[data-toggle='wy-nav-shift']").removeClass("shift");
|
||||
$("[data-toggle='rst-versions']").toggleClass("shift");
|
||||
});
|
||||
$("[data-toggle='rst-current-version']").click(function() {
|
||||
$("[data-toggle='rst-versions']").toggleClass("shift-up");
|
||||
});
|
||||
});
|
|
@ -1,6 +1,6 @@
|
|||
[theme]
|
||||
inherit = basic
|
||||
stylesheet = sphinx_rtd_theme.css
|
||||
stylesheet = theme.css
|
||||
|
||||
[options]
|
||||
typekit_id = hiw1hhg
|
||||
|
|
37
sphinx_rtd_theme/versions.html
Normal file
37
sphinx_rtd_theme/versions.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
<div class="rst-versions" data-toggle="rst-versions">
|
||||
<span class="rst-current-version {% if current_version != "latest" %}rst-out-of-date{% endif %}" data-toggle="rst-current-version">
|
||||
<span class="float-left icon icon-book"> Read the Docs</span>
|
||||
v: {{ current_version }}
|
||||
{% if current_version != "latest" %}(old) {% endif %}
|
||||
<span class="icon icon-caret-down"></span>
|
||||
</span>
|
||||
<div class="rst-other-versions">
|
||||
<dl>
|
||||
<dt>Version</dt>
|
||||
{% for slug, url in versions %}
|
||||
<dd><a href="{{ url }}">{{ slug }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Downloads</dt>
|
||||
<dd><a href="{{ url }}">PDF</a></dd>
|
||||
<dd><a href="{{ url }}">Epub</a></dd>
|
||||
<dd><a href="{{ url }}">Zip</a></dd>
|
||||
</dl>
|
||||
<hr/>
|
||||
Free document hosting and versioning provided by <a href="http://www.readthedocs.org">Read the Docs</a>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{#
|
||||
{% if versions %}
|
||||
<div class="wy-dropdown">
|
||||
<a href="{{ pathto(master_doc) }}" class="icon icon-home caret"> {{ project }} </a>
|
||||
<dl class="wy-dropdown-menu">
|
||||
{% for slug, url in versions %}
|
||||
<dd><a href="{{ url }}">{{ slug }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</div>
|
||||
{% endif %}
|
||||
#}
|
Loading…
Reference in New Issue
Block a user