Skip to content

Commit 848aa8e

Browse files
committed
Update Markdeep version and break our style add-ons into separate docs.css.
1 parent 18c3a0c commit 848aa8e

4 files changed

Lines changed: 43 additions & 7 deletions

File tree

src/doc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
set (public_docs osl-languagespec.pdf
22
testshade.md.html
33
markdeep.min.js
4+
docs.css
45
)
56

67
install (FILES ${public_docs} DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT documentation)

src/doc/docs.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/* Custom stylesheet.
2+
* Bits copied from many sources, including those that come with Markdeep.
3+
*/
4+
5+
body {
6+
max-width: 50em;
7+
/*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
8+
text-align: left;
9+
margin: 1.5em;
10+
padding: 0 1em;
11+
}
12+
13+
/* if screen is wide enough, put table of contents on the right side */
14+
@media screen and (min-width: 64em) {
15+
.md .longTOC, .md .mediumTOC, .md .shortTOC {
16+
position: fixed;
17+
max-width: 20em;
18+
left: 54em;
19+
display:block;
20+
}
21+
}
22+
23+
/* for narrow screens or print, hide table of contents */
24+
@media screen and (max-width: 64em) {
25+
.md .longTOC, .md .mediumTOC, .md .shortTOC { display: none; }
26+
}
27+
28+
@media print {
29+
.md .longTOC, .md .mediumTOC, .md .shortTOC { display: none; }
30+
body { max-width: 100%; }
31+
}
32+
33+
/* For printed docs, put page breaks before chapters */
34+
@media print {
35+
h1, .nonumberh1 { page-break-before: always }
36+
}

src/doc/markdeep.min.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/doc/testshade.md.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,5 @@
10031003

10041004

10051005
<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="markdeep.min.js"></script><script src="https://casual-effects.com/markdeep/latest/markdeep.min.js?"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>
1006+
<link rel="stylesheet" href="docs.css?">
10061007

1007-
<style>
1008-
h1, .nonumberh1 { page-break-before: always }
1009-
</style>

0 commit comments

Comments
 (0)