diff --git a/.codedoc/build.ts b/.codedoc/build.ts deleted file mode 100644 index 8076303..0000000 --- a/.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/.codedoc/components/card/index.tsx b/.codedoc/components/card/index.tsx deleted file mode 100644 index e7d9f1f..0000000 --- a/.codedoc/components/card/index.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { ThemedComponentThis } from '@connectv/jss-theme'; -import { RendererLike } from '@connectv/html'; -import { CodedocTheme } from '@codedoc/core'; - -import { CardStyle } from './style'; - - -export interface CardOptions { - raise: string; -} - - -export function Card( - this: ThemedComponentThis, - options: CardOptions, - renderer: RendererLike, - content: any, -) { - const classes = this.theme.classes(CardStyle); - let raise = 'raised-0'; - if (options && options.raise === '1') raise = 'raised-1'; - if (options && options.raise === '2') raise = 'raised-2'; - - return
- {content} -
; -} diff --git a/.codedoc/components/card/style.ts b/.codedoc/components/card/style.ts deleted file mode 100644 index c1c7ef0..0000000 --- a/.codedoc/components/card/style.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { themedStyle } from '@connectv/jss-theme'; -import { CodedocTheme } from '@codedoc/core'; - - -export const CardStyle = themedStyle(theme => ({ - card: { - display: 'inline-block', - verticalAlign: 'middle', - borderRadius: 8, - padding: 8, - maxWidth: 320, - margin: 16, - overflow: 'hidden', - cursor: 'pointer', - transition: 'box-shadow .3s, transform .3s', - - '&.raised-0': { boxShadow: '0 1px 3px rgba(0, 0, 0, .12)' }, - '&.raised-1': { boxShadow: '0 3px 6px rgba(0, 0, 0, .18)' }, - '&.raised-2': { boxShadow: '0 6px 18px rgba(0, 0, 0, .25)' }, - '&:hover': { - boxShadow: '0 6px 18px rgba(0, 0, 0, .25)', - transform: 'translateY(-8px)' - }, - - '& img': { - margin: -8, - marginTop: -24, - width: 'calc(100% + 16px)', - maxWidth: 'none', - }, - - '& strong': { - color: theme.light.primary, - 'body.dark &': { color: theme.dark.primary }, - fontSize: 18, - display: 'block', - }, - } -})); diff --git a/.codedoc/components/tag/index.tsx b/.codedoc/components/tag/index.tsx deleted file mode 100644 index f0d9eb3..0000000 --- a/.codedoc/components/tag/index.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { ThemedComponentThis } from '@connectv/jss-theme'; -import { RendererLike } from '@connectv/html'; -import { CodedocTheme } from '@codedoc/core'; - - -import { TagStyle } from './style'; - - -export function Tag( - this: ThemedComponentThis, - _: any, - renderer: RendererLike, - content: any -) { - const classes = this.theme.classes(TagStyle); - return # {content} -} diff --git a/.codedoc/components/tag/style.ts b/.codedoc/components/tag/style.ts deleted file mode 100644 index b324939..0000000 --- a/.codedoc/components/tag/style.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { themedStyle } from '@connectv/jss-theme'; -import { CodedocTheme } from '@codedoc/core'; - - -export const TagStyle = themedStyle(theme => ({ - tag: { - display: 'inline-flex', - alignItems: 'center', - verticalAlign: 'middle', - height: 16, - borderRadius: 16, - padding: 8, - background: theme.light.primary, - color: theme.light.primaryContrast, - - 'body.dark &': { - background: theme.dark.primary, - color: theme.dark.primaryContrast, - }, - } -})); diff --git a/.codedoc/config.ts b/.codedoc/config.ts deleted file mode 100644 index 5d6ee96..0000000 --- a/.codedoc/config.ts +++ /dev/null @@ -1,64 +0,0 @@ - -import { configuration, - DefaultMarkdownCustomComponents, - DefaultMarkdownCustomInlineComponents, - Build, - CodedocConfig, -} from '@codedoc/core'; -import { formulaPlugin } from '@codedoc/core/components'; - -import { theme } from './theme'; -import { Card } from './components/card'; -import { Tag } from './components/tag'; - - -export const config = /*#__PURE__*/configuration({ - theme, - dest: { - html: 'dist', - assets: 'dist', - }, - page: { - title: { - base: 'Codedoc', - }, - favicon: '/favicon.ico', - meta: { - subject: 'Beautiful and Modern Software Documentation', - description: 'An open-source tool to help you easily create best-in-class software documentation for your projects', - keywords: [ - 'documentation', - 'docs', - 'software', - 'code', - 'open-source', - 'open source', - 'codedoc', - 'document', - 'elegant', - 'beautiful', - 'modern', - ] - } - }, - misc: { - github: { - user: 'CONNECT-platform', - repo: 'codedoc', - }, - gitter: { - room: 'connectv/codedoc' - } - }, - plugins: [formulaPlugin], - markdown: { - customComponents: { - ...DefaultMarkdownCustomComponents, - Card, - }, - customInlineComponents: { - ...DefaultMarkdownCustomInlineComponents, - Tag, - } - } -}); \ No newline at end of file diff --git a/.codedoc/content/footer.tsx b/.codedoc/content/footer.tsx deleted file mode 100644 index 0768db9..0000000 --- a/.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/.codedoc/content/header.tsx b/.codedoc/content/header.tsx deleted file mode 100644 index a3524a8..0000000 --- a/.codedoc/content/header.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { CodedocConfig } from '@codedoc/core'; -import { Header as _Header, GithubButton } from '@codedoc/core/components'; - - -export function Header(config: CodedocConfig, renderer: any) { - return ( - <_Header>{config.misc?.github ? - - -

-
- : ''} - - - MIT License
- Copyright © 2020
- CONNECT-platform
- -
- - ) -} diff --git a/.codedoc/content/index.tsx b/.codedoc/content/index.tsx deleted file mode 100644 index 808ed46..0000000 --- a/.codedoc/content/index.tsx +++ /dev/null @@ -1,38 +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={