writr 1.9.12 → 2.0.0

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.
Files changed (133) hide show
  1. package/README.md +76 -135
  2. package/bin/writr.mjs +8 -0
  3. package/dist/builder.d.ts +33 -0
  4. package/dist/builder.js +181 -0
  5. package/dist/console.d.ts +22 -0
  6. package/dist/console.js +120 -0
  7. package/dist/github.d.ts +22 -0
  8. package/dist/github.js +74 -0
  9. package/dist/helpers/markdown.d.ts +10 -0
  10. package/dist/helpers/markdown.js +24 -0
  11. package/dist/helpers.d.ts +7 -0
  12. package/dist/helpers.js +58 -0
  13. package/dist/options.d.ts +12 -0
  14. package/dist/options.js +47 -0
  15. package/dist/writr.d.ts +23 -0
  16. package/dist/writr.js +153 -0
  17. package/init/favicon.svg +1 -0
  18. package/init/logo.png +0 -0
  19. package/init/variables.css +30 -0
  20. package/init/writr.config.cjs +10 -0
  21. package/package.json +44 -66
  22. package/template/css/highlight/highlight.min.js +1433 -0
  23. package/template/css/highlight/styles/base16/dracula.min.css +7 -0
  24. package/template/css/home.css +307 -0
  25. package/template/css/index.css +919 -0
  26. package/template/includes/footer.hbs +10 -0
  27. package/template/includes/header.hbs +17 -0
  28. package/template/includes/landing/content.hbs +63 -0
  29. package/template/includes/landing/hero.hbs +3 -0
  30. package/template/includes/scripts.hbs +4 -0
  31. package/template/index.hbs +16 -0
  32. package/template/releases.hbs +45 -0
  33. package/bin/writr.js +0 -7
  34. package/dist/cache.d.ts +0 -18
  35. package/dist/cache.js +0 -70
  36. package/dist/cache.js.map +0 -1
  37. package/dist/config.d.ts +0 -29
  38. package/dist/config.js +0 -104
  39. package/dist/config.js.map +0 -1
  40. package/dist/data/dataProviderInterface.d.ts +0 -12
  41. package/dist/data/dataProviderInterface.js +0 -2
  42. package/dist/data/dataProviderInterface.js.map +0 -1
  43. package/dist/data/dataService.d.ts +0 -19
  44. package/dist/data/dataService.js +0 -130
  45. package/dist/data/dataService.js.map +0 -1
  46. package/dist/data/fileDataProvider.d.ts +0 -20
  47. package/dist/data/fileDataProvider.js +0 -132
  48. package/dist/data/fileDataProvider.js.map +0 -1
  49. package/dist/generator.d.ts +0 -8
  50. package/dist/generator.js +0 -54
  51. package/dist/generator.js.map +0 -1
  52. package/dist/index.d.ts +0 -8
  53. package/dist/index.js +0 -80
  54. package/dist/index.js.map +0 -1
  55. package/dist/log.d.ts +0 -6
  56. package/dist/log.js +0 -13
  57. package/dist/log.js.map +0 -1
  58. package/dist/migrate/ghostMigrationProvider.d.ts +0 -9
  59. package/dist/migrate/ghostMigrationProvider.js +0 -65
  60. package/dist/migrate/ghostMigrationProvider.js.map +0 -1
  61. package/dist/migrate/jekyllMigrationProvider.d.ts +0 -4
  62. package/dist/migrate/jekyllMigrationProvider.js +0 -11
  63. package/dist/migrate/jekyllMigrationProvider.js.map +0 -1
  64. package/dist/migrate/mediumMigrationProvider.d.ts +0 -7
  65. package/dist/migrate/mediumMigrationProvider.js +0 -26
  66. package/dist/migrate/mediumMigrationProvider.js.map +0 -1
  67. package/dist/migrate/migrationProviderInterface.d.ts +0 -3
  68. package/dist/migrate/migrationProviderInterface.js +0 -2
  69. package/dist/migrate/migrationProviderInterface.js.map +0 -1
  70. package/dist/migrate/wordpressMigrationProvider.d.ts +0 -12
  71. package/dist/migrate/wordpressMigrationProvider.js +0 -103
  72. package/dist/migrate/wordpressMigrationProvider.js.map +0 -1
  73. package/dist/migrate.d.ts +0 -6
  74. package/dist/migrate.js +0 -34
  75. package/dist/migrate.js.map +0 -1
  76. package/dist/post.d.ts +0 -31
  77. package/dist/post.js +0 -189
  78. package/dist/post.js.map +0 -1
  79. package/dist/render/atomRenderProvider.d.ts +0 -8
  80. package/dist/render/atomRenderProvider.js +0 -51
  81. package/dist/render/atomRenderProvider.js.map +0 -1
  82. package/dist/render/htmRenderlProvider.d.ts +0 -14
  83. package/dist/render/htmRenderlProvider.js +0 -117
  84. package/dist/render/htmRenderlProvider.js.map +0 -1
  85. package/dist/render/imageRenderProvider.d.ts +0 -8
  86. package/dist/render/imageRenderProvider.js +0 -15
  87. package/dist/render/imageRenderProvider.js.map +0 -1
  88. package/dist/render/jsonRenderProvider.d.ts +0 -8
  89. package/dist/render/jsonRenderProvider.js +0 -24
  90. package/dist/render/jsonRenderProvider.js.map +0 -1
  91. package/dist/render/renderProviderInterface.d.ts +0 -5
  92. package/dist/render/renderProviderInterface.js +0 -2
  93. package/dist/render/renderProviderInterface.js.map +0 -1
  94. package/dist/serve.d.ts +0 -16
  95. package/dist/serve.js +0 -29
  96. package/dist/serve.js.map +0 -1
  97. package/dist/storage/fileStorageProvider.d.ts +0 -10
  98. package/dist/storage/fileStorageProvider.js +0 -62
  99. package/dist/storage/fileStorageProvider.js.map +0 -1
  100. package/dist/storage/storageProviderInterface.d.ts +0 -8
  101. package/dist/storage/storageProviderInterface.js +0 -2
  102. package/dist/storage/storageProviderInterface.js.map +0 -1
  103. package/dist/storage/storageService.d.ts +0 -12
  104. package/dist/storage/storageService.js +0 -28
  105. package/dist/storage/storageService.js.map +0 -1
  106. package/dist/tag.d.ts +0 -9
  107. package/dist/tag.js +0 -34
  108. package/dist/tag.js.map +0 -1
  109. package/dist/utils/parser.d.ts +0 -5
  110. package/dist/utils/parser.js +0 -37
  111. package/dist/utils/parser.js.map +0 -1
  112. package/dist/utils/setup.d.ts +0 -8
  113. package/dist/utils/setup.js +0 -75
  114. package/dist/utils/setup.js.map +0 -1
  115. package/init/article-complex.md +0 -40
  116. package/init/article-ejs.md +0 -40
  117. package/init/article-unpublished.md +0 -11
  118. package/init/article1-simple.md +0 -13
  119. package/init/article1.md +0 -11
  120. package/init/article2.md +0 -14
  121. package/init/big-content.md +0 -11
  122. package/init/config.json +0 -9
  123. package/init/images/Introducing Docula 1.png +0 -0
  124. package/init/images/Introducing Docula 2.jpeg +0 -0
  125. package/init/images/Introducing Docula 3.png +0 -0
  126. package/init/images/Introducing Docula 4.png +0 -0
  127. package/init/permalink-test.md +0 -13
  128. package/init/templates/index.hjs +0 -13
  129. package/init/templates/partials/header.hjs +0 -2
  130. package/init/templates/post.hjs +0 -19
  131. package/init/templates/post2.hjs +0 -17
  132. package/init/templates/post3.ejs +0 -7
  133. package/init/templates/tag.hjs +0 -9
