Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Optimize SEO (google verification, canonical, noindex) #2112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions 8 website/src/app/docs/[version]/[type]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { getTypeDefs } from '../../../../static/getTypeDefs';
import { getVersionFromGitTag } from '../../../../static/getVersions';
import { TypeDocumentation } from '../../../../TypeDocumentation';
import { getVersionFromParams } from '../../../getVersionFromParams';
import { VERSION } from '../../currentVersion';

export async function generateStaticParams() {
return getVersionFromGitTag()
Expand Down Expand Up @@ -36,6 +37,13 @@ export async function generateMetadata(props: Props) {

return {
title: `${def.qualifiedName} — Immutable.js`,
robots: {
index: false,
follow: true,
},
alternates: {
canonical: `/docs/${VERSION}/${params.type}/`,
},
};
}

Expand Down
8 changes: 8 additions & 0 deletions 8 website/src/app/docs/[version]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { DocSearch } from '../../../DocSearch';
import { SideBar } from '../../../Sidebar';
import { getSidebarLinks } from '../../../getSidebarLinks';
import { getVersionFromParams } from '../../getVersionFromParams';
import { VERSION } from '../currentVersion';

export async function generateStaticParams() {
return [...getVersionFromGitTag().map((version) => ({ version }))];
Expand All @@ -25,6 +26,13 @@ export async function generateMetadata(props: Props): Promise<Metadata> {

return {
title: `Documentation ${version} — Immutable.js`,
robots: {
index: false,
follow: true,
},
alternates: {
canonical: `/docs/${VERSION}/`,
},
};
}

Expand Down
99 changes: 0 additions & 99 deletions 99 website/src/app/docs/[version]/test/sandpack.tsx.bak

This file was deleted.

9 changes: 9 additions & 0 deletions 9 website/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ import { ImmutableConsole } from '../ImmutableConsole';
import { MarkdownContent } from '../MarkdownContent';
import { genMarkdownDoc } from '../static/genMarkdownDoc';
import { getVersions } from '../static/getVersions';
import { Metadata } from 'next';

export async function generateMetadata(): Promise<Metadata> {
return {
verification: {
google: 'PdYYQG_2wv0zUJjqBIeuYliPcrOiAuTES4Q21OLy5uQ',
},
};
}

export default async function Page() {
const versions = await getVersions();
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.