Skip to content

Commit

Permalink
Use docs instead of guides
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed May 17, 2024
1 parent 5ac20ea commit ea48ae3
Show file tree
Hide file tree
Showing 50 changed files with 65 additions and 36 deletions.
4 changes: 2 additions & 2 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ files:
translation: /app/lib/l10n/app_%osx_locale%.arb
- source: /docs/content/translations/en.json
translation: /app/lib/l10n/%two_letters_code%.json
- source: /docs/content/docs/guides/**/*
translation: /docs/content/docs/guides/%two_letters_code%/**/%original_file_name%
- source: /docs/content/docs/docs/**/*
translation: /docs/content/docs/%two_letters_code%/docs/**/%original_file_name%
67 changes: 34 additions & 33 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import starlight from "@astrojs/starlight";
import remarkHeadingID from "remark-heading-id";
import react from "@astrojs/react";
import { getSidebarTranslatedLabel } from "./src/translations";
import remarkGemoji from "remark-gemoji";

// https://astro.build/config
export default defineConfig({
outDir: "./build",
markdown: {
remarkPlugins: [remarkHeadingID],
remarkPlugins: [remarkHeadingID, remarkGemoji],
},
integrations: [
starlight({
Expand Down Expand Up @@ -39,134 +40,134 @@ export default defineConfig({
items: [
{
...getSidebarTranslatedLabel("Introduction"),
link: "/guides/",
link: "/docs/",
},
{
...getSidebarTranslatedLabel("Area"),
link: "/guides/area/",
link: "/docs/area/",
},
{
...getSidebarTranslatedLabel("Background"),
link: "/guides/background/",
link: "/docs/background/",
},
{
...getSidebarTranslatedLabel("Color picker"),
link: "/guides/color_picker/",
link: "/docs/color_picker/",
},
{
...getSidebarTranslatedLabel("Layers"),
link: "/guides/layers/",
link: "/docs/layers/",
},
{
...getSidebarTranslatedLabel("Migrating"),
link: "/guides/migrating/",
link: "/docs/migrating/",
},
{
...getSidebarTranslatedLabel("Pack"),
link: "/guides/pack/",
link: "/docs/pack/",
},
{
...getSidebarTranslatedLabel("Pages"),
link: "/guides/pages/",
link: "/docs/pages/",
},
{
...getSidebarTranslatedLabel("Shortcuts"),
link: "/guides/shortcuts/",
link: "/docs/shortcuts/",
},
{
...getSidebarTranslatedLabel("Storage"),
link: "/guides/storage/",
link: "/docs/storage/",
},
{
...getSidebarTranslatedLabel("Waypoints"),
link: "/guides/waypoints/",
link: "/docs/waypoints/",
},
{
...getSidebarTranslatedLabel("Add"),
link: "/guides/add/",
link: "/docs/add/",
},
{
...getSidebarTranslatedLabel("Collaboration"),
link: "/guides/collaboration/",
link: "/docs/collaboration/",
},
{
...getSidebarTranslatedLabel("Arguments"),
link: "/guides/arguments/",
link: "/docs/arguments/",
},
{
...getSidebarTranslatedLabel("Tools"),
items: [
{
...getSidebarTranslatedLabel("Overview"),
link: "/guides/tools/",
link: "/docs/tools/",
},
{
...getSidebarTranslatedLabel("Pen"),
link: "/guides/tools/pen/",
link: "/docs/tools/pen/",
},
{
...getSidebarTranslatedLabel("Select"),
link: "/guides/tools/select/",
link: "/docs/tools/select/",
},
{
...getSidebarTranslatedLabel("Hand"),
link: "/guides/tools/hand/",
link: "/docs/tools/hand/",
},
{
...getSidebarTranslatedLabel("Path eraser"),
link: "/guides/tools/path_eraser/",
link: "/docs/tools/path_eraser/",
},
{
...getSidebarTranslatedLabel("Eraser"),
link: "/guides/tools/eraser/",
link: "/docs/tools/eraser/",
},
{
...getSidebarTranslatedLabel("Undo"),
link: "/guides/tools/undo/",
link: "/docs/tools/undo/",
},
{
...getSidebarTranslatedLabel("Redo"),
link: "/guides/tools/redo/",
link: "/docs/tools/redo/",
},
{
...getSidebarTranslatedLabel("Shape"),
link: "/guides/tools/shape/",
link: "/docs/tools/shape/",
},
{
...getSidebarTranslatedLabel("Spacer"),
link: "/guides/tools/spacer/",
link: "/docs/tools/spacer/",
},
{
...getSidebarTranslatedLabel("Area"),
link: "/guides/tools/area/",
link: "/docs/tools/area/",
},
{
...getSidebarTranslatedLabel("Full screen"),
link: "/guides/tools/full_screen/",
link: "/docs/tools/full_screen/",
},
{
...getSidebarTranslatedLabel("Label"),
link: "/guides/tools/label/",
link: "/docs/tools/label/",
},
{
...getSidebarTranslatedLabel("Laser"),
link: "/guides/tools/laser/",
link: "/docs/tools/laser/",
},
{
...getSidebarTranslatedLabel("Texture"),
link: "/guides/tools/texture/",
link: "/docs/tools/texture/",
},
{
...getSidebarTranslatedLabel("Stamp"),
link: "/guides/tools/stamp/",
link: "/docs/tools/stamp/",
},
{
...getSidebarTranslatedLabel("Layer"),
link: "/guides/tools/layer/",
link: "/docs/tools/layer/",
},
{
...getSidebarTranslatedLabel("Presentation"),
link: "/guides/tools/presentation/",
link: "/docs/tools/presentation/",
},
],
},
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"astro": "^4.8.6",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"remark-gemoji": "^8.0.0",
"remark-heading-id": "^1.0.1",
"sharp": "^0.33.4",
"typescript": "^5.4.5"
Expand Down
17 changes: 17 additions & 0 deletions docs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/src/content/docs/community/privacypolicy.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Privacy Policy"
tableOfContents: false
slug: /privacypolicy
---

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ hero:
icon: right-arrow
variant: primary
- text: Getting started
link: /guides/
link: /docs/
icon: external
---

Expand Down
9 changes: 9 additions & 0 deletions docs/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"rewrites": [
{
"source": "/docs/(0-9\\.)/:path*",
"destination": "/docs/:path*"
}
]
}

0 comments on commit ea48ae3

Please sign in to comment.