doc: delete redundant theme static files

Moo
Maxime Besson 5 years ago
parent 7587cfd182
commit 9e9970a3f0
  1. 253
      doc/sources/admin/my_theme/static/css/badge_only.css
  2. 7332
      doc/sources/admin/my_theme/static/css/theme.css
  3. 0
      doc/sources/admin/my_theme/static/fonts/Inconsolata-Bold.ttf
  4. 0
      doc/sources/admin/my_theme/static/fonts/Inconsolata-Regular.ttf
  5. 1
      doc/sources/admin/my_theme/static/fonts/Lato-Bold.ttf
  6. BIN
      doc/sources/admin/my_theme/static/fonts/Lato-Bold.woff2
  7. 1
      doc/sources/admin/my_theme/static/fonts/Lato-BoldItalic.ttf
  8. BIN
      doc/sources/admin/my_theme/static/fonts/Lato-BoldItalic.woff2
  9. 1
      doc/sources/admin/my_theme/static/fonts/Lato-Italic.ttf
  10. BIN
      doc/sources/admin/my_theme/static/fonts/Lato-Italic.woff2
  11. 1
      doc/sources/admin/my_theme/static/fonts/Lato-Regular.ttf
  12. BIN
      doc/sources/admin/my_theme/static/fonts/Lato-Regular.woff2
  13. 1
      doc/sources/admin/my_theme/static/fonts/RobotoSlab-Bold.ttf
  14. BIN
      doc/sources/admin/my_theme/static/fonts/RobotoSlab-Bold.woff2
  15. 1
      doc/sources/admin/my_theme/static/fonts/RobotoSlab-Regular.ttf
  16. BIN
      doc/sources/admin/my_theme/static/fonts/RobotoSlab-Regular.woff2
  17. 1
      doc/sources/admin/my_theme/static/fonts/fontawesome-webfont.eot
  18. 1
      doc/sources/admin/my_theme/static/fonts/fontawesome-webfont.svg
  19. 1
      doc/sources/admin/my_theme/static/fonts/fontawesome-webfont.ttf
  20. 1
      doc/sources/admin/my_theme/static/fonts/fontawesome-webfont.woff
  21. 1
      doc/sources/admin/my_theme/static/fonts/fontawesome-webfont.woff2
  22. 1
      doc/sources/admin/my_theme/static/js/modernizr.min.js
  23. 241
      doc/sources/admin/my_theme/static/js/theme.js

@ -1,253 +0,0 @@
.fa:before {
-webkit-font-smoothing: antialiased
}
.clearfix {
*zoom: 1
}
.clearfix:before,
.clearfix:after {
display: table;
content: ""
}
.clearfix:after {
clear: both
}
@font-face {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
src: url("../fonts/fontawesome-webfont.eot");
src: url("../fonts/fontawesome-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/fontawesome-webfont.woff") format("woff"), url("../fonts/fontawesome-webfont.ttf") format("truetype"), url("../fonts/fontawesome-webfont.svg#FontAwesome") format("svg")
}
.fa:before {
display: inline-block;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
text-decoration: inherit
}
a .fa {
display: inline-block;
text-decoration: inherit
}
li .fa {
display: inline-block
}
li .fa-large:before,
li .fa-large:before {
width: 1.875em
}
ul.fas {
list-style-type: none;
margin-left: 2em;
text-indent: -0.8em
}
ul.fas li .fa {
width: .8em
}
ul.fas li .fa-large:before,
ul.fas li .fa-large:before {
vertical-align: baseline
}
.fa-book:before {
content: ""
}
.icon-book:before {
content: ""
}
.fa-caret-down:before {
content: ""
}
.icon-caret-down:before {
content: ""
}
.fa-caret-up:before {
content: ""
}
.icon-caret-up:before {
content: ""
}
.fa-caret-left:before {
content: ""
}
.icon-caret-left:before {
content: ""
}
.fa-caret-right:before {
content: ""
}
.icon-caret-right:before {
content: ""
}
.rst-versions {
position: fixed;
bottom: 0;
left: 0;
width: 300px;
color: #fcfcfc;
background: #1f1d1d;
font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
z-index: 400
}
.rst-versions a {
color: #2980B9;
text-decoration: none
}
.rst-versions .rst-badge-small {
display: none
}
.rst-versions .rst-current-version {
padding: 12px;
background-color: #272525;
display: block;
text-align: right;
font-size: 90%;
cursor: pointer;
color: #27AE60;
*zoom: 1
}
.rst-versions .rst-current-version:before,
.rst-versions .rst-current-version:after {
display: table;
content: ""
}
.rst-versions .rst-current-version:after {
clear: both
}
.rst-versions .rst-current-version .fa {
color: #fcfcfc
}
.rst-versions .rst-current-version .fa-book {
float: left
}
.rst-versions .rst-current-version .icon-book {
float: left
}
.rst-versions .rst-current-version.rst-out-of-date {
background-color: #E74C3C;
color: #fff
}
.rst-versions .rst-current-version.rst-active-old-version {
background-color: #F1C40F;
color: #000
}
.rst-versions.shift-up {
height: auto;
max-height: 100%;
overflow-y: scroll
}
.rst-versions.shift-up .rst-other-versions {
display: block
}
.rst-versions .rst-other-versions {
font-size: 90%;
padding: 12px;
color: gray;
display: none
}
.rst-versions .rst-other-versions hr {
display: block;
height: 1px;
border: 0;
margin: 20px 0;
padding: 0;
border-top: solid 1px #413d3d
}
.rst-versions .rst-other-versions dd {
display: inline-block;
margin: 0
}
.rst-versions .rst-other-versions dd a {
display: inline-block;
padding: 6px;
color: #fcfcfc
}
.rst-versions.rst-badge {
width: auto;
bottom: 20px;
right: 20px;
left: auto;
border: none;
max-width: 300px;
max-height: 90%
}
.rst-versions.rst-badge .icon-book {
float: none
}
.rst-versions.rst-badge .fa-book {
float: none
}
.rst-versions.rst-badge.shift-up .rst-current-version {
text-align: right
}
.rst-versions.rst-badge.shift-up .rst-current-version .fa-book {
float: left
}
.rst-versions.rst-badge.shift-up .rst-current-version .icon-book {
float: left
}
.rst-versions.rst-badge .rst-current-version {
width: auto;
height: 30px;
line-height: 30px;
padding: 0 6px;
display: block;
text-align: center
}
@media screen and (max-width: 768px) {
.rst-versions {
width: 85%;
display: none
}
.rst-versions.shift {
display: block
}
}

