Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f647c58bf | ||
|
|
41375d5b05 |
10
icons/arrow-down-square.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"direction"
|
||||
],
|
||||
"categories": [
|
||||
"arrows",
|
||||
"shapes"
|
||||
]
|
||||
}
|
||||
15
icons/arrow-down-square.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
|
||||
<polyline points="8 12 12 16 16 12" />
|
||||
<line x1="12" x2="12" y1="8" y2="16" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 351 B |
10
icons/arrow-left-square.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"direction"
|
||||
],
|
||||
"categories": [
|
||||
"arrows",
|
||||
"shapes"
|
||||
]
|
||||
}
|
||||
15
icons/arrow-left-square.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
|
||||
<polyline points="12 8 8 12 12 16" />
|
||||
<line x1="16" x2="8" y1="12" y2="12" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 350 B |
10
icons/arrow-right-square.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"direction"
|
||||
],
|
||||
"categories": [
|
||||
"arrows",
|
||||
"shapes"
|
||||
]
|
||||
}
|
||||
15
icons/arrow-right-square.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
|
||||
<polyline points="12,16 16,12 12,8" />
|
||||
<line x1="8" x2="16" y1="12" y2="12" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 351 B |
10
icons/arrow-up-square.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"direction"
|
||||
],
|
||||
"categories": [
|
||||
"arrows",
|
||||
"shapes"
|
||||
]
|
||||
}
|
||||
15
icons/arrow-up-square.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
|
||||
<polyline points="16 12 12 8 8 12" />
|
||||
<line x1="12" x2="12" y1="16" y2="8" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 350 B |
12
icons/square-dot.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"git",
|
||||
"diff",
|
||||
"modified"
|
||||
],
|
||||
"categories": [
|
||||
"shapes",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
14
icons/square-dot.svg
Normal file
@@ -0,0 +1,14 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<rect width="18" height="18" x="3" y="3" rx="2" />
|
||||
<circle cx="12" cy="12" r="1" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 296 B |
10
icons/square-equal.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"calculate"
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
"shapes"
|
||||
]
|
||||
}
|
||||
15
icons/square-equal.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<rect width="18" height="18" x="3" y="3" rx="2" />
|
||||
<path d="M7 10h10" />
|
||||
<path d="M7 14h10" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 309 B |
12
icons/square-slash.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"git",
|
||||
"diff",
|
||||
"ignored"
|
||||
],
|
||||
"categories": [
|
||||
"shapes",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
14
icons/square-slash.svg
Normal file
@@ -0,0 +1,14 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<rect width="18" height="18" x="3" y="3" rx="2" />
|
||||
<line x1="9" x2="15" y1="15" y2="9" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 302 B |
@@ -46,7 +46,19 @@ export default async function fetchAllDocuments() {
|
||||
}
|
||||
}
|
||||
|
||||
const mappedDirectoryTree = (await Promise.all(fileNames.map(mapDirectoryTree))).flat().filter(({filename}) => filename.endsWith('.md'))
|
||||
console.log(
|
||||
(await Promise.all(fileNames.map(mapDirectoryTree))),
|
||||
(await Promise.all(fileNames.map(mapDirectoryTree))).flat()
|
||||
);
|
||||
|
||||
|
||||
const mappedDirectoryTree = (await Promise.all(fileNames.map(mapDirectoryTree))).flat()
|
||||
.filter((item) =>
|
||||
item != null
|
||||
&& typeof item === 'object'
|
||||
&& 'filename' in item
|
||||
&& item.filename.endsWith('.md')
|
||||
)
|
||||
const mappedFileContents = await Promise.all(
|
||||
mappedDirectoryTree
|
||||
.map(mapFileContents)
|
||||
|
||||