Skip to content

Commit 51561e0

Browse files
authored
Add "noIndex" property to /next/ versioned docs (#54)
The "noIndex" property here adds `<meta name="robots" content="noindex, nofollow">` to all `/next/` pages, instructing search engines not to index or follow links on future documentation. https://docusaurus.io/docs/api/docusaurus-config#noIndex Note that version options are `current`, `0.11`, `0.12` * /0.11/ is mapped to `0.11` * /next/ is mapped to `current` * / is mapped to `0.12` via lastVersion
1 parent f222d61 commit 51561e0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docusaurus.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ const config: Config = {
8686
[LATEST_DEVVIT_VERSION]: {
8787
badge: false,
8888
},
89+
"current": { // This refers to "/docs/next/"
90+
noIndex: true,
91+
},
8992
"0.11": {
9093
noIndex: true,
9194
},

0 commit comments

Comments
 (0)