New doc design: Sphinx Bootstrap 4 Theme
Now we use an own, mobile-first, responsive sphinx theme based on Bootstrap 4. It makes navigation on the very long "Python module instaloader" page a lot easier. Also, it looks better. This solves all the problems we had with sphinx-bootstrap-theme.
This commit is contained in:
1 parent
2e7835850a
commit
ac4cd9f595
11 files changed
+318
-126
No files matched your search
+7
@@ -0,0 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap v4.1.3 (https://getbootstrap.com/)
|
||||||
|
* Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
|
*/
|
||||||
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.bootstrap={},e.jQuery)}(this,function(e,t){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),t.forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i})}return r}for(var r,n,o,a,c,u,f,h,d,p,m,g,_,v,y,E,b,w,C,T,S,D,A,I,O,N,k,x,P,L,j,H,M,F,W,R,U,B,q,K,Q,Y,V,z,G,J,Z,X,$,ee,te,ne,ie,re,oe,se,ae,le,ce,ue,fe,he,de,pe,me,ge,_e,ve,ye,Ee,be,we=function(i){var t="transitionend";function e(e){var t=this,n=!1;return i(this).one(l.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||l.triggerTransitionEnd(t)},e),this}var l={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=i(e).css("transition-duration");return parseFloat(t)?(t=t.split(",")[0],1e3*parseFloat(t)):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){i(e).trigger(t)},supportsTransitionEnd:function(){return Boolean(t)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],o=t[i],s=o&&l.isElement(o)?"element":(a=o,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+r+'".')}var a}};return i.fn.emulateTransitionEnd=e,i.event.special[l.TRANSITION_END]={bindType:t,delegateType:t,handle:function(e){if(i(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},l}(t=t&&t.hasOwnProperty("default")?t.default:t),Ce=(n="alert",a="."+(o="bs.alert"),c=(r=t).fn[n],u={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},f="alert",h="fade",d="show",p=function(){function i(e){this._element=e}var e=i.prototype;return e.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},e.dispose=function(){r.removeData(this._element,o),this._element=null},e._getRootElement=function(e){var t=we.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=r(e).closest("."+f)[0]),n},e._triggerCloseEvent=function(e){var t=r.Event(u.CLOSE);return r(e).trigger(t),t},e._removeElement=function(t){var n=this;if(r(t).removeClass(d),r(t).hasClass(h)){var e=we.getTransitionDurationFromElement(t);r(t).one(we.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(e)}else this._destroyElement(t)},e._destroyElement=function(e){r(e).detach().trigger(u.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var e=r(this),t=e.data(o);t||(t=new i(this),e.data(o,t)),"close"===n&&t[n](this)})},i._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),i}(),r(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',p._handleDismiss(new p)),r.fn[n]=p._jQueryInterface,r.fn[n].Constructor=p,r.fn[n].noConflict=function(){return r.fn[n]=c,p._jQueryInterface},p),Te=(g="button",v="."+(_="bs.button"),y=".data-api",E=(m=t).fn[g],b="active",w="btn",T='[data-toggle^="button"]',S='[data-toggle="buttons"]',D="input",A=".active",I=".btn",O={CLICK_DATA_API:"click"+v+y,FOCUS_BLUR_DATA_API:(C="focus")+v+y+" blur"+v+y},N=function(){function n(e){this._element=e}var e=n.prototype;return e.toggle=function(){var e=!0,t=!0,n=m(this._element).closest(S)[0];if(n){var i=this._element.querySelector(D);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(b))e=!1;else{var r=n.querySelector(A);r&&m(r).removeClass(b)}if(e){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(b),m(i).trigger("change")}i.focus(),t=!1}}t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(b)),e&&m(this._element).toggleClass(b)},e.dispose=function(){m.removeData(this._element,_),this._element=null},n._jQueryInterface=function(t){return this.each(function(){var e=m(this).datLine truncated
|
||||||
|
//# sourceMappingURL=bootstrap.bundle.min.js.map
|
||||||
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap v4.1.3 (https://getbootstrap.com/)
|
||||||
|
* Copyright 2011-2018 The Bootstrap Authors
|
||||||
|
* Copyright 2011-2018 Twitter, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
|
*/:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-family:inherit;font-weight:500;line-height:1.2;color:inherit}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgLine truncated
|
||||||
|
/*# sourceMappingURL=bootstrap.min.css.map */
|
||||||
Vendored
+74
@@ -0,0 +1,74 @@
|
|||||||
|
@import url(bootstrap-4.1.3.min.css);
|
||||||
|
a {
|
||||||
|
color: #008d06; }
|
||||||
|
a:hover {
|
||||||
|
color: #f48400; }
|
||||||
|
|
||||||
|
code {
|
||||||
|
color: #212529; }
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
border-radius: 0.3em; }
|
||||||
|
.highlight pre {
|
||||||
|
padding: 0.7em;
|
||||||
|
color: #fff; }
|
||||||
|
.highlight .c1 {
|
||||||
|
color: #008d06; }
|
||||||
|
.highlight .kn {
|
||||||
|
color: #f48400; }
|
||||||
|
.highlight .s1, .highlight .s2, .highlight .mi {
|
||||||
|
color: #ff7efd; }
|
||||||
|
|
||||||
|
.doc-content {
|
||||||
|
top: 4.0625em;
|
||||||
|
position: relative;
|
||||||
|
height: calc(100vh - 4.0625em);
|
||||||
|
overflow-y: auto; }
|
||||||
|
|
||||||
|
.doc-sidebar {
|
||||||
|
position: fixed;
|
||||||
|
padding-top: 0.5em;
|
||||||
|
top: 3.5625em;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
overflow-y: auto; }
|
||||||
|
.doc-sidebar ul {
|
||||||
|
padding-left: 1em; }
|
||||||
|
.doc-sidebar ul.current {
|
||||||
|
list-style-type: none;
|
||||||
|
padding-left: 0; }
|
||||||
|
.doc-sidebar li {
|
||||||
|
padding-top: 0.2em;
|
||||||
|
padding-bottom: 0.2em; }
|
||||||
|
.doc-sidebar li a {
|
||||||
|
color: #008d06; }
|
||||||
|
.doc-sidebar li a.current, .doc-sidebar li a.active {
|
||||||
|
color: #f48400;
|
||||||
|
font-weight: 500; }
|
||||||
|
.doc-sidebar li a:hover {
|
||||||
|
color: #f48400;
|
||||||
|
text-decoration: none; }
|
||||||
|
|
||||||
|
.admonition {
|
||||||
|
border-radius: 0.3em;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
background-color: #f8f9fa; }
|
||||||
|
.admonition .admonition-title {
|
||||||
|
color: #ff7efd; }
|
||||||
|
|
||||||
|
.topic {
|
||||||
|
border-radius: 0.3em;
|
||||||
|
background-color: #f8f9fa; }
|
||||||
|
|
||||||
|
.nav-link {
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0; }
|
||||||
|
|
||||||
|
.btn-success {
|
||||||
|
background-color: #008d06;
|
||||||
|
border-color: #008d06; }
|
||||||
|
.btn-success:hover {
|
||||||
|
background-color: #f48400;
|
||||||
|
border-color: #f48400; }
|
||||||
|
|
||||||
|
/*# sourceMappingURL=instaloader.css.map */
|
||||||
Vendored
+22
@@ -0,0 +1,22 @@
|
|||||||
|
$(function () {
|
||||||
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
|
|
||||||
|
$('.doc-sidebar > ul > li.current').attr("id", "localtoc");
|
||||||
|
$('#localtoc ul').addClass("nav flex-column");
|
||||||
|
$('#localtoc ul li').addClass("nav-item");
|
||||||
|
$('#localtoc ul li a').addClass("nav-link");
|
||||||
|
$('.doc-content').scrollspy({target: '#localtoc'});
|
||||||
|
|
||||||
|
const top_href = '#' + $('.section:first').attr("id");
|
||||||
|
$('#localtoc > a.current').attr("href", top_href);
|
||||||
|
|
||||||
|
$('#navbarToc a').on("click", function () {
|
||||||
|
const href = $(this).attr("href");
|
||||||
|
if (href === '#') {
|
||||||
|
window.location.href = top_href;
|
||||||
|
} else {
|
||||||
|
window.location.href = href;
|
||||||
|
}
|
||||||
|
$('#navbarToc').modal('hide');
|
||||||
|
});
|
||||||
|
});
|
||||||
Vendored
+114
@@ -0,0 +1,114 @@
|
|||||||
|
@import 'bootstrap-4.1.3.min.css';
|
||||||
|
|
||||||
|
$color_instaloader_main: #008d06;
|
||||||
|
$color_instaloader_accent: #f48400;
|
||||||
|
$color_instaloader_hyper: #ff7efd;
|
||||||
|
$color_normal_text: #212529;
|
||||||
|
$color_light_bg: #f8f9fa;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: $color_instaloader_main;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $color_instaloader_accent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
color: $color_normal_text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
border-radius: 0.3em;
|
||||||
|
|
||||||
|
pre {
|
||||||
|
padding: 0.7em;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c1 {
|
||||||
|
color: $color_instaloader_main
|
||||||
|
}
|
||||||
|
|
||||||
|
.kn {
|
||||||
|
color: $color_instaloader_accent
|
||||||
|
}
|
||||||
|
|
||||||
|
.s1, .s2, .mi {
|
||||||
|
color: $color_instaloader_hyper
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-content {
|
||||||
|
top: 4.0625em;
|
||||||
|
position: relative;
|
||||||
|
height: calc(100vh - 4.0625em);
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.doc-sidebar {
|
||||||
|
position: fixed;
|
||||||
|
padding-top: 0.5em;
|
||||||
|
top: 3.5625em;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
overflow-y: auto;
|
||||||
|
|
||||||
|
ul {
|
||||||
|
padding-left: 1em;
|
||||||
|
|
||||||
|
&.current {
|
||||||
|
list-style-type: none;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
padding-top: 0.2em;
|
||||||
|
padding-bottom: 0.2em;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: $color_instaloader_main;
|
||||||
|
|
||||||
|
&.current, &.active {
|
||||||
|
color: $color_instaloader_accent;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $color_instaloader_accent;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.admonition {
|
||||||
|
border-radius: 0.3em;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
background-color: $color_light_bg;
|
||||||
|
|
||||||
|
.admonition-title {
|
||||||
|
color: $color_instaloader_hyper;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.topic {
|
||||||
|
border-radius: 0.3em;
|
||||||
|
background-color: $color_light_bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-link {
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-success {
|
||||||
|
background-color: $color_instaloader_main;
|
||||||
|
border-color: $color_instaloader_main;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: $color_instaloader_accent;
|
||||||
|
border-color: $color_instaloader_accent;
|
||||||
|
}
|
||||||
|
}
|
||||||
Vendored
-28
@@ -1,28 +0,0 @@
|
|||||||
code {
|
|
||||||
color: #222;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
dd {
|
|
||||||
padding-left: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl.option dd {
|
|
||||||
padding-left: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #008d06;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
|
||||||
color: #f48400;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.versionmodified {
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
Vendored
-14
@@ -1,14 +0,0 @@
|
|||||||
<li class="dropdown globaltoc-container">
|
|
||||||
<a role="button"
|
|
||||||
id="dLabelGlobalToc"
|
|
||||||
data-toggle="dropdown"
|
|
||||||
data-target="#"
|
|
||||||
href="{{ pathto(master_doc) }}">{{ theme_navbar_site_name }} <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu globaltoc"
|
|
||||||
role="menu"
|
|
||||||
aria-labelledby="dLabelGlobalToc">
|
|
||||||
{{ toctree(maxdepth=theme_globaltoc_depth|toint, collapse=False, includehidden=theme_globaltoc_includehidden|tobool) }}
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="genindex.html">Index</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
Vendored
+91
-7
@@ -1,18 +1,102 @@
|
|||||||
{% extends "!layout.html" %}
|
{% extends "!layout.html" %}
|
||||||
|
|
||||||
|
{% set html5_doctype = True %}
|
||||||
|
|
||||||
|
{% set script_files = script_files + ['_static/bootstrap-4.1.3.bundle.min.js', '_static/instaloader.js'] %}
|
||||||
|
|
||||||
{% block htmltitle %}
|
{% block htmltitle %}
|
||||||
{% if pagename == "index" %}
|
{% if pagename == "index" %}
|
||||||
<title>{{ title|striptags|e }}</title>
|
<title>{{ title|striptags|e }}</title>
|
||||||
{% else %}
|
{% else %}
|
||||||
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
|
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block extrahead %}
|
{% block extrahead %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
<meta name="google-site-verification" content="FNUsDdkOJM9obm9QEdrNBVd9AtAzHzA-aaSMCUrS6C8" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
<meta name="google-site-verification" content="FNUsDdkOJM9obm9QEdrNBVd9AtAzHzA-aaSMCUrS6C8"/>
|
||||||
{% if pagename == "index" %}
|
{% if pagename == "index" %}
|
||||||
<link rel="canonical" href="https://instaloader.github.io/" />
|
<link rel="canonical" href="https://instaloader.github.io/"/>
|
||||||
{% else %}
|
{% else %}
|
||||||
<link rel="canonical" href="https://instaloader.github.io/{{ pagename }}.html" />
|
<link rel="canonical" href="https://instaloader.github.io/{{ pagename }}.html"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block header %}
|
||||||
|
<nav class="navbar navbar-expand-sm navbar-light bg-light fixed-top border-bottom">
|
||||||
|
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
|
||||||
|
<img src="{{ pathto('_static/' + logo, 1) }}" width="30" height="30" class="d-inline-block align-top" alt="logo">
|
||||||
|
Instaloader
|
||||||
|
</a>
|
||||||
|
<ul class="navbar-nav mr-auto">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a target="_blank" class="nav-link"
|
||||||
|
href="https://github.com/instaloader/instaloader/releases/tag/v{{ current_release }}"
|
||||||
|
title="Released on {{ current_release_date }}" data-toggle="tooltip">v<b>{{ current_release }}</b></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarLinks"
|
||||||
|
aria-controls="navbarLinks" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarLinks">
|
||||||
|
<ul class="navbar-nav ml-auto">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a target="_blank" class="nav-link" href="https://github.com/instaloader/instaloader/issues">Issues</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a target="_blank" class="nav-link" href="https://github.com/instaloader/instaloader/releases">Releases</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a target="_blank" class="nav-link" href="https://github.com/instaloader/instaloader">GitHub</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<button type="button" class="btn btn-success d-md-none btn-small ml-2" data-toggle="modal" data-target="#navbarToc">
|
||||||
|
TOC
|
||||||
|
</button>
|
||||||
|
</nav>
|
||||||
|
<div class="modal fade" id="navbarToc" tabindex="-1" role="dialog"
|
||||||
|
aria-hidden="true" aria-labelledby="navbarTocTitle">
|
||||||
|
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h5 class="modal-title" id="navbarTocTitle">Contents</h5>
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
{{ toctree(maxdepth=-1) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block relbar1 %}{% endblock %}
|
||||||
|
{% block relbar2 %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
<div class="container-fluid row">
|
||||||
|
<div class="col-12 {% if pagename != "index" %}col-md-9 col-xl-10{% endif %} doc-content">
|
||||||
|
{% block body %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
{% if pagename != "index" %}
|
||||||
|
<div class="d-none col-md-3 col-xl-2 bg-light doc-sidebar d-md-flex flex-column border-left">
|
||||||
|
|
||||||
|
<h3>{{ _('Table of Contents') }}</h3>
|
||||||
|
{{ toctree(maxdepth=-1) }}
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-between small mt-auto mb-3">
|
||||||
|
<a class="reference internal" href="genindex.html">Index</a>
|
||||||
|
{% if pagename != "genindex" %}
|
||||||
|
<a class="reference external"
|
||||||
|
href="https://github.com/instaloader/instaloader/edit/master/docs/{{ pagename }}.rst">Edit this page</a>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
Vendored
-60
@@ -1,60 +0,0 @@
|
|||||||
<div id="navbar" class="{{ theme_navbar_class }} navbar-default {% if theme_navbar_fixed_top|tobool -%} navbar-fixed-top{%- endif -%}">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
|
|
||||||
{%- block sidebarlogo %}
|
|
||||||
{%- if logo %}<span><img src="{{ pathto('_static/' + logo, 1) }}"></span>{%- endif %}
|
|
||||||
{%- endblock %}
|
|
||||||
{% if theme_navbar_title -%}{{ theme_navbar_title|e }}{%- else -%}{{ project|e }}{%- endif -%}
|
|
||||||
</a>
|
|
||||||
<span class="navbar-text navbar-version pull-left">
|
|
||||||
<a href="https://github.com/instaloader/instaloader/releases/tag/v{{current_release}}" title="Released on {{current_release_date}}">v<b>{{current_release}}</b></a>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="collapse navbar-collapse nav-collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
{% if theme_navbar_links %}
|
|
||||||
{%- for link in theme_navbar_links %}
|
|
||||||
<li><a href="{{ pathto(*link[1:]) }}">{{ link[0] }}</a></li>
|
|
||||||
{%- endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% block navbartoc %}
|
|
||||||
{% include "globaltoc.html" %}
|
|
||||||
{% if theme_navbar_pagenav and pagename not in ("index", "genindex", "installation") %}
|
|
||||||
{% include "navbartoc.html" %}
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
{% if theme_navbar_sidebarrel %}
|
|
||||||
{% block sidebarrel %}
|
|
||||||
{% include "relations.html" %}
|
|
||||||
{% endblock %}
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
<li class="dropdown">
|
|
||||||
<a role="button" id="dLabelUsefulLinks" data-toggle="dropdown" data-target="#" href="#">
|
|
||||||
Useful Links
|
|
||||||
<b class="caret"></b>
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabelUsefulLinks">
|
|
||||||
<li><a href="https://github.com/instaloader/instaloader/issues">Issue Tracker</a></li>
|
|
||||||
<li><a href="https://github.com/instaloader/instaloader/releases">Version History</a></li>
|
|
||||||
<li><a href="https://pypi.org/project/instaloader/">Instaloader on PyPI</a></li>
|
|
||||||
<li><a href="https://github.com/instaloader/instaloader">Instaloader on GitHub</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li style="padding-left: 20px;"><a class="github-button" href="https://github.com/instaloader/instaloader" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star Instaloader on GitHub">Star</a></li>
|
|
||||||
<li role="separator" class="divider"></li>
|
|
||||||
<li><a href="https://www.paypal.me/aandergr"><b>Donate (via Paypal)</b></a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
+3
-16
@@ -124,7 +124,7 @@ add_module_names = False
|
|||||||
# show_authors = False
|
# show_authors = False
|
||||||
|
|
||||||
# The name of the Pygments (syntax highlighting) style to use.
|
# The name of the Pygments (syntax highlighting) style to use.
|
||||||
pygments_style = 'sphinx'
|
pygments_style = 'fruity'
|
||||||
|
|
||||||
# A list of ignored prefixes for module index sorting.
|
# A list of ignored prefixes for module index sorting.
|
||||||
# modindex_common_prefix = []
|
# modindex_common_prefix = []
|
||||||
@@ -141,20 +141,7 @@ todo_include_todos = False
|
|||||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
# a list of builtin themes.
|
# a list of builtin themes.
|
||||||
#
|
#
|
||||||
html_theme = 'bootstrap'
|
html_theme = 'basic'
|
||||||
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
|
|
||||||
|
|
||||||
# Theme options are theme-specific and customize the look and feel of a theme
|
|
||||||
# further. For a list of options available for each theme, see the
|
|
||||||
# documentation.
|
|
||||||
#
|
|
||||||
html_theme_options = {
|
|
||||||
'navbar_site_name': 'Site Contents',
|
|
||||||
'navbar_pagenav_name': 'Page Contents',
|
|
||||||
'navbar_pagenav': True,
|
|
||||||
'navbar_sidebarrel': True,
|
|
||||||
'nosidebar': True,
|
|
||||||
}
|
|
||||||
|
|
||||||
# Add any paths that contain custom themes here, relative to this directory.
|
# Add any paths that contain custom themes here, relative to this directory.
|
||||||
# html_theme_path = []
|
# html_theme_path = []
|
||||||
@@ -376,6 +363,6 @@ html_context = {'current_release': current_release, 'current_release_date': curr
|
|||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
typing.TYPE_CHECKING = True
|
typing.TYPE_CHECKING = True
|
||||||
app.add_stylesheet("style.css")
|
app.add_stylesheet("instaloader.css")
|
||||||
app.connect('autodoc-process-signature', sphinx_autodoc_typehints.process_signature)
|
app.connect('autodoc-process-signature', sphinx_autodoc_typehints.process_signature)
|
||||||
app.connect('autodoc-process-docstring', sphinx_autodoc_typehints.process_docstring)
|
app.connect('autodoc-process-docstring', sphinx_autodoc_typehints.process_docstring)
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
requests
|
requests
|
||||||
sphinx!=1.7.7
|
sphinx!=1.7.7
|
||||||
sphinx-bootstrap-theme
|
|
||||||
Reference in new issue
Block a user