File diff suppressed because it is too large Load Diff

@ -1 +0,0 @@
../../../fonts/truetype/lato/Lato-Bold.ttf

@ -1 +0,0 @@
../../../fonts/truetype/lato/Lato-BoldItalic.ttf

@ -1 +0,0 @@
../../../fonts/truetype/lato/Lato-Italic.ttf

@ -1 +0,0 @@
../../../fonts/truetype/lato/Lato-Regular.ttf

@ -1 +0,0 @@
../../../fonts/truetype/roboto/slab/RobotoSlab-Bold.ttf

@ -1 +0,0 @@
../../../fonts/truetype/roboto/slab/RobotoSlab-Regular.ttf

@ -1 +0,0 @@
../../../fonts/eot/font-awesome/fontawesome-webfont.eot

@ -1 +0,0 @@
../../../fonts/svg/font-awesome/fontawesome-webfont.svg

@ -1 +0,0 @@
../../../fonts/truetype/font-awesome/fontawesome-webfont.ttf

@ -1 +0,0 @@
../../../fonts/woff/font-awesome/fontawesome-webfont.woff

@ -1 +0,0 @@
../../../fonts/woff/font-awesome/fontawesome-webfont.woff2

@ -1 +0,0 @@
../../../javascript/modernizr/modernizr.min.js

