From b6013452db67fec8765107fab0ac431138c52057 Mon Sep 17 00:00:00 2001 From: Sabrina Ferguson Date: Mon, 10 Jun 2024 15:16:48 -0400 Subject: [PATCH 1/3] chore: remove routes from sitemap for indexing fixes --- CONTRIBUTING.md | 2 +- content/tutorials/guide-web3js/10.index.md | 2 +- nuxt.config.ts | 3 +++ .../tutorial-template}/10.index.md | 0 .../tutorial-template}/_dir.yml | 0 5 files changed, 5 insertions(+), 2 deletions(-) rename {content/tutorials/_new-tutorial-template => template/tutorial-template}/10.index.md (100%) rename {content/tutorials/_new-tutorial-template => template/tutorial-template}/_dir.yml (100%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ab1af2f3..e175226e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -24,7 +24,7 @@ and you can use components available from [Nuxt UI](https://ui.nuxt.com/componen ### Create a new section for your guide We have a template tutorial folder you can start from! -You can copy the `/content/tutorials/_new-tutorial-template` to make setting up a new tutorial easy. +You can copy the `tutorial-template` from `/template` to make setting up a new tutorial easy. Your new guide should have its own folder under `/content/tutorials`. The minimum files your directory should have are the `_dir.yml` and a `10.index.md`. diff --git a/content/tutorials/guide-web3js/10.index.md b/content/tutorials/guide-web3js/10.index.md index 311fc487..90747d84 100644 --- a/content/tutorials/guide-web3js/10.index.md +++ b/content/tutorials/guide-web3js/10.index.md @@ -47,7 +47,7 @@ This examples uses the %%zk_testnet_name%%. ### Ethereum JSON-RPC API -Use the Web3.js `eth` package to fetch data from the zkSync [Ethereum JSON-RPC API](httsp://docs.zksync.io/build/api-reference/ethereum-rpc). +Use the Web3.js `eth` package to fetch data from the zkSync [Ethereum JSON-RPC API](https://docs.zksync.io/build/api-reference/ethereum-rpc). #### Fetch the Latest Block Number diff --git a/nuxt.config.ts b/nuxt.config.ts index ff4c320c..28929452 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -28,6 +28,9 @@ export default defineNuxtConfig({ }, routeRules: { '/api/search.json': { prerender: true }, + '*-surround': { robots: false }, + '/*/*-surround': { robots: false }, + '/tutorials/*/_dir': { robots: false }, }, $production: process.env.NUXT_SITE_ENV ? {} diff --git a/content/tutorials/_new-tutorial-template/10.index.md b/template/tutorial-template/10.index.md similarity index 100% rename from content/tutorials/_new-tutorial-template/10.index.md rename to template/tutorial-template/10.index.md diff --git a/content/tutorials/_new-tutorial-template/_dir.yml b/template/tutorial-template/_dir.yml similarity index 100% rename from content/tutorials/_new-tutorial-template/_dir.yml rename to template/tutorial-template/_dir.yml From abb904732bf507d29fded8ecd49a15b9d441da79 Mon Sep 17 00:00:00 2001 From: Sabrina Ferguson Date: Mon, 10 Jun 2024 15:29:30 -0400 Subject: [PATCH 2/3] chore: edit ogUrl --- app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.vue b/app.vue index 6b5876be..9e14caff 100644 --- a/app.vue +++ b/app.vue @@ -18,7 +18,7 @@ useHead({ useSeoMeta({ titleTemplate: `%s - ${seo?.siteName}`, ogSiteName: seo?.siteName, - ogUrl: 'https://code.zksync.io/', + ogUrl: 'https://code.zksync.io', description: 'Build together with the zkSync Community. Learn how to build amazing smart contracts and dApps on zkSync Era.', ogDescription: From df6f8fb956e2b4c66bd66ebae96e5f7cc55a44fe Mon Sep 17 00:00:00 2001 From: Sabrina Ferguson Date: Mon, 10 Jun 2024 15:45:24 -0400 Subject: [PATCH 3/3] chore: add more ignores to indexing --- nuxt.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index 28929452..6685c43d 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -31,6 +31,8 @@ export default defineNuxtConfig({ '*-surround': { robots: false }, '/*/*-surround': { robots: false }, '/tutorials/*/_dir': { robots: false }, + '/_nuxt': { robots: false }, + '/api/*': { robots: false }, }, $production: process.env.NUXT_SITE_ENV ? {}