File tree 4 files changed +84
-69
lines changed
4 files changed +84
-69
lines changed Original file line number Diff line number Diff line change 6
6
today=$( date +" %Y-%m-%d" )
7
7
8
8
npx docu-pdf https://docs.bloomlibrary.org \
9
- --coverTitle " Bloom Docs" \
10
- --coverSub " Created from docs.bloomlibrary.org on ${today} " \
9
+ --coverPath " ./pdf-cover.htm" \
11
10
--pageSize " A4" \
12
11
--outputPath " static/downloads/docs-bloomlibrary-english-a4.pdf" \
12
+ --tocLevel 1
13
13
14
14
# npx docu-pdf https://docs.bloomlibrary.org/fr \
15
15
# --coverTitle "Docs Bloom" \
Original file line number Diff line number Diff line change 31
31
"clsx" : " ^1.1.1" ,
32
32
"cross-var" : " ^1.1.0" ,
33
33
"docu-notion" : " latest" ,
34
- "docu-pdf" : " latest " ,
34
+ "docu-pdf" : " ^1.2.1 " ,
35
35
"prism-react-renderer" : " ^1.3.1" ,
36
36
"react" : " ^17.0.2" ,
37
37
"react-dom" : " ^17.0.2" ,
Original file line number Diff line number Diff line change
1
+ < div style ="page-break-after:always ">
2
+ < div style ="margin-top: 30%; text-align: center;font-family: sans-serif ">
3
+ < h1 > docs.BloomLibrary.org</ h1 >
4
+ <!-- <div>Snapshot from <span id="date"></span></div> -->
5
+ </ div >
6
+ <!-- this works in a full html, but didn't work when run through docu-pdf
7
+ <script>
8
+ date = new Date();
9
+ year = date.getFullYear();
10
+ month = date.getMonth() + 1;
11
+ day = date.getDate();
12
+ document.getElementById("date").innerHTML = year + "-" + month + "-" + day;
13
+
14
+ </script> -->
15
+
16
+ </ div >
You can’t perform that action at this time.
0 commit comments