From 8eea7d33f8acbf1fef81ac1b42d34293d934a556 Mon Sep 17 00:00:00 2001 From: Nicco Date: Sun, 8 Oct 2023 19:24:04 +0200 Subject: [PATCH] delete old docs (#327) * delete old docs * new docs --- docs/.codedoc/build.ts | 15 - docs/.codedoc/config.ts | 24 - docs/.codedoc/content/footer.tsx | 19 - docs/.codedoc/content/header.tsx | 21 - docs/.codedoc/content/index.tsx | 57 - docs/.codedoc/content/theme.ts | 8 - docs/.codedoc/package-lock.json | 4916 ----------------- docs/.codedoc/package.json | 5 - docs/.codedoc/serve.ts | 18 - docs/.codedoc/theme.ts | 11 - docs/.codedoc/tsconfig.json | 26 - docs/.codedoc/watch.ts | 22 - docs/.gitignore | 2 +- docs/.nvmrc | 1 + docs/markdown/_toc.md | 54 - docs/next.config.js | 6 + docs/package-lock.json | 2741 --------- docs/package.json | 14 +- docs/pages/_meta.json | 10 + docs/pages/backend/_meta.json | 6 + docs/{markdown => pages}/backend/available.md | 2 - docs/{markdown => pages}/backend/env.md | 2 - .../overview.md => pages/backend/index.md} | 2 - docs/{markdown => pages}/backend/options.md | 2 - docs/pages/cli/_meta.json | 3 + docs/{markdown => pages}/cli/backup.md | 2 - docs/{markdown => pages}/cli/check.md | 2 - docs/{markdown => pages}/cli/completion.md | 2 - docs/{markdown => pages}/cli/cron.md | 2 - docs/{markdown => pages}/cli/exec.md | 2 - docs/{markdown => pages}/cli/forget.md | 2 - docs/{markdown => pages}/cli/general.md | 2 - docs/{markdown => pages}/cli/info.md | 2 - docs/{markdown => pages}/cli/install.md | 2 - docs/{markdown => pages}/cli/restore.md | 2 - docs/{markdown => pages}/cli/uninstall.md | 2 - docs/{markdown => pages}/cli/upgrade.md | 2 - docs/{markdown => pages}/community.md | 2 - docs/{markdown => pages}/config.md | 2 - .../contrib.md => pages/contributors.md} | 2 - docs/{markdown => pages}/docker.md | 0 docs/{markdown => pages}/examples.md | 2 - docs/{markdown => pages}/index.md | 2 - docs/{markdown => pages}/installation.md | 2 - docs/pages/location/_meta.json | 7 + docs/{markdown => pages}/location/cron.md | 2 - docs/{markdown => pages}/location/docker.md | 2 - docs/{markdown => pages}/location/hooks.md | 2 - .../overview.md => pages/location/index.md} | 3 +- docs/pages/location/options/_meta.json | 3 + .../location/options}/copy.md | 0 .../location/options}/exclude.md | 2 - .../location/options}/forget.md | 2 - .../location/options/index.md} | 2 - .../migration/index.md => pages/migration.md} | 0 docs/{markdown => pages}/migration/0.x_1.0.md | 2 - docs/{markdown => pages}/migration/1.4_1.5.md | 2 - docs/pages/migration/_meta.json | 4 + docs/{markdown => pages}/qa.md | 2 - docs/{markdown => pages}/quick.md | 2 - docs/pnpm-lock.yaml | 3044 ++++++++++ docs/theme.config.jsx | 24 + docs/vercel.json | 3 - 63 files changed, 3119 insertions(+), 8012 deletions(-) delete mode 100644 docs/.codedoc/build.ts delete mode 100644 docs/.codedoc/config.ts delete mode 100644 docs/.codedoc/content/footer.tsx delete mode 100644 docs/.codedoc/content/header.tsx delete mode 100644 docs/.codedoc/content/index.tsx delete mode 100644 docs/.codedoc/content/theme.ts delete mode 100644 docs/.codedoc/package-lock.json delete mode 100644 docs/.codedoc/package.json delete mode 100644 docs/.codedoc/serve.ts delete mode 100644 docs/.codedoc/theme.ts delete mode 100644 docs/.codedoc/tsconfig.json delete mode 100644 docs/.codedoc/watch.ts create mode 100644 docs/.nvmrc delete mode 100644 docs/markdown/_toc.md create mode 100644 docs/next.config.js delete mode 100644 docs/package-lock.json create mode 100644 docs/pages/_meta.json create mode 100644 docs/pages/backend/_meta.json rename docs/{markdown => pages}/backend/available.md (99%) rename docs/{markdown => pages}/backend/env.md (99%) rename docs/{markdown/backend/overview.md => pages/backend/index.md} (95%) rename docs/{markdown => pages}/backend/options.md (95%) create mode 100644 docs/pages/cli/_meta.json rename docs/{markdown => pages}/cli/backup.md (96%) rename docs/{markdown => pages}/cli/check.md (93%) rename docs/{markdown => pages}/cli/completion.md (95%) rename docs/{markdown => pages}/cli/cron.md (96%) rename docs/{markdown => pages}/cli/exec.md (97%) rename docs/{markdown => pages}/cli/forget.md (97%) rename docs/{markdown => pages}/cli/general.md (98%) rename docs/{markdown => pages}/cli/info.md (95%) rename docs/{markdown => pages}/cli/install.md (86%) rename docs/{markdown => pages}/cli/restore.md (97%) rename docs/{markdown => pages}/cli/uninstall.md (87%) rename docs/{markdown => pages}/cli/upgrade.md (94%) rename docs/{markdown => pages}/community.md (97%) rename docs/{markdown => pages}/config.md (99%) rename docs/{markdown/contrib.md => pages/contributors.md} (96%) rename docs/{markdown => pages}/docker.md (100%) rename docs/{markdown => pages}/examples.md (98%) rename docs/{markdown => pages}/index.md (97%) rename docs/{markdown => pages}/installation.md (98%) create mode 100644 docs/pages/location/_meta.json rename docs/{markdown => pages}/location/cron.md (99%) rename docs/{markdown => pages}/location/docker.md (97%) rename docs/{markdown => pages}/location/hooks.md (99%) rename docs/{markdown/location/overview.md => pages/location/index.md} (98%) create mode 100644 docs/pages/location/options/_meta.json rename docs/{markdown/location => pages/location/options}/copy.md (100%) rename docs/{markdown/location => pages/location/options}/exclude.md (96%) rename docs/{markdown/location => pages/location/options}/forget.md (98%) rename docs/{markdown/location/options.md => pages/location/options/index.md} (98%) rename docs/{markdown/migration/index.md => pages/migration.md} (100%) rename docs/{markdown => pages}/migration/0.x_1.0.md (97%) rename docs/{markdown => pages}/migration/1.4_1.5.md (99%) create mode 100644 docs/pages/migration/_meta.json rename docs/{markdown => pages}/qa.md (95%) rename docs/{markdown => pages}/quick.md (99%) create mode 100644 docs/pnpm-lock.yaml create mode 100644 docs/theme.config.jsx delete mode 100644 docs/vercel.json diff --git a/docs/.codedoc/build.ts b/docs/.codedoc/build.ts deleted file mode 100644 index 8076303..0000000 --- a/docs/.codedoc/build.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { build } from '@codedoc/core'; - -import { config } from './config'; -import { installTheme$ } from './content/theme'; -import { content } from './content'; - - -build(config, content, installTheme$, { - resolve: { - modules: ['.codedoc/node_modules'] - }, - resolveLoader: { - modules: ['.codedoc/node_modules'] - } -}); diff --git a/docs/.codedoc/config.ts b/docs/.codedoc/config.ts deleted file mode 100644 index e2e69dc..0000000 --- a/docs/.codedoc/config.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { configuration } from '@codedoc/core' - -export const config = configuration({ - src: { - base: 'markdown', - }, - dest: { - html: './build', - assets: './build', - bundle: './_', - styles: './_', - }, - page: { - title: { - base: 'Autorestic', - }, - }, - misc: { - github: { - user: 'cupcakearmy', - repo: 'autorestic', - }, - }, -}) diff --git a/docs/.codedoc/content/footer.tsx b/docs/.codedoc/content/footer.tsx deleted file mode 100644 index 0768db9..0000000 --- a/docs/.codedoc/content/footer.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { CodedocConfig } from '@codedoc/core'; -import { Footer as _Footer, GitterToggle$, Watermark} from '@codedoc/core/components'; - - -export function Footer(config: CodedocConfig, renderer: any) { - let github$; - if (config.misc?.github) - github$ = GitHub; - - let community$; - if (config.misc?.gitter) - community$ = - - if (github$ && community$) return <_Footer>{github$}
{community$}; - else if (github$) return <_Footer>{github$}; - else if (community$) return <_Footer>{community$}; - else return <_Footer>; -} diff --git a/docs/.codedoc/content/header.tsx b/docs/.codedoc/content/header.tsx deleted file mode 100644 index 9ecb780..0000000 --- a/docs/.codedoc/content/header.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { CodedocConfig } from '@codedoc/core'; -import { Header as _Header, GithubButton, Watermark } from '@codedoc/core/components'; - - -export function Header(config: CodedocConfig, renderer: any) { - return ( - <_Header>{config.misc?.github ? - - -

-
- : ''} - - - ) -} diff --git a/docs/.codedoc/content/index.tsx b/docs/.codedoc/content/index.tsx deleted file mode 100644 index 2f041c2..0000000 --- a/docs/.codedoc/content/index.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import { RendererLike } from '@connectv/html' -import { File } from 'rxline/fs' -import { - Page, - Meta, - ContentNav, - Fonts, - ToC, - GithubSearch$, -} from '@codedoc/core/components' - -import { config } from '../config' -import { Header } from './header' -import { Footer } from './footer' - -export function content( - _content: HTMLElement, - toc: HTMLElement, - renderer: RendererLike, - file: File -) { - return ( - } - fonts={} - scripts={config.page.scripts} - stylesheets={config.page.stylesheets} - header={
} - footer={