From d9caa4b03a06ca9bbc4933d07b06be0a9b7e3f87 Mon Sep 17 00:00:00 2001
From: Liviu Ionescu <ilg@livius.net>
Date: Tue, 24 Dec 2024 19:38:16 +0200
Subject: [PATCH] website: updates

---
 website/docusaurus.config.ts             | 46 ++++++++++++------------
 website/static/favicons/site.webmanifest |  4 +--
 website/static/robots.txt                |  7 ++++
 3 files changed, 32 insertions(+), 25 deletions(-)
 create mode 100644 website/static/robots.txt

diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts
index ba2e943..d0b5a65 100644
--- a/website/docusaurus.config.ts
+++ b/website/docusaurus.config.ts
@@ -197,7 +197,7 @@ const config: Config = {
       attributes: {
         rel: 'icon',
         type: 'image/png',
-        href: '/ninja-build/favicons/favicon-48x48.png',
+        href: '/ninja-build-xpack/favicons/favicon-48x48.png',
         sizes: '48x48'
       }
     },
@@ -206,14 +206,14 @@ const config: Config = {
       attributes: {
         rel: 'icon',
         type: 'image/svg+xml',
-        href: '/ninja-build/favicons/favicon.svg'
+        href: '/ninja-build-xpack/favicons/favicon.svg'
       }
     },
     {
       tagName: 'link',
       attributes: {
         rel: 'shortcut icon',
-        href: '/ninja-build/favicons/favicon.ico'
+        href: '/ninja-build-xpack/favicons/favicon.ico'
       }
     },
     {
@@ -228,7 +228,7 @@ const config: Config = {
       tagName: 'link',
       attributes: {
         rel: 'manifest',
-        href: '/ninja-build/favicons/site.webmanifest'
+        href: '/ninja-build-xpack/favicons/site.webmanifest'
       }
     }
   ],
@@ -424,25 +424,25 @@ const config: Config = {
       theme: prismThemes.github,
       darkTheme: prismThemes.dracula,
     },
-    algolia: {
-      // https://docsearch.algolia.com/docs/docsearch-v3/
-      appId: "KIDD7R4CL1",
-      apiKey: "ca2ffc431941284609f2d50202fc5506",
-      indexName: "xpackio",
-
-      // It ensures that search results are relevant to the current
-      // language and version. Enabled by default.
-      contextualSearch: false, // true,
-      // Optional: Replace parts of the item URLs from Algolia.
-      // Useful when using the same search index for multiple deployments
-      // using a different baseUrl. You can use regexp or string in the
-      // `from` param. For example: localhost:3000 vs myCompany.com/docs
-      // replaceSearchResultPathname: undefined,
-      // Optional: Algolia search parameters
-      searchParameters: {},
-      // Optional: path for search page that enabled by default (`false` to disable it)
-      searchPagePath: false, // 'search',
-    },
+    // algolia: {
+    //   // https://docsearch.algolia.com/docs/docsearch-v3/
+    //   appId: "KIDD7R4CL1",
+    //   apiKey: "ca2ffc431941284609f2d50202fc5506",
+    //   indexName: "xpackio",
+
+    //   // It ensures that search results are relevant to the current
+    //   // language and version. Enabled by default.
+    //   contextualSearch: false, // true,
+    //   // Optional: Replace parts of the item URLs from Algolia.
+    //   // Useful when using the same search index for multiple deployments
+    //   // using a different baseUrl. You can use regexp or string in the
+    //   // `from` param. For example: localhost:3000 vs myCompany.com/docs
+    //   // replaceSearchResultPathname: undefined,
+    //   // Optional: Algolia search parameters
+    //   searchParameters: {},
+    //   // Optional: path for search page that enabled by default (`false` to disable it)
+    //   searchPagePath: false, // 'search',
+    // },
   } satisfies Preset.ThemeConfig,
 
   customFields: customFields,
diff --git a/website/static/favicons/site.webmanifest b/website/static/favicons/site.webmanifest
index cd2dd70..7ffe278 100644
--- a/website/static/favicons/site.webmanifest
+++ b/website/static/favicons/site.webmanifest
@@ -3,13 +3,13 @@
   "short_name": "xPack",
   "icons": [
     {
-      "src": "/ninja-build/favicons/web-app-manifest-192x192.png",
+      "src": "/ninja-build-xpack/favicons/web-app-manifest-192x192.png",
       "sizes": "192x192",
       "type": "image/png",
       "purpose": "maskable"
     },
     {
-      "src": "/ninja-build/favicons/web-app-manifest-512x512.png",
+      "src": "/ninja-build-xpack/favicons/web-app-manifest-512x512.png",
       "sizes": "512x512",
       "type": "image/png",
       "purpose": "maskable"
diff --git a/website/static/robots.txt b/website/static/robots.txt
new file mode 100644
index 0000000..1529b94
--- /dev/null
+++ b/website/static/robots.txt
@@ -0,0 +1,7 @@
+Sitemap: https://xpack-dev-tools.github.io/ninja-build-xpack/sitemap.xml
+
+User-agent: *
+Disallow: /ninja-build-xpack/blog/archive/
+Disallow: /ninja-build-xpack/blog/authors/
+Disallow: /ninja-build-xpack/blog/page/
+Disallow: /ninja-build-xpack/blog/tags/