Skip to content
Closed
10 changes: 8 additions & 2 deletions packages/docusaurus-types/src/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export type FasterConfig = {
export type FutureV4Config = {
removeLegacyPostBuildHeadAttribute: boolean;
useCssCascadeLayers: boolean;
siteStorageNamespacing: boolean;
};

// VCS (Version Control System) info about a given change, e.g., a git commit.
Expand Down Expand Up @@ -96,8 +97,6 @@ export type FutureConfig = {

experimental_faster: FasterConfig;

experimental_storage: StorageConfig;

experimental_vcs: VcsConfig;

/**
Expand Down Expand Up @@ -180,6 +179,13 @@ export type DocusaurusConfig = {
* Similar to Remix future flags, see https://remix.run/blog/future-flags
*/
future: FutureConfig;
/**
* Site-wide browser storage options that theme authors should strive to
* respect.
*
* @see https://docusaurus.io/docs/api/docusaurus-config#storage
*/
storage: StorageConfig;
/**
* This option adds `<meta name="robots" content="noindex, nofollow">` to
* every page to tell search engines to avoid indexing your site.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@ exports[`loadSiteConfig website with .cjs siteConfig 1`] = `
"swcJsMinimizer": false,
},
"experimental_router": "browser",
"experimental_storage": {
"namespace": false,
"type": "localStorage",
},
"experimental_vcs": {
"getFileCreationInfo": [Function],
"getFileLastUpdateInfo": [Function],
"initialize": [Function],
},
"v4": {
"removeLegacyPostBuildHeadAttribute": false,
"siteStorageNamespacing": false,
"useCssCascadeLayers": false,
},
},
Expand Down Expand Up @@ -73,6 +70,10 @@ exports[`loadSiteConfig website with .cjs siteConfig 1`] = `
"staticDirectories": [
"static",
],
"storage": {
"namespace": false,
"type": "localStorage",
},
"stylesheets": [],
"tagline": "",
"themeConfig": {},
Expand Down Expand Up @@ -105,17 +106,14 @@ exports[`loadSiteConfig website with ts + js config 1`] = `
"swcJsMinimizer": false,
},
"experimental_router": "browser",
"experimental_storage": {
"namespace": false,
"type": "localStorage",
},
"experimental_vcs": {
"getFileCreationInfo": [Function],
"getFileLastUpdateInfo": [Function],
"initialize": [Function],
},
"v4": {
"removeLegacyPostBuildHeadAttribute": false,
"siteStorageNamespacing": false,
"useCssCascadeLayers": false,
},
},
Expand Down Expand Up @@ -158,6 +156,10 @@ exports[`loadSiteConfig website with ts + js config 1`] = `
"staticDirectories": [
"static",
],
"storage": {
"namespace": false,
"type": "localStorage",
},
"stylesheets": [],
"tagline": "",
"themeConfig": {},
Expand Down Expand Up @@ -190,17 +192,14 @@ exports[`loadSiteConfig website with valid JS CJS config 1`] = `
"swcJsMinimizer": false,
},
"experimental_router": "browser",
"experimental_storage": {
"namespace": false,
"type": "localStorage",
},
"experimental_vcs": {
"getFileCreationInfo": [Function],
"getFileLastUpdateInfo": [Function],
"initialize": [Function],
},
"v4": {
"removeLegacyPostBuildHeadAttribute": false,
"siteStorageNamespacing": false,
"useCssCascadeLayers": false,
},
},
Expand Down Expand Up @@ -243,6 +242,10 @@ exports[`loadSiteConfig website with valid JS CJS config 1`] = `
"staticDirectories": [
"static",
],
"storage": {
"namespace": false,
"type": "localStorage",
},
"stylesheets": [],
"tagline": "",
"themeConfig": {},
Expand Down Expand Up @@ -275,17 +278,14 @@ exports[`loadSiteConfig website with valid JS ESM config 1`] = `
"swcJsMinimizer": false,
},
"experimental_router": "browser",
"experimental_storage": {
"namespace": false,
"type": "localStorage",
},
"experimental_vcs": {
"getFileCreationInfo": [Function],
"getFileLastUpdateInfo": [Function],
"initialize": [Function],
},
"v4": {
"removeLegacyPostBuildHeadAttribute": false,
"siteStorageNamespacing": false,
"useCssCascadeLayers": false,
},
},
Expand Down Expand Up @@ -328,6 +328,10 @@ exports[`loadSiteConfig website with valid JS ESM config 1`] = `
"staticDirectories": [
"static",
],
"storage": {
"namespace": false,
"type": "localStorage",
},
"stylesheets": [],
"tagline": "",
"themeConfig": {},
Expand Down Expand Up @@ -360,17 +364,14 @@ exports[`loadSiteConfig website with valid TypeScript CJS config 1`] = `
"swcJsMinimizer": false,
},
"experimental_router": "browser",
"experimental_storage": {
"namespace": false,
"type": "localStorage",
},
"experimental_vcs": {
"getFileCreationInfo": [Function],
"getFileLastUpdateInfo": [Function],
"initialize": [Function],
},
"v4": {
"removeLegacyPostBuildHeadAttribute": false,
"siteStorageNamespacing": false,
"useCssCascadeLayers": false,
},
},
Expand Down Expand Up @@ -413,6 +414,10 @@ exports[`loadSiteConfig website with valid TypeScript CJS config 1`] = `
"staticDirectories": [
"static",
],
"storage": {
"namespace": false,
"type": "localStorage",
},
"stylesheets": [],
"tagline": "",
"themeConfig": {},
Expand Down Expand Up @@ -445,17 +450,14 @@ exports[`loadSiteConfig website with valid TypeScript ESM config 1`] = `
"swcJsMinimizer": false,
},
"experimental_router": "browser",
"experimental_storage": {
"namespace": false,
"type": "localStorage",
},
"experimental_vcs": {
"getFileCreationInfo": [Function],
"getFileLastUpdateInfo": [Function],
"initialize": [Function],
},
"v4": {
"removeLegacyPostBuildHeadAttribute": false,
"siteStorageNamespacing": false,
"useCssCascadeLayers": false,
},
},
Expand Down Expand Up @@ -498,6 +500,10 @@ exports[`loadSiteConfig website with valid TypeScript ESM config 1`] = `
"staticDirectories": [
"static",
],
"storage": {
"namespace": false,
"type": "localStorage",
},
"stylesheets": [],
"tagline": "",
"themeConfig": {},
Expand Down Expand Up @@ -530,17 +536,14 @@ exports[`loadSiteConfig website with valid async config 1`] = `
"swcJsMinimizer": false,
},
"experimental_router": "browser",
"experimental_storage": {
"namespace": false,
"type": "localStorage",
},
"experimental_vcs": {
"getFileCreationInfo": [Function],
"getFileLastUpdateInfo": [Function],
"initialize": [Function],
},
"v4": {
"removeLegacyPostBuildHeadAttribute": false,
"siteStorageNamespacing": false,
"useCssCascadeLayers": false,
},
},
Expand Down Expand Up @@ -585,6 +588,10 @@ exports[`loadSiteConfig website with valid async config 1`] = `
"staticDirectories": [
"static",
],
"storage": {
"namespace": false,
"type": "localStorage",
},
"stylesheets": [],
"tagline": "Hello World",
"themeConfig": {},
Expand Down Expand Up @@ -617,17 +624,14 @@ exports[`loadSiteConfig website with valid async config creator function 1`] = `
"swcJsMinimizer": false,
},
"experimental_router": "browser",
"experimental_storage": {
"namespace": false,
"type": "localStorage",
},
"experimental_vcs": {
"getFileCreationInfo": [Function],
"getFileLastUpdateInfo": [Function],
"initialize": [Function],
},
"v4": {
"removeLegacyPostBuildHeadAttribute": false,
"siteStorageNamespacing": false,
"useCssCascadeLayers": false,
},
},
Expand Down Expand Up @@ -672,6 +676,10 @@ exports[`loadSiteConfig website with valid async config creator function 1`] = `
"staticDirectories": [
"static",
],
"storage": {
"namespace": false,
"type": "localStorage",
},
"stylesheets": [],
"tagline": "Hello World",
"themeConfig": {},
Expand Down Expand Up @@ -704,17 +712,14 @@ exports[`loadSiteConfig website with valid config creator function 1`] = `
"swcJsMinimizer": false,
},
"experimental_router": "browser",
"experimental_storage": {
"namespace": false,
"type": "localStorage",
},
"experimental_vcs": {
"getFileCreationInfo": [Function],
"getFileLastUpdateInfo": [Function],
"initialize": [Function],
},
"v4": {
"removeLegacyPostBuildHeadAttribute": false,
"siteStorageNamespacing": false,
"useCssCascadeLayers": false,
},
},
Expand Down Expand Up @@ -759,6 +764,10 @@ exports[`loadSiteConfig website with valid config creator function 1`] = `
"staticDirectories": [
"static",
],
"storage": {
"namespace": false,
"type": "localStorage",
},
"stylesheets": [],
"tagline": "Hello World",
"themeConfig": {},
Expand Down Expand Up @@ -794,17 +803,14 @@ exports[`loadSiteConfig website with valid siteConfig 1`] = `
"swcJsMinimizer": false,
},
"experimental_router": "browser",
"experimental_storage": {
"namespace": false,
"type": "localStorage",
},
"experimental_vcs": {
"getFileCreationInfo": [Function],
"getFileLastUpdateInfo": [Function],
"initialize": [Function],
},
"v4": {
"removeLegacyPostBuildHeadAttribute": false,
"siteStorageNamespacing": false,
"useCssCascadeLayers": false,
},
},
Expand Down Expand Up @@ -857,6 +863,10 @@ exports[`loadSiteConfig website with valid siteConfig 1`] = `
"staticDirectories": [
"static",
],
"storage": {
"namespace": false,
"type": "localStorage",
},
"stylesheets": [],
"tagline": "Hello World",
"themeConfig": {},
Expand Down
Loading
Loading