mirror of
https://github.com/rust-lang/book.git
synced 2026-09-15 06:39:31 -04:00
* Adds the Source Code Pro font
* Adds the Ayu theme code highlight css
* Adds boilerplate for additional CSS and JS
* Adds boilerplate for google analytics
* Adds editable playpens js (if it's enabled?)
* Moves store.js to header scripts
* Propagates the use store.js change fully
* Adds Clipboard.js (Fixes console error)
* Changes MathJax URL (Fixes console warning / eventual error)
The diff between upstream (mdbook) and ours is now:
```diff
5c5
< <title>{{ title }}</title>
---
> <title>{{ chapter_title }} - {{ title }}</title>
29a30,95
> <style>
> .page-wrapper.has-warning > .nav-chapters {
> /* add height for warning content & margin */
> top: 120px;
> }
>
> p.warning {
> 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-top: 8px;
> }
> p.warning strong {
> color: rgb(185, 74, 72)
> }
> p.warning a {
> color: rgb(0, 136, 204)
> }
>
> a .hljs {
> color: #4183c4;
> }
>
> .rust .content a .hljs,
> .coal .content a .hljs,
> .navy .content a .hljs {
> color: #2b79a2;
> }
>
> a:hover .hljs {
> text-decoration: underline;
> }
>
> /* Styles keystrokes such as ctrl-C */
> .keystroke {
> font-variant: small-caps;
> }
> </style>
>
79c145
< <div id="page-wrapper" class="page-wrapper">
---
> <div id="page-wrapper" class="page-wrapper has-warning">
81a148
> <header><p class="warning">You are reading a <strong>draft</strong> of the next edition of TRPL. For more, go <a href="../index.html">here</a>.</p></header>
```