From 8bc969e7f65c8ffac7573a06e4d95fce68e7a11d Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 24 Dec 2024 19:37:59 +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 8a50f22..34a5ef9 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: '/clang/favicons/favicon-48x48.png', + href: '/clang-xpack/favicons/favicon-48x48.png', sizes: '48x48' } }, @@ -206,14 +206,14 @@ const config: Config = { attributes: { rel: 'icon', type: 'image/svg+xml', - href: '/clang/favicons/favicon.svg' + href: '/clang-xpack/favicons/favicon.svg' } }, { tagName: 'link', attributes: { rel: 'shortcut icon', - href: '/clang/favicons/favicon.ico' + href: '/clang-xpack/favicons/favicon.ico' } }, { @@ -228,7 +228,7 @@ const config: Config = { tagName: 'link', attributes: { rel: 'manifest', - href: '/clang/favicons/site.webmanifest' + href: '/clang-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 d733879..3c6ab34 100644 --- a/website/static/favicons/site.webmanifest +++ b/website/static/favicons/site.webmanifest @@ -3,13 +3,13 @@ "short_name": "xPack", "icons": [ { - "src": "/clang/favicons/web-app-manifest-192x192.png", + "src": "/clang-xpack/favicons/web-app-manifest-192x192.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable" }, { - "src": "/clang/favicons/web-app-manifest-512x512.png", + "src": "/clang-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..9e19f5d --- /dev/null +++ b/website/static/robots.txt @@ -0,0 +1,7 @@ +Sitemap: https://xpack-dev-tools.github.io/clang-xpack/sitemap.xml + +User-agent: * +Disallow: /clang-xpack/blog/archive/ +Disallow: /clang-xpack/blog/authors/ +Disallow: /clang-xpack/blog/page/ +Disallow: /clang-xpack/blog/tags/