Skip to content

Commit a5842a7

Browse files
committed
Print render
1 parent b2e04a8 commit a5842a7

File tree

6 files changed

+275
-356
lines changed

6 files changed

+275
-356
lines changed

build.ps1

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
bookgen build -a BuildWeb
2-
cd wwwRoot
3-
del search.html
4-
cd ..
2+
Set-Location docs
3+
Remove-Item search.html
4+
Set-Location ..
5+
bookgen md2html

docs/search.html

-239
This file was deleted.

docs/sitemap.xml

+23-23
Original file line numberDiff line numberDiff line change
@@ -2,94 +2,94 @@
22
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//010-basiccommands.html</loc>
5-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
5+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
66
</url>
77
<url>
88
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//020-project.html</loc>
9-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
9+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//030-powershell.html</loc>
13-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
13+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//035-csharpbasics.html</loc>
17-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
17+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//040-types.html</loc>
21-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
21+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//045-type-interfaces.html</loc>
25-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
25+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//060-strings.html</loc>
29-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
29+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
3030
</url>
3131
<url>
3232
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//070-exceptions.html</loc>
33-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
33+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
3434
</url>
3535
<url>
3636
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//075-generics.html</loc>
37-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
37+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
3838
</url>
3939
<url>
4040
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//080-collections.html</loc>
41-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
41+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
4242
</url>
4343
<url>
4444
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//090-linq.html</loc>
45-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
45+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
4646
</url>
4747
<url>
4848
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//100-paternmatch.html</loc>
49-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
49+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
5050
</url>
5151
<url>
5252
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//105-tasks.html</loc>
53-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
53+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
5454
</url>
5555
<url>
5656
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//110-io.html</loc>
57-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
57+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
5858
</url>
5959
<url>
6060
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//111-attribs.html</loc>
61-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
61+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
6262
</url>
6363
<url>
6464
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//112-serialization.html</loc>
65-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
65+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
6666
</url>
6767
<url>
6868
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//114-validation.html</loc>
69-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
69+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
7070
</url>
7171
<url>
7272
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//120-crypto.html</loc>
73-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
73+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
7474
</url>
7575
<url>
7676
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//130-reflection.html</loc>
77-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
77+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
7878
</url>
7979
<url>
8080
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//140-ui.html</loc>
81-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
81+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
8282
</url>
8383
<url>
8484
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//150-nuget.html</loc>
85-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
85+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
8686
</url>
8787
<url>
8888
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//index.html</loc>
89-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
89+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
9090
</url>
9191
<url>
9292
<loc>https://webmaster442.github.io/ultimatedotnetcheatsheet//search.html</loc>
93-
<lastmod>2024-09-16T17:09:02+02:00</lastmod>
93+
<lastmod>2024-09-16T19:15:21+02:00</lastmod>
9494
</url>
9595
</urlset>

frontend/TemplatePrint.html

+21-83
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,33 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html prefix="og: https://ogp.me/ns#">
33

44
<head>
55
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
8+
<link rel="icon" href="favicon.ico" type="image/x-icon" />
9+
<link rel="apple-touch-icon" sizes="180x180" href="pwa/apple-touch-icon.png">
10+
<link rel="preconnect" href="https://fonts.googleapis.com">
11+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12+
<link
13+
href="https://fonts.googleapis.com/css2?family=Alef:wght@400;700&family=JetBrains+Mono&family=Open+Sans:wght@700&display=swap"
14+
rel="stylesheet">
15+
<title>{{title}}</title>
616
<style type="text/css">
7-
@page {
8-
margin-top: 5mm;
9-
margin-bottom: 5mm;
10-
margin-left: 10mm;
11-
margin-right: 10mm;
12-
}
13-
14-
html {
15-
width: 250mm;
16-
height: 353mm;
17-
}
18-
19-
body {
20-
color: black;
21-
background: white;
22-
font-family: "Blogger Sans Light";
23-
font-size: 12pt;
24-
text-align: justify;
25-
}
26-
27-
h2 {
28-
page-break-before: always;
29-
}
30-
31-
img,
32-
svg {
33-
max-width: 235mm;
34-
max-height: 345mm;
35-
margin: 0 auto;
36-
display: inherit;
37-
/*border: 1px solid red;*/
38-
}
39-
40-
p,
41-
pre,
42-
code,
43-
table {
44-
break-inside: avoid;
45-
}
46-
47-
table {
48-
border-collapse: collapse;
49-
width: 100%;
50-
}
51-
52-
th,
53-
td {
54-
text-align: left;
55-
padding: 8px;
56-
}
57-
58-
tr:nth-child(even) {
59-
background-color: #f2f2f2;
60-
}
61-
62-
p code {
63-
color: #ad1a15;
64-
}
65-
66-
li code {
67-
color: #ad1a15;
68-
}
69-
70-
figure {
71-
page-break-inside: avoid;
72-
}
73-
74-
figcaption {
75-
font-style: italic;
76-
text-align: center;
77-
}
78-
79-
pre code {
80-
line-break: anywhere;
81-
overflow: hidden;
82-
}
83-
84-
:not(pre)>code[class*=language-],
85-
pre[class*=language-] {
86-
border: none;
87-
}
17+
{{css}}
8818
</style>
8919
</head>
9020

9121
<body>
92-
{{content}}
22+
23+
<div class="container">
24+
{{content}}
25+
</div>
26+
27+
<script type="text/javascript">
28+
window.print();
29+
</script>
30+
9331
</body>
9432

9533
</html>

0 commit comments

Comments
 (0)