diff --git a/index.html b/index.html index 5aba769..30fb558 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,7 @@ - + @@ -806,11 +806,11 @@

Sampler 2D

- + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 836b3d2..cc7da03 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,9 +11,11 @@ "@types/sharp": "^0.32.0", "sharp": "^0.33.2", "shx": "^0.3.4", + "sitemap": "^7.1.1", "ts-node": "^10.9.2", "typescript": "^5.3.3", - "webpage-templates": "github:piellardj/webpage-templates" + "webpage-templates": "github:piellardj/webpage-templates", + "xml-formatter": "^3.6.0" }, "engines": { "node": ">=20.5.1" @@ -582,6 +584,15 @@ "undici-types": "~5.26.4" } }, + "node_modules/@types/sax": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.7.tgz", + "integrity": "sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/sharp": { "version": "0.32.0", "resolved": "https://registry.npmjs.org/@types/sharp/-/sharp-0.32.0.tgz", @@ -1398,6 +1409,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/sax": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", + "integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==", + "dev": true + }, "node_modules/semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", @@ -1553,6 +1570,37 @@ "is-arrayish": "^0.3.1" } }, + "node_modules/sitemap": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-7.1.1.tgz", + "integrity": "sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==", + "dev": true, + "dependencies": { + "@types/node": "^17.0.5", + "@types/sax": "^1.2.1", + "arg": "^5.0.0", + "sax": "^1.2.4" + }, + "bin": { + "sitemap": "dist/cli.js" + }, + "engines": { + "node": ">=12.0.0", + "npm": ">=5.6.0" + } + }, + "node_modules/sitemap/node_modules/@types/node": { + "version": "17.0.45", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", + "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==", + "dev": true + }, + "node_modules/sitemap/node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, "node_modules/string-width": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", @@ -1882,6 +1930,27 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, + "node_modules/xml-formatter": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/xml-formatter/-/xml-formatter-3.6.0.tgz", + "integrity": "sha512-Wic80ENNLF/5mLcc82hVLmoOWQlLDJtVv+N1/hkP4hBuVXPLKrXo92/4V23QYPKfUxvCU6Y2AcdpHCIA/xexFw==", + "dev": true, + "dependencies": { + "xml-parser-xo": "^4.1.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/xml-parser-xo": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/xml-parser-xo/-/xml-parser-xo-4.1.1.tgz", + "integrity": "sha512-Ggf2y90+Y6e9IK5hoPuembVHJ03PhDSdhldEmgzbihzu9k0XBo0sfcFxaSi4W1PlUSSI1ok+MJ0JCXUn+U4Ilw==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", diff --git a/package.json b/package.json index c9fd030..5bcb99b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "generate-page": "ts-node-script src/generate-page.ts .", "build": "npm run generate-page", "rebuild": "npm run clean && npm run build", - "clean": "shx rm -rf css images/*.* script favicons *.html" + "clean": "shx rm -rf css images/*.* script favicons *.html sitemap.xml" }, "engines": { "node": ">=20.5.1" @@ -21,8 +21,10 @@ "@types/sharp": "^0.32.0", "sharp": "^0.33.2", "shx": "^0.3.4", + "sitemap": "^7.1.1", "ts-node": "^10.9.2", "typescript": "^5.3.3", - "webpage-templates": "github:piellardj/webpage-templates" + "webpage-templates": "github:piellardj/webpage-templates", + "xml-formatter": "^3.6.0" } } diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..976e805 --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,318 @@ + + + + https://piellardj.github.io/ + 2024-01-15T16:37:13.583Z + 1.0 + + + https://piellardj.github.io/water-webgpu/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/water-webgpu/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/non-circular-gears/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/non-circular-gears/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/particles-webgpu/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/particles-webgpu/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/tessellation-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/tessellation-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/stereogram-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/stereogram-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/reaction-diffusion-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/reaction-diffusion-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/diamond-webgl/jewelry/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/diamond-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/diamond-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/flowers-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/flowers-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/ray-marching-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/ray-marching-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/packing-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/packing-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/rorschach-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/rorschach-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/strange-attractors-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/strange-attractors-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/picasso-fourier/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/picasso-fourier/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/chaos-game-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/chaos-game-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/game-of-life-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/game-of-life-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/panoramas-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/panoramas-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/pool-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/pool-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/navier-stokes-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/navier-stokes-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/waterfall-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/waterfall-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/paint-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/paint-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/reaction-diffusion-webgl/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/reaction-diffusion-webgl/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/image-stylization-threading/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/image-stylization-threading/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/image-stylization-sines/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/image-stylization-sines/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/image-stylization-sines/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/image-stylization-sines/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/ldap-filter-analyzer/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/ldap-filter-analyzer/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/i18n/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/i18n/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/f5-persistence-cookie/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/f5-persistence-cookie/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/totp-generator/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/totp-generator/readme + 2024-01-15T16:37:13.583Z + 0.7 + + + https://piellardj.github.io/voxelizer-gpu/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/parallax-mapping/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/fractal-navigator/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/particles-gpu/ + 2024-01-15T16:37:13.583Z + 0.8 + + + https://piellardj.github.io/sampler2D/ + 2024-01-15T16:37:13.583Z + 0.8 + + \ No newline at end of file diff --git a/src/data.ts b/src/data.ts new file mode 100644 index 0000000..249115b --- /dev/null +++ b/src/data.ts @@ -0,0 +1,8 @@ +const websiteOrigin = "https://piellardj.github.io"; +const githubUserUrl = "https://github.com/piellardj"; + +export { + githubUserUrl, + websiteOrigin +}; + diff --git a/src/generate-page.ts b/src/generate-page.ts index eac2900..5a82c10 100644 --- a/src/generate-page.ts +++ b/src/generate-page.ts @@ -3,6 +3,7 @@ import sharp from "sharp"; import { Homepage } from "webpage-templates"; import { IHomepageData } from "webpage-templates/build/script/homepage/i-homepage-data"; import * as Readme from "./readme"; +import * as Sitemap from "./sitemap"; if (process.argv.length !== 3) { console.log("Usage: