Skip to content

Commit a09fc23

Browse files
committed
Meta: add PDF printing CSS
1 parent 7a9a9b6 commit a09fc23

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build-es2019": "git remote remove origin && git remote add origin \"git@github.com:$TRAVIS_REPO_SLUG.git\" && git fetch --quiet origin && git checkout --quiet es2019 && mkdir \"out/2019\" && cp -R img \"out/2019\" && ecmarkup --verbose spec.html out/2019/index.html --css out/2019/ecmarkup.css --js out/2019/ecmarkup.js && git checkout --quiet test-travis",
88
"build-master": "mkdir out && cp -R img out && ecmarkup --verbose spec.html out/index.html --css out/ecmarkup.css --js out/ecmarkup.js",
99
"build": "npm run clean && npm run build-master",
10+
"build-for-pdf": "npm run build -- -- -- --old-toc",
1011
"build-travis": "npm run clean && npm run build-master && npm run build-es2019",
1112
"clean": "rm -rf out",
1213
"test": "exit 0",

spec.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
<script src="ecmarkup.js"></script>
77
<style>
88
/* custom styles */
9+
@media print {
10+
/* for the PDF */
11+
body.oldtoc {
12+
font-size: 80%;
13+
}
14+
.oldtoc var {
15+
color: #197124;
16+
}
17+
}
918
#metadata-block {
1019
margin: 4em 0;
1120
padding: 10px;
@@ -22508,7 +22517,7 @@ <h1>InitializeEnvironment ( ) Concrete Method</h1>
2250822517
1. Return NormalCompletion(~empty~).
2250922518
</emu-alg>
2251022519
</emu-clause>
22511-
22520+
2251222521
<emu-clause id="sec-source-text-module-record-execute-module" aoid="ExecuteModule">
2251322522
<h1>ExecuteModule ( ) Concrete Method</h1>
2251422523

0 commit comments

Comments
 (0)