From 04b1504cce189a029f919ab4b902b16d2cc6553b Mon Sep 17 00:00:00 2001 From: Michael Daines <1383+mdaines@users.noreply.github.com> Date: Wed, 28 Aug 2024 12:56:55 -0400 Subject: [PATCH] Add sitemap and canonical links to website --- packages/website/.parcelrc | 6 ++++++ packages/website/package.json | 3 ++- packages/website/src/api/index.html | 3 ++- packages/website/src/index.html | 27 ++++++++++++++------------- packages/website/src/sitemap.txt | 4 ++++ 5 files changed, 28 insertions(+), 15 deletions(-) create mode 100644 packages/website/.parcelrc create mode 100644 packages/website/src/sitemap.txt diff --git a/packages/website/.parcelrc b/packages/website/.parcelrc new file mode 100644 index 00000000..e36a3924 --- /dev/null +++ b/packages/website/.parcelrc @@ -0,0 +1,6 @@ +{ + "extends": "@parcel/config-default", + "transformers": { + "sitemap.txt": ["@parcel/transformer-raw"] + } +} diff --git a/packages/website/package.json b/packages/website/package.json index 8a9c77ae..cdc9bfff 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -24,7 +24,8 @@ }, "source": [ "src/index.html", - "src/api/index.html" + "src/api/index.html", + "src/sitemap.txt" ], "scripts": { "build": "parcel build --no-cache --no-autoinstall", diff --git a/packages/website/src/api/index.html b/packages/website/src/api/index.html index 6636a503..11d1bdc4 100644 --- a/packages/website/src/api/index.html +++ b/packages/website/src/api/index.html @@ -5,6 +5,7 @@ Viz.js - API + @@ -14,7 +15,7 @@ diff --git a/packages/website/src/index.html b/packages/website/src/index.html index 3bfaabbc..4e51596b 100644 --- a/packages/website/src/index.html +++ b/packages/website/src/index.html @@ -5,26 +5,27 @@ Viz.js + -
-
- +
+
+ - -
+ +
-
+
+
-
- + diff --git a/packages/website/src/sitemap.txt b/packages/website/src/sitemap.txt new file mode 100644 index 00000000..8fa3b0ae --- /dev/null +++ b/packages/website/src/sitemap.txt @@ -0,0 +1,4 @@ +https://viz-js.com/ +https://viz-js.com/index.html +https://viz-js.com/api/ +https://viz-js.com/api/index.html