mirror of https://github.com/rust-lang/book
Remove unused theme directories.
This commit is contained in:
parent
cf2653a5ca
commit
855f9e4e7f
|
@ -1,6 +1,3 @@
|
|||
[book]
|
||||
title = "The Rust Programming Language"
|
||||
author = "The Rust Project Developers"
|
||||
|
||||
[output.html]
|
||||
additional-css = ["src/theme/first-edition.css"]
|
||||
|
|
|
@ -1,56 +0,0 @@
|
|||
.warning {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color: rgb(242, 222, 222);
|
||||
border-bottom-color: rgb(238, 211, 215);
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 0.666667px;
|
||||
border-image-outset: 0 0 0 0;
|
||||
border-image-repeat: stretch stretch;
|
||||
border-image-slice: 100% 100% 100% 100%;
|
||||
border-image-source: none;
|
||||
border-image-width: 1 1 1 1;
|
||||
border-left-color: rgb(238, 211, 215);
|
||||
border-left-style: solid;
|
||||
border-left-width: 0.666667px;
|
||||
border-right-color: rgb(238, 211, 215);
|
||||
border-right-style: solid;
|
||||
border-right-width: 0.666667px;
|
||||
border-top-color: rgb(238, 211, 215);
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
border-top-style: solid;
|
||||
border-top-width: 0.666667px;
|
||||
color: rgb(185, 74, 72);
|
||||
margin-bottom: 0px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
margin-top: 30px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 14px;
|
||||
padding-right: 35px;
|
||||
padding-right: 14px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
.warning strong {
|
||||
color: rgb(185, 74, 72)
|
||||
}
|
||||
.warning a {
|
||||
color: rgb(0, 136, 204)
|
||||
}
|
||||
.warning .message {
|
||||
margin-right: 14px;
|
||||
}
|
||||
.warning .message:last-child {
|
||||
margin-right: 21px;
|
||||
}
|
||||
.warning .button {
|
||||
border: none;
|
||||
background: none;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
<div id="draft-warning" class="warning">
|
||||
<span class="message">You are reading an <strong>outdated</strong> edition of TRPL. For more, go <a href="../index.html">here</a>.</span>
|
||||
<button type="button" id="hide-draft-warning" title="Hide draft warning" class="button">
|
||||
<i class="fa fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
<!-- Hide / unhide warning before it is displayed -->
|
||||
<script type="text/javascript">
|
||||
var warning = localStorage.getItem('trpl-first-edition-draft-warning');
|
||||
|
||||
if (warning === 'hidden') {
|
||||
Array
|
||||
.from(document.querySelectorAll('#page-wrapper'))
|
||||
.forEach(function(block) { block.classList.remove('has-warning'); });
|
||||
var elem = document.getElementById("draft-warning");
|
||||
elem.parentNode.removeChild(elem);
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
document.getElementById("hide-draft-warning").addEventListener("click", function(e) {
|
||||
var elem = document.getElementById("draft-warning");
|
||||
elem.parentNode.removeChild(elem);
|
||||
|
||||
localStorage.setItem('trpl-first-edition-draft-warning', 'hidden');
|
||||
});
|
||||
});
|
||||
</script>
|
|
@ -1,37 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="{{ language }}" class="no-js">
|
||||
<head>
|
||||
<!-- Book generated using mdBook -->
|
||||
<meta charset="UTF-8">
|
||||
<title>Outdated link: {{ title }}</title>
|
||||
<meta name="robots" content="noindex,follow">
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||||
|
||||
<base href="{{ path_to_root }}">
|
||||
|
||||
<link rel="stylesheet" href="book.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500" rel="stylesheet" type="text/css">
|
||||
|
||||
<link rel="stylesheet" href="highlight.css">
|
||||
<link rel="stylesheet" href="tomorrow-night.css">
|
||||
<link rel="stylesheet" href="ayu-highlight.css">
|
||||
|
||||
<!-- Custom theme stylesheets -->
|
||||
{{#each additional_css}}
|
||||
<link rel="stylesheet" href="{{this}}">
|
||||
{{/each}}
|
||||
</head>
|
||||
<body class="light">
|
||||
<div id="page-wrapper" class="page-wrapper">
|
||||
<div class="page">
|
||||
{{> header}}
|
||||
<div id="content" class="content">
|
||||
<main>
|
||||
{{{ content }}}
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,37 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="{{ language }}" class="no-js">
|
||||
<head>
|
||||
<!-- Book generated using mdBook -->
|
||||
<meta charset="UTF-8">
|
||||
<title>Outdated link: {{ title }}</title>
|
||||
<meta name="robots" content="noindex,follow">
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||||
|
||||
<base href="{{ path_to_root }}">
|
||||
|
||||
<link rel="stylesheet" href="book.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500" rel="stylesheet" type="text/css">
|
||||
|
||||
<link rel="stylesheet" href="highlight.css">
|
||||
<link rel="stylesheet" href="tomorrow-night.css">
|
||||
<link rel="stylesheet" href="ayu-highlight.css">
|
||||
|
||||
<!-- Custom theme stylesheets -->
|
||||
{{#each additional_css}}
|
||||
<link rel="stylesheet" href="{{this}}">
|
||||
{{/each}}
|
||||
</head>
|
||||
<body class="light">
|
||||
<div id="page-wrapper" class="page-wrapper">
|
||||
<div class="page">
|
||||
{{> header}}
|
||||
<div id="content" class="content">
|
||||
<main>
|
||||
{{{ content }}}
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue