Skip to content

Commit

Permalink
fix: build after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Akiyamka committed Oct 22, 2023
1 parent 02a5b37 commit 6bc44c2
Show file tree
Hide file tree
Showing 33 changed files with 592 additions and 146 deletions.
160 changes: 72 additions & 88 deletions docs/.astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ declare module 'astro:content' {

type ContentEntryMap = {
"docs": {
<<<<<<< HEAD
"adapter/npm-cookie-baker.md": {
id: "adapter/npm-cookie-baker.md";
slug: "adapter/npm-cookie-baker";
Expand Down Expand Up @@ -237,8 +236,6 @@ declare module 'astro:content' {
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
=======
>>>>>>> 2505f77 (docs: fix build after re-arrange)
"compat/core-v1.md": {
id: "compat/core-v1.md";
slug: "compat/core-v1";
Expand Down Expand Up @@ -330,176 +327,170 @@ declare module 'astro:content' {
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/async.md": {
id: "packages/async.md";
slug: "packages/async";
"package/async.md": {
id: "package/async.md";
slug: "package/async";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/effects.md": {
id: "packages/effects.md";
slug: "packages/effects";
"package/effects.md": {
id: "package/effects.md";
slug: "package/effects";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/eslint-plugin.md": {
id: "packages/eslint-plugin.md";
slug: "packages/eslint-plugin";
"package/eslint-plugin.md": {
id: "package/eslint-plugin.md";
slug: "package/eslint-plugin";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/form-web.md": {
id: "packages/form-web.md";
slug: "packages/form-web";
"package/form-web.md": {
id: "package/form-web.md";
slug: "package/form-web";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/form.md": {
id: "packages/form.md";
slug: "packages/form";
"package/form.md": {
id: "package/form.md";
slug: "package/form";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/framework.md": {
id: "packages/framework.md";
slug: "packages/framework";
"package/framework.md": {
id: "package/framework.md";
slug: "package/framework";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/hooks.md": {
id: "packages/hooks.md";
slug: "packages/hooks";
"package/hooks.md": {
id: "package/hooks.md";
slug: "package/hooks";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/jsx.md": {
id: "packages/jsx.md";
slug: "packages/jsx";
"package/jsx.md": {
id: "package/jsx.md";
slug: "package/jsx";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/lens.md": {
id: "packages/lens.md";
slug: "packages/lens";
"package/lens.md": {
id: "package/lens.md";
slug: "package/lens";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/logger.md": {
id: "packages/logger.md";
slug: "packages/logger";
"package/logger.md": {
id: "package/logger.md";
slug: "package/logger";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
<<<<<<< HEAD
"package/npm-solid-js.md": {
id: "package/npm-solid-js.md";
slug: "package/npm-solid-js";
"package/npm-cookie-baker.md": {
id: "package/npm-cookie-baker.md";
slug: "package/npm-cookie-baker";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"package/persist-web-storage.md": {
id: "package/persist-web-storage.md";
slug: "package/persist-web-storage";
=======
"packages/npm-cookie-baker.md": {
id: "packages/npm-cookie-baker.md";
slug: "packages/npm-cookie-baker";
>>>>>>> 2505f77 (docs: fix build after re-arrange)
"package/npm-history.md": {
id: "package/npm-history.md";
slug: "package/npm-history";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/npm-history.md": {
id: "packages/npm-history.md";
slug: "packages/npm-history";
"package/npm-react.md": {
id: "package/npm-react.md";
slug: "package/npm-react";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/npm-react.md": {
id: "packages/npm-react.md";
slug: "packages/npm-react";
"package/npm-solid-js.md": {
id: "package/npm-solid-js.md";
slug: "package/npm-solid-js";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/npm-svelte.md": {
id: "packages/npm-svelte.md";
slug: "packages/npm-svelte";
"package/npm-svelte.md": {
id: "package/npm-svelte.md";
slug: "package/npm-svelte";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/persist-web-storage.md": {
id: "packages/persist-web-storage.md";
slug: "packages/persist-web-storage";
"package/persist-web-storage.md": {
id: "package/persist-web-storage.md";
slug: "package/persist-web-storage";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/persist.md": {
id: "packages/persist.md";
slug: "packages/persist";
"package/persist.md": {
id: "package/persist.md";
slug: "package/persist";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/primitives.md": {
id: "packages/primitives.md";
slug: "packages/primitives";
"package/primitives.md": {
id: "package/primitives.md";
slug: "package/primitives";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/testing.md": {
id: "packages/testing.md";
slug: "packages/testing";
"package/testing.md": {
id: "package/testing.md";
slug: "package/testing";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/timer.md": {
id: "packages/timer.md";
slug: "packages/timer";
"package/timer.md": {
id: "package/timer.md";
slug: "package/timer";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/undo.md": {
id: "packages/undo.md";
slug: "packages/undo";
"package/undo.md": {
id: "package/undo.md";
slug: "package/undo";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/url.md": {
id: "packages/url.md";
slug: "packages/url";
"package/url.md": {
id: "package/url.md";
slug: "package/url";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/utils.md": {
id: "packages/utils.md";
slug: "packages/utils";
"package/utils.md": {
id: "package/utils.md";
slug: "package/utils";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"packages/web.md": {
id: "packages/web.md";
slug: "packages/web";
"package/web.md": {
id: "package/web.md";
slug: "package/web";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
Expand Down Expand Up @@ -539,13 +530,6 @@ declare module 'astro:content' {
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"package/web.md": {
id: "package/web.md";
slug: "package/web";
body: string;
collection: "docs";
data: InferEntrySchema<"docs">
} & { render(): Render[".md"] };
"repl.mdx": {
id: "repl.mdx";
slug: "repl";
Expand Down
2 changes: 1 addition & 1 deletion docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default defineConfig({
{
label: 'Packages',
autogenerate: {
directory: 'packages',
directory: 'package',
},
},
{
Expand Down
39 changes: 39 additions & 0 deletions docs/src/content/docs/adapter/npm-history.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: npm-history
description: Reatom for npm-history
---
<!-- THIS FILE WAS AUTOGENERATED -->
<!-- DO NOT EDIT THIS FILE -->
<!-- CHECK "packages/*/README.md" -->
## Installation

```sh
npm i @reatom/npm-history
```

## Usage

You should setup `historyAtom` in the root of your app, before other dependent atoms will touch the ctx.

```ts
import { historyAtom } from '@reatom/npm-history'
import { createBrowserHistory } from 'history'

historyAtom(ctx, createBrowserHistory())
```

```ts
import { History, Location, To, Blocker } from 'history'

export interface HistoryAtom extends AtomMut<History> {
back: Action<[]>
block: Action<[blocker: Blocker], () => void>
forward: Action<[]>
go: Action<[delta: number]>
location: Atom<Location>
push: Action<[to: To, state?: any]>
replace: Action<[to: To, state?: any]>
}

export const historyAtom: HistoryAtom
```
Loading

0 comments on commit 6bc44c2

Please sign in to comment.