diff --git a/docs/public/index.html b/docs/public/index.html index 104bb9267..3aeedca2c 100644 --- a/docs/public/index.html +++ b/docs/public/index.html @@ -2,14 +2,14 @@ - + - + VKUI Tokens documentation diff --git a/docs/src/App.tsx b/docs/src/App.tsx index d18b3ec08..a8d3a5a23 100644 --- a/docs/src/App.tsx +++ b/docs/src/App.tsx @@ -35,18 +35,18 @@ const articles = [ const router = createBrowserRouter([ { - path: "/", + path: "/vkui-tokens", element: , }, { - path: "/articles", + path: "/vkui-tokens/articles", element: }, ...articles .filter((article) => !!article.slug) .map((article) => ( { - path: `/articles/${article.slug}`, + path: `/vkui-tokens/articles/${article.slug}`, element: } )), diff --git a/docs/src/components/layouts/shared/AsideMenu/AsideMenu.tsx b/docs/src/components/layouts/shared/AsideMenu/AsideMenu.tsx index eeb32d7c7..f81f862bb 100644 --- a/docs/src/components/layouts/shared/AsideMenu/AsideMenu.tsx +++ b/docs/src/components/layouts/shared/AsideMenu/AsideMenu.tsx @@ -26,7 +26,7 @@ export function AsideMenu(props: AsideMenuProps) { if (item.slug) { return (
- {item.title} + {item.title}
); } else { @@ -41,7 +41,7 @@ export function AsideMenu(props: AsideMenuProps) { })} - ← К таблице токенов + ← К таблице токенов ); diff --git a/docs/src/components/pages/Tokens/TokensHeader.tsx b/docs/src/components/pages/Tokens/TokensHeader.tsx index b5bd24766..38c04ff37 100644 --- a/docs/src/components/pages/Tokens/TokensHeader.tsx +++ b/docs/src/components/pages/Tokens/TokensHeader.tsx @@ -45,7 +45,7 @@ const TokensHeader: FC = () => {
- + Документация diff --git a/docs/webpack/webpack.client.mjs b/docs/webpack/webpack.client.mjs index 7fc5e6b41..3fd9ca963 100644 --- a/docs/webpack/webpack.client.mjs +++ b/docs/webpack/webpack.client.mjs @@ -60,6 +60,7 @@ export default function (env, argv) { }), new HtmlWebpackPlugin({ template: './public/index.html', + publicPath: '/vkui-tokens/' }), new WebpackNotifierPlugin({ alwaysNotify: false }), new CopyWebpackPlugin({ @@ -82,6 +83,13 @@ export default function (env, argv) { hot: true, open: true, historyApiFallback: true, + proxy: [ + { + context: ["/vkui-tokens/assets"], + target: "http://localhost:3000", + pathRewrite: { "^/vkui-tokens/(.*)": "/$1" }, + }, + ] }, }; };