Skip to content

Commit

Permalink
docs: move next-docs to docs (#1933)
Browse files Browse the repository at this point in the history
Co-authored-by: Ori Pomerantz <[email protected]>
Co-authored-by: Kevin Ingersoll <[email protected]>
  • Loading branch information
3 people authored Nov 13, 2023
1 parent fd2b5ed commit 5de7601
Show file tree
Hide file tree
Showing 176 changed files with 243 additions and 10,720 deletions.
147 changes: 146 additions & 1 deletion docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,149 @@ const withNextra = nextra({
themeConfig: "./theme.config.tsx",
});

export default withNextra();
export default withNextra({
async redirects() {
return [
{
source: "/what-is-mud",
destination: "/introduction",
permanent: false,
},
{
source: "/quick-start",
destination: "/quickstart",
permanent: false,
},
{
source: "/store",
destination: "/store/introduction",
permanent: false
},
{
source: "/store/installation",
destination: "/store/introduction",
permanent: false
},
{
source: "/store/reading-and-writing",
destination: "/store/table-libraries#reading-data",
permanent: false
},
{
source: "/store/config",
destination: "/store/table-libraries#config",
permanent: false
},
{
source: "/store/advanced-features",
destination: "/store/introduction",
permanent: false
},
{
source: "/store/indexing",
destination: "/store/introduction",
permanent: false
},
{
source: "/store/spec",
destination: "/store/introduction",
permanent: false
},
{
source: "/store/gas-efficiency",
destination: "/store/introduction",
permanent: false
},
{
source: "/store/using-without-world",
destination: "/store/introduction",
permanent: false
},
{
source: "/store/internals",
destination: "/store/introduction",
permanent: false
},
{
source: "/world",
destination: "/world/introduction",
permanent: false
},
{
source: "/world/world-101",
destination: "/world/introduction",
permanent: false
},
{
source: "/world/config",
destination: "/cli/config",
permanent: false
},
{
source: "/world/deployer",
destination: "/cli/deploy",
permanent: false
},
{
source: "/world/subsystems",
destination: "/world/introduction",
permanent: false
},
{
source: "/world/community-computers",
destination: "/world/introduction",
permanent: false
},
{
source: "/world/querying",
destination: "/state-query/introduction",
permanent: false
},
{
source: "/world/internals",
destination: "/world/introduction",
permanent: false
},
{
source: "/client-side",
destination: "/state-query/typescript/recs",
permanent: false
},
{
source: "/indexer",
destination: "/services/indexer",
permanent: false
},
{
source: "/cli",
destination: "/cli/tablegen",
permanent: false
},
{
source: "/ecs",
destination: "/guides/emojimon/1-preface-the-ecs-model",
permanent: false
},
{
source: "/plugins",
destination: "/world/introduction",
permanent: false
},
{
source: "/tutorials",
destination: "/guides/hello-world",
permanent: false
},
{
source: "/tutorials/emojimon",
destination: "/guides/emojimon",
permanent: false
},
{
source: "/tutorials/emojimon/preface-the-ecs-model",
destination: "/guides/emojimon/1-preface-the-ecs-model",
permanent: false
},
];
},
});
25 changes: 17 additions & 8 deletions docs/pages/_meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,30 @@ import worldPackageJson from "../../packages/world/package.json" assert { type:

export default {
index: "Overview",
quickstart: "Quickstart",
introduction: "Introduction",
"what-is-mud": "What is MUD?",
"quick-start": "Quickstart",
"protocol-vs-framework": "Protocol vs. Framework",
protocol: {
title: "Protocol",
type: "separator",
},
store: "Store",
world: "World",
"client-side": "MUD client",
indexer: "Indexer",
cli: "CLI",
ecs: "ECS and MUD",
framework: {
title: "Framework",
type: "separator",
},
cli: "Command Line Interface",
"state-synchronization": "State Synchronization",
"state-query": "State Query",
services: "Services",
plugins: "Plugins",
tutorials: "Tutorials",
reference: "Reference",
templates: "Templates",
guides: "Guides",
contribute: "Contribute",
changelog: "Changelog",
retrospectives: "Retrospectives",
// --------------------
version: {
title: worldPackageJson.version,
type: "menu",
Expand Down
133 changes: 0 additions & 133 deletions docs/pages/cli.mdx

This file was deleted.

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.
Loading

0 comments on commit 5de7601

Please sign in to comment.