File tree Expand file tree Collapse file tree 4 files changed +25
-99
lines changed Expand file tree Collapse file tree 4 files changed +25
-99
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { getTypeDefs } from '../../../../static/getTypeDefs';
3
3
import { getVersionFromGitTag } from '../../../../static/getVersions' ;
4
4
import { TypeDocumentation } from '../../../../TypeDocumentation' ;
5
5
import { getVersionFromParams } from '../../../getVersionFromParams' ;
6
+ import { VERSION } from '../../currentVersion' ;
6
7
7
8
export async function generateStaticParams ( ) {
8
9
return getVersionFromGitTag ( )
@@ -36,6 +37,13 @@ export async function generateMetadata(props: Props) {
36
37
37
38
return {
38
39
title : `${ def . qualifiedName } — Immutable.js` ,
40
+ robots : {
41
+ index : false ,
42
+ follow : true ,
43
+ } ,
44
+ alternates : {
45
+ canonical : `/docs/${ VERSION } /${ params . type } /` ,
46
+ } ,
39
47
} ;
40
48
}
41
49
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { DocSearch } from '../../../DocSearch';
6
6
import { SideBar } from '../../../Sidebar' ;
7
7
import { getSidebarLinks } from '../../../getSidebarLinks' ;
8
8
import { getVersionFromParams } from '../../getVersionFromParams' ;
9
+ import { VERSION } from '../currentVersion' ;
9
10
10
11
export async function generateStaticParams ( ) {
11
12
return [ ...getVersionFromGitTag ( ) . map ( ( version ) => ( { version } ) ) ] ;
@@ -25,6 +26,13 @@ export async function generateMetadata(props: Props): Promise<Metadata> {
25
26
26
27
return {
27
28
title : `Documentation ${ version } — Immutable.js` ,
29
+ robots : {
30
+ index : false ,
31
+ follow : true ,
32
+ } ,
33
+ alternates : {
34
+ canonical : `/docs/${ VERSION } /` ,
35
+ } ,
28
36
} ;
29
37
}
30
38
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,6 +4,15 @@ import { ImmutableConsole } from '../ImmutableConsole';
4
4
import { MarkdownContent } from '../MarkdownContent' ;
5
5
import { genMarkdownDoc } from '../static/genMarkdownDoc' ;
6
6
import { getVersions } from '../static/getVersions' ;
7
+ import { Metadata } from 'next' ;
8
+
9
+ export async function generateMetadata ( ) : Promise < Metadata > {
10
+ return {
11
+ verification : {
12
+ google : 'PdYYQG_2wv0zUJjqBIeuYliPcrOiAuTES4Q21OLy5uQ' ,
13
+ } ,
14
+ } ;
15
+ }
7
16
8
17
export default async function Page ( ) {
9
18
const versions = await getVersions ( ) ;
You can’t perform that action at this time.
0 commit comments