mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +02:00
* feat(v2): Add themeConfig.noIndex option #3528 * feat(v2): Add themeConfig.noIndex optionthrough ssrTemplate * feat(v2): Include themeConfig.noIndex in CLI migration v1 to v2 * feat(v2): Remove themeConfig.noIndex from env dev
This commit is contained in:
parent
e5d9cdc871
commit
e0c644e623
12 changed files with 31 additions and 3 deletions
|
@ -12,6 +12,7 @@ module.exports = {
|
|||
baseUrl: '/',
|
||||
organizationName: 'facebook',
|
||||
projectName: 'docusaurus',
|
||||
noIndex: true,
|
||||
scripts: [
|
||||
'https://buttons.github.io/buttons.js',
|
||||
'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js',
|
||||
|
|
|
@ -21,7 +21,7 @@ const siteConfig = {
|
|||
organizationName: 'facebook',
|
||||
projectName: 'docusaurus',
|
||||
cname: 'docusaurus.io',
|
||||
noIndex: false,
|
||||
noIndex: true,
|
||||
users,
|
||||
editUrl: 'https://github.com/facebook/docusaurus/edit/master/docs/',
|
||||
headerLinks: [
|
||||
|
|
|
@ -296,6 +296,7 @@ export function createConfigFile({
|
|||
baseUrl: siteConfig.baseUrl ?? '',
|
||||
organizationName: siteConfig.organizationName,
|
||||
projectName: siteConfig.projectName,
|
||||
noIndex: siteConfig.noIndex,
|
||||
scripts: siteConfig.scripts,
|
||||
stylesheets: siteConfig.stylesheets,
|
||||
favicon: siteConfig.favicon ?? '',
|
||||
|
|
|
@ -35,6 +35,7 @@ export interface VersionTwoConfig {
|
|||
url: string;
|
||||
organizationName?: string;
|
||||
projectName?: string;
|
||||
noIndex?: boolean;
|
||||
githubHost?: string;
|
||||
onBrokenLinks: string;
|
||||
plugins: Array<[string, {[key: string]: any}]>;
|
||||
|
@ -94,7 +95,7 @@ export type VersionOneConfig = {
|
|||
defaultVersionShown?: string;
|
||||
organizationName?: string;
|
||||
projectName?: string;
|
||||
noIndex?: string;
|
||||
noIndex?: boolean;
|
||||
headerLinks?: Array<any>;
|
||||
headerIcon?: string;
|
||||
favicon?: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue