diff --git a/README.md b/README.md index 8ab80d8..9a62443 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ The [Docusaurus](https://docusaurus.io/) site behind [tsvrc.com](https://tsvrc.com), with the docs for every TsVRC project. The code of each project lives in its own repository, such as -[tsvrc/tsvrc-core](https://github.com/tsvrc/tsvrc-core) for Core and -[tsvrc/udon-test-kit](https://github.com/tsvrc/udon-test-kit) for Udon Test Kit. +[tsvrc/udon-test-kit](https://github.com/tsvrc/udon-test-kit) for Udon Test Kit and +[tsvrc/tsvrc-core](https://github.com/tsvrc/tsvrc-core) for Core. ## Contributing diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 19c394d..da20c5b 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -110,7 +110,7 @@ const config: Config = { links: [ { label: 'Docs', - to: '/docs/core/intro', + to: '/docs/udon-test-kit/intro', }, { label: 'GitHub', diff --git a/i18n/es/docusaurus-theme-classic/footer.json b/i18n/es/docusaurus-theme-classic/footer.json index 452dea0..1794c24 100644 --- a/i18n/es/docusaurus-theme-classic/footer.json +++ b/i18n/es/docusaurus-theme-classic/footer.json @@ -1,7 +1,7 @@ { "link.item.label.Docs": { "message": "Documentación", - "description": "The label of footer link with label=Docs linking to /docs/core/intro" + "description": "The label of footer link with label=Docs linking to /docs/udon-test-kit/intro" }, "link.item.label.GitHub": { "message": "GitHub", diff --git a/sidebars.ts b/sidebars.ts index ca127ce..cd639c0 100644 --- a/sidebars.ts +++ b/sidebars.ts @@ -5,8 +5,8 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs'; /** * Each project under docs// gets one top-level category here, built from * autogenerated subtrees so individual pages never need a sidebar entry of their own. - * Adding another project means adding its own top-level category the same way core's - * and udon-test-kit's are built below, not relying on blanket autogeneration (see + * Adding another project means adding its own top-level category the same way + * udon-test-kit's and core's are built below, not relying on blanket autogeneration (see * AGENTS.md's Gotchas section for why). * * Each labeled category below wraps a single-folder `autogenerated` subtree: pointing @@ -16,6 +16,37 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs'; */ const sidebars: SidebarsConfig = { tutorialSidebar: [ + { + type: 'category', + label: 'Udon Test Kit', + link: {type: 'doc', id: 'udon-test-kit/intro'}, + items: [ + { + type: 'category', + label: 'Getting started', + key: 'udon-test-kit-getting-started', + items: ['udon-test-kit/add-to-your-project', 'udon-test-kit/first-test'], + }, + { + type: 'category', + label: 'How-to guides', + key: 'udon-test-kit-how-to', + items: [{type: 'autogenerated', dirName: 'udon-test-kit/how-to'}], + }, + { + type: 'category', + label: 'Reference', + key: 'udon-test-kit-reference', + items: [{type: 'autogenerated', dirName: 'udon-test-kit/reference'}], + }, + { + type: 'category', + label: 'Explanations', + key: 'udon-test-kit-explanations', + items: [{type: 'autogenerated', dirName: 'udon-test-kit/explanations'}], + }, + ], + }, { type: 'category', label: 'Core', @@ -121,37 +152,6 @@ const sidebars: SidebarsConfig = { }, ], }, - { - type: 'category', - label: 'Udon Test Kit', - link: {type: 'doc', id: 'udon-test-kit/intro'}, - items: [ - { - type: 'category', - label: 'Getting started', - key: 'udon-test-kit-getting-started', - items: ['udon-test-kit/add-to-your-project', 'udon-test-kit/first-test'], - }, - { - type: 'category', - label: 'How-to guides', - key: 'udon-test-kit-how-to', - items: [{type: 'autogenerated', dirName: 'udon-test-kit/how-to'}], - }, - { - type: 'category', - label: 'Reference', - key: 'udon-test-kit-reference', - items: [{type: 'autogenerated', dirName: 'udon-test-kit/reference'}], - }, - { - type: 'category', - label: 'Explanations', - key: 'udon-test-kit-explanations', - items: [{type: 'autogenerated', dirName: 'udon-test-kit/explanations'}], - }, - ], - }, // Shared by every project, so it sits at the docs root rather than under one project. 'install-a-package', ], diff --git a/src/components/homepage/Projects.tsx b/src/components/homepage/Projects.tsx index 358a4da..bc01379 100644 --- a/src/components/homepage/Projects.tsx +++ b/src/components/homepage/Projects.tsx @@ -3,18 +3,6 @@ import ProjectCard, { type Project } from '@site/src/components/homepage/Project function useProjects(): Project[] { return [ - { - name: 'Core', - status: 'available', - description: translate({ - id: 'homepage.projects.core.description', - message: - 'A structured way to build VRChat worlds with UdonSharp: consistent startup, ' + - 'wired-up dependencies, and generated code instead of hand-wiring everything yourself.', - }), - docsHref: '/docs/core/intro', - repo: 'tsvrc/tsvrc-core', - }, { name: 'Udon Test Kit', status: 'available', @@ -27,6 +15,18 @@ function useProjects(): Project[] { docsHref: '/docs/udon-test-kit/intro', repo: 'tsvrc/udon-test-kit', }, + { + name: 'Core', + status: 'available', + description: translate({ + id: 'homepage.projects.core.description', + message: + 'A structured way to build VRChat worlds with UdonSharp: consistent startup, ' + + 'wired-up dependencies, and generated code instead of hand-wiring everything yourself.', + }), + docsHref: '/docs/core/intro', + repo: 'tsvrc/tsvrc-core', + }, ]; }