gitpub-py 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gitpub_py/__init__.py +0 -0
- gitpub_py/assets/css/interface.css +180 -0
- gitpub_py/assets/css/parallel-flow.css +302 -0
- gitpub_py/assets/css/style.css +322 -0
- gitpub_py/assets/js/csstree.js +12209 -0
- gitpub_py/assets/js/paged-polyfill.js +33251 -0
- gitpub_py/assets/js/parallel-flows.js +741 -0
- gitpub_py/assets/templates/document.html +54 -0
- gitpub_py/assets/templates/template.html +48 -0
- gitpub_py/gitpub.py +310 -0
- gitpub_py-1.0.0.dist-info/METADATA +74 -0
- gitpub_py-1.0.0.dist-info/RECORD +15 -0
- gitpub_py-1.0.0.dist-info/WHEEL +4 -0
- gitpub_py-1.0.0.dist-info/entry_points.txt +3 -0
- gitpub_py-1.0.0.dist-info/licenses/LICENSE +121 -0
gitpub_py/__init__.py
ADDED
|
File without changes
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/* CSS for Paged.js interface – v0.4 */
|
|
2
|
+
|
|
3
|
+
/* Change the look */
|
|
4
|
+
:root {
|
|
5
|
+
--color-background: whitesmoke;
|
|
6
|
+
--color-pageSheet: #cfcfcf;
|
|
7
|
+
--color-pageBox: violet;
|
|
8
|
+
--color-paper: white;
|
|
9
|
+
--color-marginBox: /* lightgray */ transparent;
|
|
10
|
+
--pagedjs-crop-color: black;
|
|
11
|
+
--pagedjs-crop-shadow: white;
|
|
12
|
+
--pagedjs-crop-stroke: 1px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* To define how the book look on the screen: */
|
|
16
|
+
@media screen, pagedjs-ignore {
|
|
17
|
+
body {
|
|
18
|
+
background-color: var(--color-background);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pagedjs_pages {
|
|
22
|
+
display: flex;
|
|
23
|
+
width: calc(var(--pagedjs-width) * 2);
|
|
24
|
+
flex: 0;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
margin: 0 auto;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pagedjs_page {
|
|
30
|
+
background-color: var(--color-paper);
|
|
31
|
+
box-shadow: 0 0 0 1px var(--color-pageSheet);
|
|
32
|
+
margin: 0;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
flex-grow: 0;
|
|
35
|
+
margin-top: 10mm;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.pagedjs_first_page {
|
|
39
|
+
margin-left: var(--pagedjs-width);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.pagedjs_page:last-of-type {
|
|
43
|
+
margin-bottom: 10mm;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.pagedjs_pagebox{
|
|
47
|
+
box-shadow: 0 0 0 1px var(--color-pageBox);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pagedjs_left_page{
|
|
51
|
+
z-index: 20;
|
|
52
|
+
width: calc(var(--pagedjs-bleed-left) + var(--pagedjs-pagebox-width))!important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-crop {
|
|
56
|
+
border-color: transparent;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-middle{
|
|
60
|
+
width: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.pagedjs_right_page{
|
|
64
|
+
z-index: 10;
|
|
65
|
+
position: relative;
|
|
66
|
+
left: calc(var(--pagedjs-bleed-left)*-1);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* show the margin-box */
|
|
70
|
+
|
|
71
|
+
.pagedjs_margin-top-left-corner-holder,
|
|
72
|
+
.pagedjs_margin-top,
|
|
73
|
+
.pagedjs_margin-top-left,
|
|
74
|
+
.pagedjs_margin-top-center,
|
|
75
|
+
.pagedjs_margin-top-right,
|
|
76
|
+
.pagedjs_margin-top-right-corner-holder,
|
|
77
|
+
.pagedjs_margin-bottom-left-corner-holder,
|
|
78
|
+
.pagedjs_margin-bottom,
|
|
79
|
+
.pagedjs_margin-bottom-left,
|
|
80
|
+
.pagedjs_margin-bottom-center,
|
|
81
|
+
.pagedjs_margin-bottom-right,
|
|
82
|
+
.pagedjs_margin-bottom-right-corner-holder,
|
|
83
|
+
.pagedjs_margin-right,
|
|
84
|
+
.pagedjs_margin-right-top,
|
|
85
|
+
.pagedjs_margin-right-middle,
|
|
86
|
+
.pagedjs_margin-right-bottom,
|
|
87
|
+
.pagedjs_margin-left,
|
|
88
|
+
.pagedjs_margin-left-top,
|
|
89
|
+
.pagedjs_margin-left-middle,
|
|
90
|
+
.pagedjs_margin-left-bottom {
|
|
91
|
+
box-shadow: 0 0 0 1px inset var(--color-marginBox);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* uncomment this part for recto/verso book : ------------------------------------ */
|
|
95
|
+
|
|
96
|
+
/*
|
|
97
|
+
.pagedjs_pages {
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
width: 100%;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.pagedjs_first_page {
|
|
103
|
+
margin-left: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.pagedjs_page {
|
|
107
|
+
margin: 0 auto;
|
|
108
|
+
margin-top: 10mm;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.pagedjs_left_page{
|
|
112
|
+
width: calc(var(--pagedjs-bleed-left) + var(--pagedjs-pagebox-width) + var(--pagedjs-bleed-left))!important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-crop{
|
|
116
|
+
border-color: var(--pagedjs-crop-color);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-middle{
|
|
120
|
+
width: var(--pagedjs-cross-size)!important;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.pagedjs_right_page{
|
|
124
|
+
left: 0;
|
|
125
|
+
}
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/*--------------------------------------------------------------------------------------*/
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/* uncomment this par to see the baseline : -------------------------------------------*/
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
/* .pagedjs_pagebox {
|
|
138
|
+
--pagedjs-baseline: 22px;
|
|
139
|
+
--pagedjs-baseline-position: 5px;
|
|
140
|
+
--pagedjs-baseline-color: cyan;
|
|
141
|
+
background: linear-gradient(transparent 0%, transparent calc(var(--pagedjs-baseline) - 1px), var(--pagedjs-baseline-color) calc(var(--pagedjs-baseline) - 1px), var(--pagedjs-baseline-color) var(--pagedjs-baseline)), transparent;
|
|
142
|
+
background-size: 100% var(--pagedjs-baseline);
|
|
143
|
+
background-repeat: repeat-y;
|
|
144
|
+
background-position-y: var(--pagedjs-baseline-position);
|
|
145
|
+
} */
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
/*--------------------------------------------------------------------------------------*/
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
/* Marks (to delete when merge in paged.js) */
|
|
156
|
+
|
|
157
|
+
.pagedjs_marks-crop{
|
|
158
|
+
z-index: 999999999999;
|
|
159
|
+
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.pagedjs_bleed-top .pagedjs_marks-crop,
|
|
163
|
+
.pagedjs_bleed-bottom .pagedjs_marks-crop{
|
|
164
|
+
box-shadow: 1px 0px 0px 0px var(--pagedjs-crop-shadow);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.pagedjs_bleed-top .pagedjs_marks-crop:last-child,
|
|
168
|
+
.pagedjs_bleed-bottom .pagedjs_marks-crop:last-child{
|
|
169
|
+
box-shadow: -1px 0px 0px 0px var(--pagedjs-crop-shadow);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.pagedjs_bleed-left .pagedjs_marks-crop,
|
|
173
|
+
.pagedjs_bleed-right .pagedjs_marks-crop{
|
|
174
|
+
box-shadow: 0px 1px 0px 0px var(--pagedjs-crop-shadow);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.pagedjs_bleed-left .pagedjs_marks-crop:last-child,
|
|
178
|
+
.pagedjs_bleed-right .pagedjs_marks-crop:last-child{
|
|
179
|
+
box-shadow: 0px -1px 0px 0px var(--pagedjs-crop-shadow);
|
|
180
|
+
}
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/* ++++++++++++++++++++++ */
|
|
2
|
+
/* +++++ variables ++++++ */
|
|
3
|
+
/* ++++++++++++++++++++++ */
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--small-font: 6pt;
|
|
7
|
+
--text-font: 9pt;
|
|
8
|
+
--small-header: 12pt;
|
|
9
|
+
--big-header: 16pt;
|
|
10
|
+
|
|
11
|
+
--text-font-family: 'Times New Roman', Times, serif;
|
|
12
|
+
--mono-font-family: 'Courier New', Courier, monospace;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/* ::::::::::::::::::::::: */
|
|
18
|
+
/* ::::: page styles ::::: */
|
|
19
|
+
/* ::::::::::::::::::::::: */
|
|
20
|
+
|
|
21
|
+
@page {
|
|
22
|
+
size: A5 portrait;
|
|
23
|
+
margin-top: 1.5cm;
|
|
24
|
+
margin-bottom: 1.5cm;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@page :right {
|
|
28
|
+
margin-left: 2.5cm; /*inner*/
|
|
29
|
+
margin-right: .5cm; /*outer*/
|
|
30
|
+
|
|
31
|
+
@bottom-right {
|
|
32
|
+
content: counter(page);
|
|
33
|
+
margin: 10pt 0 50pt 0;
|
|
34
|
+
font-family: var(--text-font-family);
|
|
35
|
+
font-size: var(--small-font);
|
|
36
|
+
font-weight: bold;
|
|
37
|
+
padding-right: 30%; /* to align it with main column */
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@top-right {
|
|
41
|
+
content: string(title); /* running header */
|
|
42
|
+
font-size: var(--small-font);
|
|
43
|
+
font-weight: bold;
|
|
44
|
+
padding-right: 30%; /* to align it with main column */
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@page :left {
|
|
50
|
+
margin-right: 2.5cm; /*inner*/
|
|
51
|
+
margin-left: .5cm; /*outer*/
|
|
52
|
+
|
|
53
|
+
@bottom-left {
|
|
54
|
+
content: counter(page);
|
|
55
|
+
margin: 10pt 0 50pt 0;
|
|
56
|
+
font-family: var(--text-font-family);
|
|
57
|
+
font-size: var(--small-font);
|
|
58
|
+
font-weight: bold;
|
|
59
|
+
padding-left: 30%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@top-left {
|
|
63
|
+
content: string(title); /* running header */
|
|
64
|
+
font-size: var(--small-font);
|
|
65
|
+
font-weight: bold;
|
|
66
|
+
padding-left: 30%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@page :first {
|
|
72
|
+
margin: 1.5cm;
|
|
73
|
+
|
|
74
|
+
@bottom-right {
|
|
75
|
+
content: ""; /* no page numbers on first page */
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@bottom-left {
|
|
79
|
+
content: ""; /* no page numbers on first page */
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/* :::::::::::::::::::::::: */
|
|
86
|
+
/* :::: general styles :::: */
|
|
87
|
+
/* :::::::::::::::::::::::: */
|
|
88
|
+
|
|
89
|
+
body {
|
|
90
|
+
counter-reset: toc-head;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
h1 {
|
|
94
|
+
font-size: var(--big-header);
|
|
95
|
+
break-after: avoid;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
h1.file-header {
|
|
99
|
+
font-family: var(--mono-font-family);
|
|
100
|
+
text-transform: uppercase;
|
|
101
|
+
font-weight: normal;
|
|
102
|
+
margin-top: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
h1.file-header:not(#cover-page h1) {
|
|
106
|
+
string-set: title content(text);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
h2 {
|
|
110
|
+
font-size: var(--small-header);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
p, li, dl {
|
|
114
|
+
font-size: var(--text-font);
|
|
115
|
+
line-height: 1.35;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
pre {
|
|
119
|
+
font-size: var(--small-font);
|
|
120
|
+
overflow-wrap: break-word;
|
|
121
|
+
white-space: break-spaces;
|
|
122
|
+
width: 100%;
|
|
123
|
+
margin: 5em 0;
|
|
124
|
+
|
|
125
|
+
code {
|
|
126
|
+
break-inside: avoid;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
p {
|
|
131
|
+
hyphens: auto;
|
|
132
|
+
word-wrap: break-word;
|
|
133
|
+
white-space: wrap;
|
|
134
|
+
overflow-wrap: break-word;
|
|
135
|
+
|
|
136
|
+
code {
|
|
137
|
+
font-size: var(--text-font);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
a {
|
|
142
|
+
color: black;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
img {
|
|
146
|
+
display: block;
|
|
147
|
+
/* max-width: 100%; */
|
|
148
|
+
width: 60%;
|
|
149
|
+
height: auto;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
figcaption {
|
|
153
|
+
font-size: var(--small-font);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
/* :::::::::::::::::::::::: */
|
|
159
|
+
/* ::::: cover styles ::::: */
|
|
160
|
+
/* :::::::::::::::::::::::: */
|
|
161
|
+
|
|
162
|
+
#cover-page {
|
|
163
|
+
h1 {
|
|
164
|
+
text-align: center;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
/* :::::::::::::::::::::::::: */
|
|
171
|
+
/* :::: table of content :::: */
|
|
172
|
+
/* :::::::::::::::::::::::::: */
|
|
173
|
+
|
|
174
|
+
/* toc styling for 2 level list */
|
|
175
|
+
|
|
176
|
+
#toc {
|
|
177
|
+
break-before: right;
|
|
178
|
+
break-after: page;
|
|
179
|
+
list-style-type: none;
|
|
180
|
+
padding: 0;
|
|
181
|
+
font-family: var(--mono-font-family);
|
|
182
|
+
|
|
183
|
+
/* add a headline to the toc */
|
|
184
|
+
&::before {
|
|
185
|
+
content: "Index";
|
|
186
|
+
font-family: var(--mono-font-family);
|
|
187
|
+
text-transform: uppercase;
|
|
188
|
+
font-size: var(--big-header);
|
|
189
|
+
margin-bottom: 0.67em; /* browser default h1 bottom margin */
|
|
190
|
+
display: block;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* add numbers and indentation */
|
|
194
|
+
li.toc-heading::before {
|
|
195
|
+
counter-increment: toc-head;
|
|
196
|
+
content: counter(toc-head) ". ";
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
li.toc-heading + li.toc-sub {
|
|
200
|
+
counter-reset: toc-sub;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
li.toc-sub {
|
|
204
|
+
margin-left: 1cm;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
li.toc-sub::before {
|
|
208
|
+
counter-increment: toc-sub;
|
|
209
|
+
content: counter(toc-head) "." counter(toc-sub) " ";
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
li a {
|
|
213
|
+
text-decoration: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
/* ::::::::::::::::::::::::: */
|
|
221
|
+
/* :::: metadata styles :::: */
|
|
222
|
+
/* ::::::::::::::::::::::::: */
|
|
223
|
+
|
|
224
|
+
/* sync metadata with main column by this element */
|
|
225
|
+
.file-header {
|
|
226
|
+
--paged-parallel-sync: meta;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
#all-main {
|
|
230
|
+
--parallel-flow: meta;
|
|
231
|
+
width: 70%;
|
|
232
|
+
position: absolute;
|
|
233
|
+
break-before: page;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
#all-meta {
|
|
237
|
+
--parallel-flow: meta;
|
|
238
|
+
width: 30%;
|
|
239
|
+
break-before: page;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* place metadata on the outside margin always */
|
|
243
|
+
.pagedjs_right_page #all-main {
|
|
244
|
+
left: 0 !important;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.pagedjs_right_page #all-meta {
|
|
248
|
+
text-align: left;
|
|
249
|
+
margin-left: 70% !important;
|
|
250
|
+
left: 0 !important;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.pagedjs_left_page #all-main {
|
|
254
|
+
left: 30% !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.pagedjs_left_page #all-meta {
|
|
258
|
+
left: 0 !important;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.metablock {
|
|
262
|
+
margin: .25cm;
|
|
263
|
+
margin-top: 0;
|
|
264
|
+
margin-bottom: .5cm;
|
|
265
|
+
break-inside: avoid;
|
|
266
|
+
font-family: var(--mono-font-family);
|
|
267
|
+
|
|
268
|
+
p {
|
|
269
|
+
margin: 0;
|
|
270
|
+
font-size: var(--small-font);
|
|
271
|
+
|
|
272
|
+
span {
|
|
273
|
+
font-family: var(--text-font-family);
|
|
274
|
+
font-size: var(--small-font);
|
|
275
|
+
vertical-align: super;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
ul {
|
|
280
|
+
margin: 0;
|
|
281
|
+
list-style-type: circle;
|
|
282
|
+
width: 30%;
|
|
283
|
+
|
|
284
|
+
li {
|
|
285
|
+
font-size: var(--small-font);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
/* render references for all files not individual */
|
|
292
|
+
.references {
|
|
293
|
+
display: none;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
#references + .references {
|
|
297
|
+
display: block !important;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.csl-entry {
|
|
301
|
+
font-size: var(--text-font);
|
|
302
|
+
}
|