From aa0b1303e2e7ad5e5c5dbd9416ebc1aaa784d99b Mon Sep 17 00:00:00 2001 From: Fedor Abrashin Date: Wed, 22 Jan 2025 17:43:48 +0300 Subject: [PATCH] try --- config/searchExcludeRoutes.json | 2 +- .../how-to-create-sublogin.md | 7 ++-- .../autoimport/how-to-set-autoexport.mdx | 2 +- plugins.js | 1 - .../CustomLastUpdate/CustomLastUpdate.tsx | 2 +- .../RecentlyUpdatedArticles.js | 7 +--- .../RecentlyUpdatedArticlesIframe.tsx | 2 +- src/plugins/webpackConfig/index.js | 32 ------------------- src/theme/DocItem/Layout/index.tsx | 2 -- 9 files changed, 8 insertions(+), 49 deletions(-) delete mode 100644 src/plugins/webpackConfig/index.js diff --git a/config/searchExcludeRoutes.json b/config/searchExcludeRoutes.json index 31a27ad7..020a2206 100644 --- a/config/searchExcludeRoutes.json +++ b/config/searchExcludeRoutes.json @@ -1 +1 @@ -["/automations/automations-by-event/welcome-series", "/updates/HVG123РЕ97E", "/updates/BC1ADF523"] +["/automations/automations-by-event/welcome-series", "/updates/HVG123РЕ97E", "/updates/BC1ADF523E4"] diff --git a/docs/account-settings/how-to-create-sublogin.md b/docs/account-settings/how-to-create-sublogin.md index 67d2dcac..cf7d7b0c 100644 --- a/docs/account-settings/how-to-create-sublogin.md +++ b/docs/account-settings/how-to-create-sublogin.md @@ -2,11 +2,10 @@ sidebar_position: 1 sidebar_label: 'Как создать учётную запись' recent_article: - status: update theses: - - Keisgfsgd - - Lorem - - fgdgsfgasfgafga asdfadfasdf + - Пример + - Изменения + - 24 правки текста --- # Как создать учётную запись для нового пользователя diff --git a/docs/automations/autoimport/how-to-set-autoexport.mdx b/docs/automations/autoimport/how-to-set-autoexport.mdx index 88e20fc1..98c75c2b 100644 --- a/docs/automations/autoimport/how-to-set-autoexport.mdx +++ b/docs/automations/autoimport/how-to-set-autoexport.mdx @@ -2,7 +2,7 @@ sidebar_position: 2 sidebar_label: 'Экспорт по шаблону' recent_article: - status: new + new: true --- # Как настроить регулярный экспорт по шаблону diff --git a/plugins.js b/plugins.js index b47ce5af..81f64843 100644 --- a/plugins.js +++ b/plugins.js @@ -4,7 +4,6 @@ const yandexMetricaCounter = process.env.YANDEX_METRICA_COUNTER_ID; const plugins = [ './src/plugins/iframe-detected', './src/plugins/tailwind', - './src/plugins/webpackConfig', [ './src/plugins/docs-plugin-extended', { diff --git a/src/components/CustomLastUpdate/CustomLastUpdate.tsx b/src/components/CustomLastUpdate/CustomLastUpdate.tsx index 3eff52d1..8f47c149 100644 --- a/src/components/CustomLastUpdate/CustomLastUpdate.tsx +++ b/src/components/CustomLastUpdate/CustomLastUpdate.tsx @@ -14,7 +14,7 @@ export const enum CustomLastUpdateType { interface CustomLastUpdateProps { lastUpdatedAt: number; type: CustomLastUpdateType; - frontMatter?: { + frontMatter: { recent_article?: { ignore: boolean; }; diff --git a/src/components/RecentlyUpdatedArticles/RecentlyUpdatedArticles.js b/src/components/RecentlyUpdatedArticles/RecentlyUpdatedArticles.js index c4a372bb..9472b509 100644 --- a/src/components/RecentlyUpdatedArticles/RecentlyUpdatedArticles.js +++ b/src/components/RecentlyUpdatedArticles/RecentlyUpdatedArticles.js @@ -6,11 +6,6 @@ import { RECENT_ARTICLES_CONTENT_ID } from './constants.js'; const NBSP = '\u00A0'; -const ArticleStatus = { - New: 'new', - Updated: 'updated', -}; - const RecentlyUpdatedArticlesCard = ({ children, slug }) => { const handleClick = () => { document.dispatchEvent(new CustomEvent('redirect', { detail: { slug } })); @@ -59,7 +54,7 @@ const RecentlyUpdatedArticles = ({ recentArticles }) => ( { const history = useHistory(); diff --git a/src/plugins/webpackConfig/index.js b/src/plugins/webpackConfig/index.js deleted file mode 100644 index 0a1756dd..00000000 --- a/src/plugins/webpackConfig/index.js +++ /dev/null @@ -1,32 +0,0 @@ -import webpack from 'webpack'; -import NodePolyfillPlugin from 'node-polyfill-webpack-plugin'; - -export default function configWebpack() { - return { - name: 'docusaurus-plugin-webpack-config', - configureWebpack(config, isServer, utils) { - return { - resolve: { - fallback: { - child_process: false, - readline: false, - v8: false, - perf_hooks: false, - module: false, - async_hooks: false, - }, - }, - plugins: [ - new webpack.ProvidePlugin({ - process: 'process/browser', - }), - new webpack.DefinePlugin({ - 'process.versions.node': JSON.stringify(process.versions.node || '0.0.0'), - }), - - new NodePolyfillPlugin(), - ], - }; - }, - }; -} diff --git a/src/theme/DocItem/Layout/index.tsx b/src/theme/DocItem/Layout/index.tsx index 91b2d5c1..00c90272 100644 --- a/src/theme/DocItem/Layout/index.tsx +++ b/src/theme/DocItem/Layout/index.tsx @@ -44,8 +44,6 @@ const DocItemLayout = ({ children }: Props): JSX.Element => { const docTOC = useDocTOC(); const { metadata } = useDoc(); - console.log('!!metadata', metadata); - return (