vowel 0.4.0 → 0.5.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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vowel",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"bin": "bin.js",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"unist-util-visit": "^5.0.0",
|
|
68
68
|
"unist-util-visit-parents": "^6.0.0",
|
|
69
69
|
"url-metadata": "^5.4.1",
|
|
70
|
-
"votive": "^0.2.0",
|
|
71
70
|
"voot": "^0.1.0",
|
|
71
|
+
"votive": "^0.4.0",
|
|
72
72
|
"xast-util-sitemap": "^2.0.0",
|
|
73
73
|
"xast-util-to-xml": "^4.0.0",
|
|
74
74
|
"xml": "^1.0.1",
|
|
@@ -233,7 +233,7 @@ function readFile(string, filePath, destinationPath, database, config) {
|
|
|
233
233
|
type: "text",
|
|
234
234
|
value: match[4]
|
|
235
235
|
},
|
|
236
|
-
|
|
236
|
+
|
|
237
237
|
...convertTagsToLinks(remainder)
|
|
238
238
|
]
|
|
239
239
|
}
|
|
@@ -297,6 +297,7 @@ function readFile(string, filePath, destinationPath, database, config) {
|
|
|
297
297
|
abstract,
|
|
298
298
|
metadata: tagMetadata
|
|
299
299
|
})
|
|
300
|
+
|
|
300
301
|
})
|
|
301
302
|
}
|
|
302
303
|
}
|
|
@@ -728,7 +729,9 @@ function writeFile(destination, database, config) {
|
|
|
728
729
|
dependent: destination.path,
|
|
729
730
|
query: {}
|
|
730
731
|
})
|
|
731
|
-
}).filter(({ path }) =>
|
|
732
|
+
}).filter(({ path, dir }) => {
|
|
733
|
+
return path && path !== "tags.html" && dir !== "tags"
|
|
734
|
+
})
|
|
732
735
|
|
|
733
736
|
const treeStyleSheets = []
|
|
734
737
|
|
|
@@ -1033,9 +1036,18 @@ function writeFile(destination, database, config) {
|
|
|
1033
1036
|
|
|
1034
1037
|
if (count) targets.splice(Number(count))
|
|
1035
1038
|
|
|
1036
|
-
const
|
|
1039
|
+
const escapedDir = folder.replace("_", "--").replace(path.sep, "_")
|
|
1040
|
+
const escapedDirs = escapedDir.split("_").filter(a => a).map((segment, index, array) => {
|
|
1041
|
+
return "_" + array.slice(0, index + 1).join("_")
|
|
1042
|
+
})
|
|
1043
|
+
escapedDirs.unshift("_")
|
|
1044
|
+
const dirClasses = escapedDirs.join(".")
|
|
1045
|
+
|
|
1046
|
+
const list = h(`ul.${dirClasses}`,
|
|
1037
1047
|
targets.map(target => {
|
|
1038
|
-
return h('
|
|
1048
|
+
return h('li',
|
|
1049
|
+
h('article', makeHead(target.metadata, target.metadata.prettyURL))
|
|
1050
|
+
)
|
|
1039
1051
|
})
|
|
1040
1052
|
)
|
|
1041
1053
|
|
|
@@ -1133,6 +1145,7 @@ function writeFile(destination, database, config) {
|
|
|
1133
1145
|
const globalNavItems = everything.filter(item => {
|
|
1134
1146
|
return item.dir === ""
|
|
1135
1147
|
&& item.path !== "index.html"
|
|
1148
|
+
&& item.path !== "tags.html"
|
|
1136
1149
|
})
|
|
1137
1150
|
.map(getChildren)
|
|
1138
1151
|
|
|
@@ -226,15 +226,23 @@
|
|
|
226
226
|
border-left: 5px solid var(--primary-border-color);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
article {
|
|
229
|
+
main>article {
|
|
230
230
|
border: 1px solid var(--primary-border-color);
|
|
231
|
-
background: var(--soft-background);
|
|
232
231
|
padding: 2rem 2rem 2rem;
|
|
233
232
|
border-radius: calc(1rem + 5px);
|
|
234
233
|
display: flex;
|
|
235
234
|
flex-direction: column;
|
|
236
235
|
}
|
|
237
236
|
|
|
237
|
+
main>ul._ {
|
|
238
|
+
list-style: none;
|
|
239
|
+
padding: 0;
|
|
240
|
+
|
|
241
|
+
& article {
|
|
242
|
+
padding-bottom: 1em;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
238
246
|
th,
|
|
239
247
|
td {
|
|
240
248
|
border-bottom: 1px solid var(--border-color-softer);
|