diff --git a/docs/_redirects b/docs/_redirects new file mode 100644 index 00000000..d8006dfc --- /dev/null +++ b/docs/_redirects @@ -0,0 +1,15 @@ +/docs/getting-started /guides/getting-started 301 +/docs/guides/best-practices /guides/tokens 301 +/docs/guides/design-tokens /guides/tokens 301 +/docs/guides/figma /integrations/figma 301 +/docs/guides/modes /guides/modes 301 +/docs/integrations/css /integrations/css 301 +/docs/integrations/custom-plugins /advanced/plugin-api 301 +/docs/integrations/js /integrations/js 301 +/docs/integrations/sass /integrations/sass 301 +/docs/integrations/tailwind /integrations/tailwind 301 +/docs/integrations/tokens-studio /integrations/figma 301 +/docs/reference/about /advanced/about 301 +/docs/reference/cli /guides/cli 301 +/docs/reference/config /advanced/config 301 +/docs/tokens /tokens/color 301 diff --git a/docs/package.json b/docs/package.json index 290765cd..2fcb9edb 100644 --- a/docs/package.json +++ b/docs/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vitepress dev", - "build": "vitepress build", + "build": "del .vitepress/dist && vitepress build && cp _redirects .vitepress/dist", "preview": "vitepress preview" }, "dependencies": {