[blog] /src/content/ -> /content/
[voidcannon] hydrate/nojs fixes [pagex] fix html parser quirk
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
@@ -1,13 +1,6 @@
|
||||
import {VoidcannonHeaderLayoutType, VoidcannonHeaderType, VoidcannonContentType} from "voidcannon";
|
||||
|
||||
import bignutty from "../../authors/bignutty.pagex.js";
|
||||
|
||||
import videogamesCollection from "../../collections/videogames.pagex.js";
|
||||
import testCollection from "../../collections/test.pagex.js";
|
||||
import featuredCollection from "../../collections/_featured.pagex.js";
|
||||
import {VoidcannonHeaderType, VoidcannonContentType} from "voidcannon";
|
||||
|
||||
import {PagexResourceTransformer} from "pagex";
|
||||
import {ThemeVariants} from "pagex_commons";
|
||||
import labsCoreMaintainersPagex from "../../authors/labsCoreMaintainers.pagex.js";
|
||||
import discordPagex from "../../collections/discord.pagex.js";
|
||||
|
||||
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 228 KiB |
|
Before Width: | Height: | Size: 283 KiB After Width: | Height: | Size: 283 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
@@ -15,10 +15,10 @@ this is sample text (p3)
|
||||
```javascript
|
||||
import {VoidcannonHeaderLayoutType, VoidcannonHeaderType, VoidcannonContentType} from "voidcannon";
|
||||
|
||||
import bignutty from "../../authors/bignutty.pagex.js";
|
||||
import bignutty from "./bignutty.pagex.js";
|
||||
|
||||
import testCollection from "../../collections/test.pagex.js";
|
||||
import featuredCollection from "../../collections/_featured.pagex.js";
|
||||
import testCollection from "./test.pagex.js";
|
||||
import featuredCollection from "./_featured.pagex.js";
|
||||
|
||||
import {PagexResourceTransformer} from "pagex";
|
||||
|
||||
|
Before Width: | Height: | Size: 879 KiB After Width: | Height: | Size: 879 KiB |
|
Before Width: | Height: | Size: 261 KiB After Width: | Height: | Size: 261 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 1001 KiB After Width: | Height: | Size: 1001 KiB |
@@ -15,10 +15,10 @@ console.log('hello') // [!code ++]
|
||||
```js
|
||||
import {VoidcannonHeaderLayoutType, VoidcannonHeaderType, VoidcannonContentType} from "voidcannon";
|
||||
|
||||
import bignutty from "../../authors/bignutty.pagex.js";
|
||||
import bignutty from "./bignutty.pagex.js";
|
||||
|
||||
import testCollection from "../../collections/test.pagex.js";
|
||||
import featuredCollection from "../../collections/_featured.pagex.js";// [!code error]
|
||||
import testCollection from "./test.pagex.js";
|
||||
import featuredCollection from "./_featured.pagex.js";// [!code error]
|
||||
|
||||
import {PagexResourceTransformer} from "pagex";// [!code warning]
|
||||
|
||||
|
Before Width: | Height: | Size: 625 KiB After Width: | Height: | Size: 625 KiB |
|
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
|
Before Width: | Height: | Size: 441 KiB After Width: | Height: | Size: 441 KiB |
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 542 KiB After Width: | Height: | Size: 542 KiB |
|
Before Width: | Height: | Size: 584 KiB After Width: | Height: | Size: 584 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 829 KiB After Width: | Height: | Size: 829 KiB |
|
Before Width: | Height: | Size: 843 KiB After Width: | Height: | Size: 843 KiB |
|
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 166 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 426 KiB After Width: | Height: | Size: 426 KiB |
|
Before Width: | Height: | Size: 216 KiB After Width: | Height: | Size: 216 KiB |
|
Before Width: | Height: | Size: 391 KiB After Width: | Height: | Size: 391 KiB |
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
@@ -1,7 +1,5 @@
|
||||
import {PagexResourceTransformer} from "pagex";
|
||||
import {VoidcannonContentType, VoidcannonLinksIconType} from "voidcannon";
|
||||
import {GramophoneIcon} from "webicons/icons/Gramophone.icon.js";
|
||||
import {ThemeVariants} from "pagex_commons";
|
||||
|
||||
export default {
|
||||
type: VoidcannonContentType.AUTHOR,
|
||||
@@ -9,7 +7,7 @@ export default {
|
||||
name: "bignutty",
|
||||
avatar: {
|
||||
_transform: PagexResourceTransformer.MEDIA,
|
||||
path: "/content/authors/assets/bignutty.png"
|
||||
path: "/authors/assets/bignutty.png"
|
||||
},
|
||||
theme: {
|
||||
partial: true,
|
||||
@@ -1,5 +1,5 @@
|
||||
import {PagexResourceTransformer} from "pagex";
|
||||
import {VoidcannonContentType, VoidcannonEmojiStyle, VoidcannonLinksIconType} from "voidcannon";
|
||||
import {VoidcannonContentType, VoidcannonLinksIconType} from "voidcannon";
|
||||
|
||||
export default {
|
||||
type: VoidcannonContentType.AUTHOR,
|
||||
@@ -7,7 +7,7 @@ export default {
|
||||
name: "labsCore Maintainers",
|
||||
avatar: {
|
||||
_transform: PagexResourceTransformer.MEDIA,
|
||||
path: "/content/authors/assets/labscore.webp"
|
||||
path: "/authors/assets/labscore.webp"
|
||||
},
|
||||
theme: {
|
||||
partial: true,
|
||||
7
content/authors/placeholder.pagex.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import {VoidcannonContentType} from "voidcannon";
|
||||
|
||||
export default {
|
||||
type: VoidcannonContentType.AUTHOR,
|
||||
id: "placeholder",
|
||||
name: "Placeholder Author",
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import {PagexResourceTransformer} from "pagex";
|
||||
import {VoidcannonContentType, VoidcannonEmojiStyle, VoidcannonLinksIconType} from "voidcannon";
|
||||
import {VoidcannonContentType} from "voidcannon";
|
||||
|
||||
export default {
|
||||
type: VoidcannonContentType.AUTHOR,
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
@@ -1,5 +1,4 @@
|
||||
import {VoidcannonCollectionColor, VoidcannonCollectionIconType, VoidcannonContentType} from "voidcannon";
|
||||
import {PagexResourceTransformer} from "pagex";
|
||||
|
||||
export default {
|
||||
type: VoidcannonContentType.COLLECTION,
|
||||
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
@@ -4,13 +4,7 @@ import {
|
||||
} from "voidcannon";
|
||||
|
||||
import {PagexResourceTransformer} from "pagex";
|
||||
import CollectionContentTransformer from "voidcannon/src/transformers/CollectionContent.transformer.js";
|
||||
import RecentContentTransformer from "voidcannon/src/transformers/RecentContent.transformer.js";
|
||||
import ContentByIdentifierTransformer from "voidcannon/src/transformers/ContentByIdentifier.transformer.js";
|
||||
|
||||
import playground from "../../articles/playground/playground.pagex.js";
|
||||
import playgroundP3 from "../../articles/playground-p3/playground-p3.pagex.js";
|
||||
import playgroundEmpty from "../../articles/playground-empty/playground-empty.pagex.js";
|
||||
|
||||
import recentArticles from "../recent-articles/recent-articles.pagex.js";
|
||||
|
||||
@@ -4,13 +4,7 @@ import {
|
||||
VoidcannonSectionType
|
||||
} from "voidcannon";
|
||||
|
||||
import {PagexResourceTransformer} from "pagex";
|
||||
import CollectionContentTransformer from "voidcannon/src/transformers/CollectionContent.transformer.js";
|
||||
import RecentContentTransformer from "voidcannon/src/transformers/RecentContent.transformer.js";
|
||||
import ContentByIdentifierTransformer from "voidcannon/src/transformers/ContentByIdentifier.transformer.js";
|
||||
import playground from "../../articles/playground/playground.pagex.js";
|
||||
import playgroundP3 from "../../articles/playground-p3/playground-p3.pagex.js";
|
||||
import playgroundTotk from "../../articles/playground-totk/playground-totk.pagex.js";
|
||||
|
||||
export default {
|
||||
type: VoidcannonContentType.EDITORIAL,
|
||||
2
gm3
38
package-lock.json
generated
@@ -981,6 +981,12 @@
|
||||
"@types/unist": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/moo": {
|
||||
"version": "0.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@types/moo/-/moo-0.5.10.tgz",
|
||||
"integrity": "sha512-W6KzyZjXUYpwQfLK1O1UDzqcqYlul+lO7Bt71luyIIyNlOZwJaNeWWdqFs1C/f2hohZvUFHMk6oFNe9Rg48DbA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "16.18.126",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.126.tgz",
|
||||
@@ -1186,9 +1192,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/ajv": {
|
||||
"version": "8.17.1",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
|
||||
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
|
||||
"version": "8.18.0",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
|
||||
"integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
@@ -2071,6 +2077,19 @@
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/gqlmin": {
|
||||
"version": "0.3.1",
|
||||
"resolved": "https://registry.npmjs.org/gqlmin/-/gqlmin-0.3.1.tgz",
|
||||
"integrity": "sha512-UTkeFjVvfdAOyPVCw05WlysiYaelNxjGo/6n+T5fTwUjS4qH1xitdSqVziWlckYONrZvsGoTVSmHQtG//vTNLA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/moo": "^0.5.9",
|
||||
"moo": "^0.5.2"
|
||||
},
|
||||
"bin": {
|
||||
"gqlmin": "bin/cli.js"
|
||||
}
|
||||
},
|
||||
"node_modules/graceful-fs": {
|
||||
"version": "4.2.11",
|
||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
||||
@@ -2914,6 +2933,12 @@
|
||||
"node": ">=16 || 14 >=14.17"
|
||||
}
|
||||
},
|
||||
"node_modules/moo": {
|
||||
"version": "0.5.2",
|
||||
"resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz",
|
||||
"integrity": "sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/ms": {
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||
@@ -3253,9 +3278,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/qs": {
|
||||
"version": "6.14.1",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz",
|
||||
"integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==",
|
||||
"version": "6.15.0",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.15.0.tgz",
|
||||
"integrity": "sha512-mAZTtNCeetKMH+pSjrb76NAM8V9a05I9aBZOHztWy/UqcJdQYNsf59vrRKWnojAT9Y+GbIvoTBC++CPHqpDBhQ==",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"side-channel": "^1.1.0"
|
||||
@@ -4273,6 +4298,7 @@
|
||||
"@literals/html-css-minifier": "^3.0.1",
|
||||
"@rsbuild/core": "^1.7.2",
|
||||
"fastify": "^5.6.1",
|
||||
"gqlmin": "^0.3.1",
|
||||
"html-minifier-terser": "^7.2.0",
|
||||
"image-size": "^2.0.2",
|
||||
"lightningcss": "^1.31.1"
|
||||
|
||||
2
pagex
@@ -8,7 +8,7 @@ export default {
|
||||
},
|
||||
resources: {
|
||||
content: {
|
||||
path: "./src/",
|
||||
path: "./content/",
|
||||
resolvers: {
|
||||
"pagex.js": "builtin"
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
import {PagexResourceTransformer} from "pagex";
|
||||
import {VoidcannonContentType, VoidcannonEmojiStyle} from "voidcannon";
|
||||
|
||||
export default {
|
||||
type: VoidcannonContentType.AUTHOR,
|
||||
id: "placeholder",
|
||||
name: "Placeholder Author",
|
||||
}
|
||||