@@ -0,0 +1,7 @@
1
+ /*!
2
+ Theme: Dracula
3
+ Author: Mike Barkmin (http://github.com/mikebarkmin) based on Dracula Theme (http://github.com/dracula)
4
+ License: ~ MIT (or more permissive) [via base16-schemes-source]
5
+ Maintainer: @highlightjs/core-team
6
+ Version: 2021.09.0
7
+ */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#e9e9f4;background:#282936}.hljs ::selection,.hljs::selection{background-color:#4d4f68;color:#e9e9f4}.hljs-comment{color:#626483}.hljs-tag{color:#62d6e8}.hljs-operator,.hljs-punctuation,.hljs-subst{color:#e9e9f4}.hljs-operator{opacity:.7}.hljs-bullet,.hljs-deletion,.hljs-name,.hljs-selector-tag,.hljs-template-variable,.hljs-variable{color:#ea51b2}.hljs-attr,.hljs-link,.hljs-literal,.hljs-number,.hljs-symbol,.hljs-variable.constant_{color:#b45bcf}.hljs-class .hljs-title,.hljs-title,.hljs-title.class_{color:#00f769}.hljs-strong{font-weight:700;color:#00f769}.hljs-addition,.hljs-code,.hljs-string,.hljs-title.class_.inherited__{color:#ebff87}.hljs-built_in,.hljs-doctag,.hljs-keyword.hljs-atrule,.hljs-quote,.hljs-regexp{color:#a1efe4}.hljs-attribute,.hljs-function .hljs-title,.hljs-section,.hljs-title.function_,.ruby .hljs-property{color:#62d6e8}.diff .hljs-meta,.hljs-keyword,.hljs-template-tag,.hljs-type{color:#b45bcf}.hljs-emphasis{color:#b45bcf;font-style:italic}.hljs-meta,.hljs-meta .hljs-keyword,.hljs-meta .hljs-string{color:#00f769}.hljs-meta .hljs-keyword,.hljs-meta-keyword{font-weight:700}
@@ -0,0 +1,307 @@
1
+ .header-logo {
2
+ margin-right: 30px;
3
+ }
4
+
5
+ .home-header {
6
+ position: sticky;
7
+ background-color: var(--home-background);
8
+ border-bottom: 1px solid var(--border);
9
+ }
10
+
11
+ .home-hero {
12
+ display: flex;
13
+ justify-content: center;
14
+ height: 20vh;
15
+ background-color: var(--home-background)
16
+ }
17
+
18
+ .home-container {
19
+ max-width: 90%;
20
+ margin: 0 auto;
21
+ color: var(--color-text);
22
+ }
23
+
24
+ .home-container h1 {
25
+ font-weight: 500;
26
+ font-size: 28px;
27
+ }
28
+
29
+ .home-title {
30
+ text-align: center;
31
+ margin-bottom: 32px;
32
+ font-size: 30px;
33
+ background: linear-gradient(30deg, var(--color-primary) 40%, var(--color-secondary-dark) 70%);
34
+ background-clip: text;
35
+ -webkit-background-clip: text;
36
+ color: transparent;
37
+ }
38
+
39
+ .home-docs-button {
40
+ padding: 12px 24px;
41
+ border: 2px solid var(--color-secondary-dark);
42
+ border-radius: 8px;
43
+ color: var(--color-secondary-dark);
44
+ font-weight: 600;
45
+ }
46
+
47
+ .home-hero {
48
+ text-align: center;
49
+ }
50
+
51
+ .home-hero img {
52
+ width: 100%;
53
+ max-width: 200px;
54
+ }
55
+
56
+ .github-fork-ribbon {
57
+ position: fixed !important;
58
+ }
59
+
60
+ .github-fork-ribbon:before {
61
+ background-color: var(--color-primary) !important;
62
+ }
63
+
64
+ .content-container {
65
+ margin: 96px 0;
66
+ }
67
+
68
+ .facepile-container {
69
+ display: flex;
70
+ flex-wrap: wrap;
71
+ justify-content: center;
72
+ }
73
+
74
+ .facepile {
75
+ line-height: 2;
76
+ padding: 0 0 0 25px;
77
+ }
78
+
79
+ .facepile > a {
80
+ display: inline-block;
81
+ margin-left: -25px;
82
+ transition: opacity .3s;
83
+ opacity: .9;
84
+ color: var(--background);
85
+ }
86
+
87
+ .facepile img {
88
+ border-radius: 50%;
89
+ width: calc(30px + 5vw);
90
+ height: calc(30px + 5vw);
91
+ max-width: 60px;
92
+ max-height: 60px;
93
+ margin-bottom: 6px;
94
+ background-color: #ffffff;
95
+ border: 2px solid;
96
+ transition: border .3s;
97
+ object-fit: cover;
98
+ vertical-align: middle;
99
+ display: inline-block;
100
+ }
101
+
102
+
103
+ .facepile > a:hover {
104
+ opacity: 1;
105
+ position: relative;
106
+ z-index: 1;
107
+ }
108
+
109
+ .release {
110
+ overflow: hidden;
111
+ width: 100%;
112
+ line-break: anywhere;
113
+ margin-top: 32px;
114
+ color: var(--color-text);
115
+ }
116
+
117
+ .release-header {
118
+ margin-bottom: 16px;
119
+ }
120
+
121
+ .release-title {
122
+ font-size: 22px;
123
+ color: var(--color-primary);
124
+ font-weight: 700;
125
+ transition: color .3s;
126
+ display: block;
127
+ }
128
+
129
+ .release-title:hover {
130
+ color: var(--color-secondary-dark);
131
+ }
132
+
133
+ .release-date {
134
+ font-size: 12px;
135
+ }
136
+
137
+ .release-btn {
138
+ padding: 12px;
139
+ border-radius: 8px;
140
+ border: 2px solid var(--color-secondary);
141
+ color: var(--color-secondary);
142
+ width: fit-content;
143
+ margin-top: 32px;
144
+ display: block;
145
+ }
146
+
147
+ .release-btn span {
148
+ margin-left: 8px;
149
+ font-size: 12px;
150
+ transition: margin-left .3s;
151
+ }
152
+
153
+ .release-btn:hover span {
154
+ margin-left: 16px;
155
+ }
156
+
157
+ .release-body p {
158
+ margin: 8px 0;
159
+ }
160
+
161
+ .release-body pre {
162
+ margin-bottom: 32px;
163
+ }
164
+
165
+ .release-body h1 {
166
+ font-size: 22px;
167
+ margin-bottom: 16px;
168
+ }
169
+
170
+ .release-body h2 {
171
+ font-size: 18px;
172
+ margin-top: 28px;
173
+ margin-bottom: 16px;
174
+ }
175
+
176
+ .release-body ul {
177
+ padding-left: 16px;
178
+ }
179
+
180
+ .release-body ul > li {
181
+ margin-bottom: 12px;
182
+ }
183
+
184
+ .release-body ul > li a {
185
+ text-decoration: underline;
186
+ }
187
+
188
+ footer {
189
+ height: 64px;
190
+ display: flex;
191
+ justify-content: center;
192
+ align-items: center;
193
+ border-top: 1px solid var(--border);
194
+ width: 100%;
195
+ }
196
+
197
+ footer img {
198
+ margin-left: 8px;
199
+ margin-top: 4px;
200
+ }
201
+
202
+ @media screen and (min-width: 640px) {
203
+ .home-container {
204
+ max-width: 82%;
205
+ }
206
+ }
207
+
208
+
209
+ @media screen and (min-width: 768px) {
210
+ .home-hero {
211
+ height: 40vh;
212
+ }
213
+
214
+ .header-logo {
215
+ margin-right: 56px;
216
+ }
217
+
218
+ .home-hero img {
219
+ max-width: 340px;
220
+ }
221
+
222
+ .content-container {
223
+ margin: 96px 0;
224
+ }
225
+
226
+ .versions-container {
227
+ margin: 72px 0;
228
+ }
229
+
230
+ .release {
231
+ margin-bottom: 64px;
232
+ }
233
+ }
234
+
235
+
236
+ @media screen and (min-width: 992px) {
237
+ .home-container {
238
+ max-width: 70%;
239
+ }
240
+
241
+ .home-container h1 {
242
+ font-size: 32px;
243
+ }
244
+
245
+ .home-docs-button {
246
+ font-size: 24px;
247
+ }
248
+
249
+ .nav {
250
+ padding-right: 56px;
251
+ width: 100%;
252
+ justify-content: space-between;
253
+ }
254
+
255
+ .header-content {
256
+ height: 72px;
257
+ }
258
+
259
+ .home-hero img {
260
+ max-width: 600px;
261
+ }
262
+
263
+ .home-title {
264
+ margin-bottom: 64px;
265
+ font-size: 48px;
266
+ }
267
+
268
+ .content-container {
269
+ margin: 120px 0;
270
+ }
271
+
272
+ .release-btn {
273
+ margin-top: 0;
274
+ }
275
+
276
+ footer {
277
+ height: 76px;
278
+ }
279
+
280
+ footer img {
281
+ height: 28px;
282
+ width: auto;
283
+ }
284
+ }
285
+
286
+ @media screen and (min-width: 1200px) {
287
+ .home-container {
288
+ max-width: 950px;
289
+ }
290
+
291
+ .content-container {
292
+ margin: 160px 0;
293
+ }
294
+
295
+ .versions-container {
296
+ margin: 120px 0;
297
+ }
298
+
299
+ .facepile > a {
300
+ margin-left: -30px;
301
+ }
302
+
303
+ .facepile img {
304
+ max-width: 70px;
305
+ max-height: 70px;
306
+ }
307
+ }