@ -1,241 +0,0 @@
var jQuery = (typeof(window) != 'undefined') ? window.jQuery : require('jquery');
// Sphinx theme nav state
function ThemeNav () {
var nav = {
navBar: null,
win: null,
winScroll: false,
winResize: false,
linkScroll: false,
winPosition: 0,
winHeight: null,
docHeight: null,
isRunning: false
};
nav.enable = function (withStickyNav) {
var self = this;
// TODO this can likely be removed once the theme javascript is broken
// out from the RTD assets. This just ensures old projects that are
// calling `enable()` get the sticky menu on by default. All other cals
// to `enable` should include an argument for enabling the sticky menu.
if (typeof(withStickyNav) == 'undefined') {
withStickyNav = true;
}
if (self.isRunning) {
// Only allow enabling nav logic once
return;
}
self.isRunning = true;
jQuery(function ($) {
self.init($);
self.reset();
self.win.on('hashchange', self.reset);
if (withStickyNav) {
// Set scroll monitor
self.win.on('scroll', function () {
if (!self.linkScroll) {
if (!self.winScroll) {
self.winScroll = true;
requestAnimationFrame(function() { self.onScroll(); });
}
}
});
}
// Set resize monitor
self.win.on('resize', function () {
if (!self.winResize) {
self.winResize = true;
requestAnimationFrame(function() { self.onResize(); });
}
});
self.onResize();
});
};
// TODO remove this with a split in theme and Read the Docs JS logic as
// well, it's only here to support 0.3.0 installs of our theme.
nav.enableSticky = function() {
this.enable(true);
};
nav.init = function ($) {
var doc = $(document),
self = this;
this.navBar = $('div.wy-side-scroll:first');
this.win = $(window);
// Set up javascript UX bits
$(document)
// Shift nav in mobile when clicking the menu.
.on('click', "[data-toggle='wy-nav-top']", function() {
$("[data-toggle='wy-nav-shift']").toggleClass("shift");
$("[data-toggle='rst-versions']").toggleClass("shift");
})
// Nav menu link click operations
.on('click', ".wy-menu-vertical .current ul li a", function() {
var target = $(this);
// Close menu when you click a link.
$("[data-toggle='wy-nav-shift']").removeClass("shift");
$("[data-toggle='rst-versions']").toggleClass("shift");
// Handle dynamic display of l3 and l4 nav lists
self.toggleCurrent(target);
self.hashChange();
})
.on('click', "[data-toggle='rst-current-version']", function() {
$("[data-toggle='rst-versions']").toggleClass("shift-up");
})
// Make tables responsive
$("table.docutils:not(.field-list,.footnote,.citation)")
.wrap("<div class='wy-table-responsive'></div>");
// Add extra class to responsive tables that contain
// footnotes or citations so that we can target them for styling
$("table.docutils.footnote")
.wrap("<div class='wy-table-responsive footnote'></div>");
$("table.docutils.citation")
.wrap("<div class='wy-table-responsive citation'></div>");
// Add expand links to all parents of nested ul
$('.wy-menu-vertical ul').not('.simple').siblings('a').each(function () {
var link = $(this);
expand = $('<span class="toctree-expand"></span>');
expand.on('click', function (ev) {
self.toggleCurrent(link);
ev.stopPropagation();
return false;
});
link.prepend(expand);
});
};
nav.reset = function () {
// Get anchor from URL and open up nested nav
var anchor = encodeURI(window.location.hash) || '#';
try {
var vmenu = $('.wy-menu-vertical');
var link = vmenu.find('[href="' + anchor + '"]');
if (link.length === 0) {
// this link was not found in the sidebar.
// Find associated id element, then its closest section
// in the document and try with that one.
var id_elt = $('.document [id="' + anchor.substring(1) + '"]');
var closest_section = id_elt.closest('div.section');
link = vmenu.find('[href="#' + closest_section.attr("id") + '"]');
if (link.length === 0) {
// still not found in the sidebar. fall back to main section
link = vmenu.find('[href="#"]');
}
}
// If we found a matching link then reset current and re-apply
// otherwise retain the existing match
if (link.length > 0) {
$('.wy-menu-vertical .current').removeClass('current');
link.addClass('current');
link.closest('li.toctree-l1').addClass('current');
link.closest('li.toctree-l1').parent().addClass('current');
link.closest('li.toctree-l1').addClass('current');
link.closest('li.toctree-l2').addClass('current');
link.closest('li.toctree-l3').addClass('current');
link.closest('li.toctree-l4').addClass('current');
link[0].scrollIntoView();
}
}
catch (err) {
console.log("Error expanding nav for anchor", err);
}
};
nav.onScroll = function () {
this.winScroll = false;
var newWinPosition = this.win.scrollTop(),
winBottom = newWinPosition + this.winHeight,
navPosition = this.navBar.scrollTop(),
newNavPosition = navPosition + (newWinPosition - this.winPosition);
if (newWinPosition < 0 || winBottom > this.docHeight) {
return;
}
this.navBar.scrollTop(newNavPosition);
this.winPosition = newWinPosition;
};
nav.onResize = function () {
this.winResize = false;
this.winHeight = this.win.height();
this.docHeight = $(document).height();
};
nav.hashChange = function () {
this.linkScroll = true;
this.win.one('hashchange', function () {
this.linkScroll = false;
});
};
nav.toggleCurrent = function (elem) {
var parent_li = elem.closest('li');
parent_li.siblings('li.current').removeClass('current');
parent_li.siblings().find('li.current').removeClass('current');
parent_li.find('> ul li.current').removeClass('current');
parent_li.toggleClass('current');
}
return nav;
};
_ThemeNav = ThemeNav();
if (typeof(window) != 'undefined') {
window.SphinxRtdTheme = {
Navigation: _ThemeNav,
// TODO remove this once static assets are split up between the theme
// and Read the Docs. For now, this patches 0.3.0 to be backwards
// compatible with a pre-0.3.0 layout.html
StickyNav: _ThemeNav,
};
}
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// https://gist.github.com/paulirish/1579671
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'];
window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame']
|| window[vendors[x]+'CancelRequestAnimationFrame'];
}
if (!window.requestAnimationFrame)
window.requestAnimationFrame = function(callback, element) {
var currTime = new Date().getTime();
var timeToCall = Math.max(0, 16 - (currTime - lastTime));
var id = window.setTimeout(function() { callback(currTime + timeToCall); },
timeToCall);
lastTime = currTime + timeToCall;
return id;
};
if (!window.cancelAnimationFrame)
window.cancelAnimationFrame = function(id) {
clearTimeout(id);
};
}());
Loading…
Cancel
Save