mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 08:27:03 +02:00
feat(core): siteConfig.headTags API to render extra tags in document head (#8151)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
parent
3558a091c6
commit
1ca4fb50fe
7 changed files with 124 additions and 2 deletions
9
packages/docusaurus-types/src/config.d.ts
vendored
9
packages/docusaurus-types/src/config.d.ts
vendored
|
@ -8,7 +8,7 @@
|
|||
import type {RuleSetRule} from 'webpack';
|
||||
import type {Required as RequireKeys, DeepPartial} from 'utility-types';
|
||||
import type {I18nConfig} from './i18n';
|
||||
import type {PluginConfig, PresetConfig} from './plugin';
|
||||
import type {PluginConfig, PresetConfig, HtmlTagObject} from './plugin';
|
||||
|
||||
export type ReportingSeverity = 'ignore' | 'log' | 'warn' | 'throw';
|
||||
|
||||
|
@ -192,6 +192,13 @@ export type DocusaurusConfig = {
|
|||
* @default ["static"]
|
||||
*/
|
||||
staticDirectories: string[];
|
||||
/**
|
||||
* An array of tags that will be inserted in the HTML `<head>`.
|
||||
*
|
||||
* @see https://docusaurus.io/docs/api/docusaurus-config#head
|
||||
* @default []
|
||||
*/
|
||||
headTags: HtmlTagObject[];
|
||||
/**
|
||||
* An array of scripts to load. The values can be either strings or plain
|
||||
* objects of attribute-value maps. The `<script>` tags will be inserted in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue