├── .codedoc ├── build.ts ├── config.ts ├── content │ ├── footer.tsx │ ├── header.tsx │ ├── index.tsx │ └── theme.ts ├── package-lock.json ├── package.json ├── serve.ts ├── theme.ts └── tsconfig.json ├── .eslintrc ├── .github └── workflows │ ├── deploy-to-gh-pages.yml │ ├── publish-to-npm.yml │ └── test.yml ├── .gitignore ├── LICENSE ├── README.md ├── callbag-header-ish.png ├── callbag-header-ish.svg ├── callbag.svg ├── conf └── typescript │ ├── base.json │ ├── build.json │ ├── es5.json │ ├── es6.json │ └── test.json ├── docs ├── _toc.md ├── combine │ ├── combine.md │ ├── expr.md │ └── merge.md ├── factory │ ├── from-event.md │ ├── from-promise.md │ ├── interval.md │ └── of.md ├── index.md ├── operator │ ├── debounce.md │ ├── filter.md │ ├── flatten.md │ ├── map.md │ ├── scan.md │ ├── start-with.md │ └── take.md ├── util │ ├── pipe.md │ ├── source.md │ ├── subscribe.md │ └── tap.md └── what-are-callbags.md ├── package-lock.json ├── package.json ├── src ├── index.ts ├── maybe.ts ├── start-with.ts ├── tap.ts └── test │ └── index.ts ├── test.ts └── tsconfig.json /.codedoc/build.ts: -------------------------------------------------------------------------------- 1 | import { build } from '@codedoc/core'; 2 | 3 | import { config } from './config'; 4 | import { installTheme$ } from './content/theme'; 5 | import { content } from './content'; 6 | 7 | 8 | build(config, content, installTheme$, { 9 | resolve: { 10 | modules: ['.codedoc/node_modules'] 11 | }, 12 | resolveLoader: { 13 | modules: ['.codedoc/node_modules'] 14 | } 15 | }); 16 | -------------------------------------------------------------------------------- /.codedoc/config.ts: -------------------------------------------------------------------------------- 1 | 2 | import { configuration } from '@codedoc/core'; 3 | 4 | import { theme } from './theme'; 5 | 6 | 7 | export const config = /*#__PURE__*/configuration({ 8 | theme, 9 | src: { 10 | base: 'docs/' 11 | }, 12 | dest: { 13 | namespace: '/callbag-common', 14 | html: 'dist', 15 | assets: process.env.GITHUB_BUILD === 'true' ? 'dist' : '.', 16 | bundle: process.env.GITHUB_BUILD === 'true' ? 'bundle' : 'dist/bundle', 17 | styles: process.env.GITHUB_BUILD === 'true' ? 'styles' : 'dist/styles', 18 | }, 19 | page: { 20 | title: { 21 | extractor: (content) => { 22 | const base = 'callbag-common'; 23 | const pt = content.querySelector('h1')?.textContent; 24 | 25 | return pt ? `${base} | ${pt}` : base; 26 | } 27 | }, 28 | fonts: { 29 | text: { 30 | url: 'https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap', 31 | name: 'Open Sans', 32 | fallback: 'Helvetica Neue, Arial, sans-serif' 33 | } 34 | } 35 | }, 36 | misc: { 37 | github: { 38 | user: 'loreanvictor', 39 | repo: 'callbag-common', 40 | } 41 | }, 42 | }); 43 | -------------------------------------------------------------------------------- /.codedoc/content/footer.tsx: -------------------------------------------------------------------------------- 1 | import { CodedocConfig } from '@codedoc/core'; 2 | import { Footer as _Footer, GitterToggle$, Watermark} from '@codedoc/core/components'; 3 | 4 | 5 | export function Footer(config: CodedocConfig, renderer: any) { 6 | let github$; 7 | if (config.misc?.github) 8 | github$ = GitHub; 10 | 11 | let community$; 12 | if (config.misc?.gitter) 13 | community$ = 14 | 15 | if (github$ && community$) return <_Footer>{github$}
{community$}; 16 | else if (github$) return <_Footer>{github$}; 17 | else if (community$) return <_Footer>{community$}; 18 | else return <_Footer>; 19 | } 20 | -------------------------------------------------------------------------------- /.codedoc/content/header.tsx: -------------------------------------------------------------------------------- 1 | import { CodedocConfig } from '@codedoc/core'; 2 | import { Header as _Header, GithubButton, Watermark } from '@codedoc/core/components'; 3 | 4 | 5 | export function Header(config: CodedocConfig, renderer: any) { 6 | return ( 7 | <_Header>{config.misc?.github ? 8 | 9 | 15 |

16 |
17 | : ''} 18 | 19 | 20 | ) 21 | } 22 | -------------------------------------------------------------------------------- /.codedoc/content/index.tsx: -------------------------------------------------------------------------------- 1 | import { RendererLike } from '@connectv/html'; 2 | import { File } from 'rxline/fs'; 3 | import { Page, Meta, ContentNav, Fonts, ToC, GithubSearch$ } from '@codedoc/core/components'; 4 | 5 | import { config } from '../config'; 6 | import { Header } from './header'; 7 | import { Footer } from './footer'; 8 | 9 | 10 | export function content(_content: HTMLElement, toc: HTMLElement, renderer: RendererLike, file: File) { 11 | return ( 12 | } 15 | fonts={} 16 | 17 | scripts={config.page.scripts} 18 | stylesheets={config.page.stylesheets} 19 | 20 | header={
} 21 | footer={