chore: reorganize docs apps (#7228)

* reorganize docs apps

* add README

* fix directory

* add condition for old docs
This commit is contained in:
Shahed Nasser
2024-05-03 17:36:38 +03:00
committed by GitHub
parent 224ebb2154
commit 4fe28f5a95
6187 changed files with 601447 additions and 598226 deletions
@@ -0,0 +1,19 @@
import { writeFileSync } from "fs"
import getSlugs from "../utils/get-slugs.mjs"
import path from "path"
export async function main() {
const slugs = await getSlugs()
slugs.push(
...(await getSlugs({
basePath: path.resolve("references"),
baseSlug: path.resolve(),
}))
)
// write generated slugs
writeFileSync(
path.resolve("generated", "slug-changes.mjs"),
`export const slugChanges = ${JSON.stringify(slugs, null, 2)}`
)
}