Skip to content

Commit b2576f1

Browse files
update documentation
1 parent 3afd028 commit b2576f1

26 files changed

+12888
-1670
lines changed

_main.Rmd

+147-1,670
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* Styles for section anchors */
2+
a.anchor-section::before {content: '#';font-size: 80%;}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* Styles for section anchors content */
2+
/* From https://icons.getbootstrap.com/icons/link-45deg/
3+
Licence: https://github.com/twbs/icons/blob/main/LICENSE.md */
4+
5+
a.anchor-section:before {
6+
display: inline-block;
7+
content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-link-45deg' viewBox='0 0 16 16'><path d='M4.715 6.542L3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.001 1.001 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z'/><path d='M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 0 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 0 0-4.243-4.243L6.586 4.672z'/></svg>");
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* Styles for section anchors content */
2+
/* Link symbol : https://codepoints.net/U+1F517
3+
with variation selector https://graphemica.com/FE0E */
4+
a.anchor-section::before{content: '\01F517\00FE0E';font-size: 20px;}
5+
/* deactivate underline for link symbol */
6+
a.anchor-section:hover {text-decoration: none;}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* Styles for section anchors */
2+
a.anchor-section {margin-left: 10px; visibility: hidden; color: inherit;}
3+
.hasAnchor:hover a.anchor-section {visibility: visible;}
4+
ul > li > .anchor-section {display: none;}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
document.addEventListener('DOMContentLoaded', function () {
2+
// If section divs is used, we need to put the anchor in the child header
3+
const headers = document.querySelectorAll("div.hasAnchor.section[class*='level'] > :first-child")
4+
5+
headers.forEach(function (x) {
6+
// Add to the header node
7+
if (!x.classList.contains('hasAnchor')) x.classList.add('hasAnchor')
8+
// Remove from the section or div created by Pandoc
9+
x.parentElement.classList.remove('hasAnchor')
10+
})
11+
})
Binary file not shown.
+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
.book .book-header h1 {
2+
padding-left: 20px;
3+
padding-right: 20px;
4+
}
5+
.book .book-header.fixed {
6+
position: fixed;
7+
right: 0;
8+
top: 0;
9+
left: 0;
10+
border-bottom: 1px solid rgba(0,0,0,.07);
11+
}
12+
span.search-highlight {
13+
background-color: #ffff88;
14+
}
15+
@media (min-width: 600px) {
16+
.book.with-summary .book-header.fixed {
17+
left: 300px;
18+
}
19+
}
20+
@media (max-width: 1240px) {
21+
.book .book-body.fixed {
22+
top: 50px;
23+
}
24+
.book .book-body.fixed .body-inner {
25+
top: auto;
26+
}
27+
}
28+
@media (max-width: 600px) {
29+
.book.with-summary .book-header.fixed {
30+
left: calc(100% - 60px);
31+
min-width: 300px;
32+
}
33+
.book.with-summary .book-body {
34+
transform: none;
35+
left: calc(100% - 60px);
36+
min-width: 300px;
37+
}
38+
.book .book-body.fixed {
39+
top: 0;
40+
}
41+
}
42+
43+
.book .book-body.fixed .body-inner {
44+
top: 50px;
45+
}
46+
.book .book-body .page-wrapper .page-inner section.normal sub, .book .book-body .page-wrapper .page-inner section.normal sup {
47+
font-size: 85%;
48+
}
49+
50+
@media print {
51+
.book .book-summary, .book .book-body .book-header, .fa {
52+
display: none !important;
53+
}
54+
.book .book-body.fixed {
55+
left: 0px;
56+
}
57+
.book .book-body,.book .book-body .body-inner, .book.with-summary {
58+
overflow: visible !important;
59+
}
60+
}
61+
.kable_wrapper {
62+
border-spacing: 20px 0;
63+
border-collapse: separate;
64+
border: none;
65+
margin: auto;
66+
}
67+
.kable_wrapper > tbody > tr > td {
68+
vertical-align: top;
69+
}
70+
.book .book-body .page-wrapper .page-inner section.normal table tr.header {
71+
border-top-width: 2px;
72+
}
73+
.book .book-body .page-wrapper .page-inner section.normal table tr:last-child td {
74+
border-bottom-width: 2px;
75+
}
76+
.book .book-body .page-wrapper .page-inner section.normal table td, .book .book-body .page-wrapper .page-inner section.normal table th {
77+
border-left: none;
78+
border-right: none;
79+
}
80+
.book .book-body .page-wrapper .page-inner section.normal table.kable_wrapper > tbody > tr, .book .book-body .page-wrapper .page-inner section.normal table.kable_wrapper > tbody > tr > td {
81+
border-top: none;
82+
}
83+
.book .book-body .page-wrapper .page-inner section.normal table.kable_wrapper > tbody > tr:last-child > td {
84+
border-bottom: none;
85+
}
86+
87+
div.theorem, div.lemma, div.corollary, div.proposition, div.conjecture {
88+
font-style: italic;
89+
}
90+
span.theorem, span.lemma, span.corollary, span.proposition, span.conjecture {
91+
font-style: normal;
92+
}
93+
div.proof>*:last-child:after {
94+
content: "\25a2";
95+
float: right;
96+
}
97+
.header-section-number {
98+
padding-right: .5em;
99+
}
100+
#header .multi-author {
101+
margin: 0.5em 0 -0.5em 0;
102+
}
103+
#header .date {
104+
margin-top: 1.5em;
105+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
div.sourceCode {
2+
position: relative;
3+
}
4+
5+
.copy-to-clipboard-button {
6+
position: absolute;
7+
right: 0;
8+
top: 0;
9+
visibility: hidden;
10+
}
11+
12+
.copy-to-clipboard-button:focus {
13+
outline: 0;
14+
}
15+
16+
div.sourceCode:hover > .copy-to-clipboard-button {
17+
visibility: visible;
18+
}

0 commit comments

Comments
 (0)