react-helmet

How can I add custom scripts in index.html's head part in Docusaurus V2?

我们两清 提交于 2019-12-04 04:04:10
We are making a website with Docusaurus V2. In Docusaurus V1, there is a scripts setting in siteConfig.js to cusutimize html's head content. But, I cannot find the corresponding setting in Docusaurus V2. According to https://docusaurus.io/blog/2018/09/11/Towards-Docusaurus-2#layout , it seems possible to customize html's <head> part in V2. Layout The current state of Docusaurus is that it is in charge of the entire layout and styling, unintentionally making it very hard for users to customize their site's appearance to their wishes. For Docusaurus 2, layout and styling should be controlled by