diff --git a/.gitignore b/.gitignore index 4b84477482..7d378cf529 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ test.os full.gif fakedata.json /build +/docs/docusaurus/.docusaurus +/docs/docusaurus/build diff --git a/docs/docusaurus/docusaurus.config.js b/docs/docusaurus/docusaurus.config.js index 1122ce0831..245b9e95f1 100644 --- a/docs/docusaurus/docusaurus.config.js +++ b/docs/docusaurus/docusaurus.config.js @@ -34,6 +34,17 @@ const config = { locales: ['ru'], }, + scripts: [ + { + src: './js/yads.js', + defer: true + }, + { + src: 'https://yandex.ru/ads/system/context.js', + async: true + } + ], + presets: [ [ 'classic', diff --git a/docs/docusaurus/package-lock.json b/docs/docusaurus/package-lock.json index 4d8afba119..7ce9d2564a 100644 --- a/docs/docusaurus/package-lock.json +++ b/docs/docusaurus/package-lock.json @@ -1170,6 +1170,14 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-transform-classes/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/plugin-transform-computed-properties": { "version": "7.23.3", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz", @@ -2098,6 +2106,14 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/traverse/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/types": { "version": "7.23.6", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", @@ -6962,14 +6978,6 @@ "which": "bin/which" } }, - "node_modules/globals": { - "version": "15.9.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.9.0.tgz", - "integrity": "sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA==", - "engines": { - "node": ">=4" - } - }, "node_modules/globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", diff --git a/docs/docusaurus/src/theme/Footer/index.js b/docs/docusaurus/src/theme/Footer/index.js new file mode 100644 index 0000000000..4db01ab43e --- /dev/null +++ b/docs/docusaurus/src/theme/Footer/index.js @@ -0,0 +1,12 @@ +import React from 'react'; +import Footer from '@theme-original/Footer'; + +export default function FooterWrapper(props) { + return ( + <> +
+ +