diff --git a/docs/en/next/site-config.html b/docs/en/next/site-config.html index 004424278d..a148c5fb87 100644 --- a/docs/en/next/site-config.html +++ b/docs/en/next/site-config.html @@ -279,6 +279,8 @@

Set this to true if you want to enable the scroll to top button at the bottom of your site.

scrollToTopOptions [object]

Optional options configuration for the scroll to top button. You do not need to use this, even if you set scrollToTop to true; it just provides you more configuration control of the button. You can find more options here. By default, we set the zIndex option to 100.

+

slugPreprocessor [function]

+

Define the slug preprocessor function if you want to customize the text used for generating the hash links. Function provides the base string as the first argument and must always return a string.

stylesheets [array]

An array of CSS sources to load. The values can be either strings or plain objects of attribute-value maps. The link tag will be inserted in the HTML head.

translationRecruitingLink [string]

@@ -397,11 +399,14 @@ scrollToTopOptions: { zIndex: 100, }, + // Remove the HTML tags and HTML tags content before generating the slug + slugPreprocessor: (slugBase) => + slugBase.replace(/<([^>]+?)([^>]*?)>(.*?)<\/\1>/gi, ''), }; module.exports = siteConfig; -
Last updated on 6/30/2020 by Sébastien Lorber
Pages and Styles