-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
133 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,41 @@ | ||
<p align="center"> | ||
<a href="https://kitbook.vercel.app/"> | ||
<img src="https://raw.githubusercontent.com/jacob-8/kitbook/b96f77da81309a6ccd06693beb0f06ba8fdc0a2b/packages/kitbook/static/kitbook.svg" height="80" style="padding: 20px 0;"> | ||
</a> | ||
</p> | ||
|
||
<p align="center"> | ||
Documentation and Prototyping Workbench Tool for SvelteKit apps built with SvelteKit. | ||
Documentation, Prototyping, Inspection & Testing Workbench Tool for SvelteKit apps built with SvelteKit. | ||
<p> | ||
|
||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/kitbook"><img alt="version" src="https://img.shields.io/npm/v/kitbook?color=729B1B&label="></a> | ||
<p> | ||
|
||
<p align="center"> | ||
<a href="https://kitbook.vercel.app/">View the Kitbook used to document and build Kitbook itself</a> | ||
<a href="https://kitbook.vercel.app/">View the Kitbook Docs (and demo)</a> | ||
</p> | ||
|
||
## Kitbook Monorepo | ||
- Read the [Kitbook README](packages/kitbook/README.md) for features, examples, and more | ||
|
||
## Contributing | ||
|
||
Would love to have you help! Read the [[0-roadmap|Roadmap]] for good places to start. We use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/). | ||
|
||
[![Open in Codeflow](https://developer.stackblitz.com/img/open_in_codeflow.svg)](https:///pr.new/jacob-8/kitbook) | ||
|
||
Or work on Kitbook locally: | ||
|
||
- `pnpm i` | ||
- `pnpm stub` | ||
- `pnpm dev` | ||
|
||
To update the Kitbook code while using it in your own app, you can change your `devDependency` to point to it instead of npm by using something like `"kitbook": "link:../../../kitbook/packages/kitbook",` then run `pnpm package:watch` in Kitbook to keep it updating on changes. | ||
|
||
*If you want to commit that changed package.json dependency reference without breaking CI builds, you can change your build script to `pnpm install -F site kitbook && vite build`.* | ||
|
||
--- | ||
|
||
## svelte-pieces | ||
*If you're looked for Svelte Pieces, it has been moved to its own repository [here](https://github.com/jacob-8/svelte-pieces).* | ||
|
||
Moved to its own repository [here](https://github.com/jacob-8/svelte-pieces) | ||
[//begin]: # "Autogenerated link references for markdown compatibility" | ||
[0-roadmap|Roadmap]: packages/kitbook/src/docs/9-maintainer-notes/0-roadmap.md "Roadmap" | ||
[//end]: # "Autogenerated link references" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,41 @@ | ||
<p align="center"> | ||
<img src="https://raw.githubusercontent.com/jacob-8/kitbook/b96f77da81309a6ccd06693beb0f06ba8fdc0a2b/packages/kitbook/static/kitbook.svg" height="80" alt="Kitbook" style="padding: 20px 0;"> | ||
<a href="https://kitbook.vercel.app/"> | ||
<img src="https://raw.githubusercontent.com/jacob-8/kitbook/b96f77da81309a6ccd06693beb0f06ba8fdc0a2b/packages/kitbook/static/kitbook.svg" height="80" style="padding: 20px 0;"> | ||
</a> | ||
</p> | ||
|
||
<p align="center"> | ||
Documentation and Prototyping Workbench Tool for SvelteKit apps built with SvelteKit. | ||
Documentation, Prototyping, Inspection & Testing Workbench Tool for SvelteKit apps built with SvelteKit. | ||
<p> | ||
|
||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/kitbook"><img alt="version" src="https://img.shields.io/npm/v/kitbook?color=729B1B&label="></a> | ||
<p> | ||
|
||
<p align="center"> | ||
<a href="https://kitbook.vercel.app/">View the Kitbook used to document and build Kitbook itself</a> | ||
<a href="https://kitbook.vercel.app/">View the Kitbook Docs (and demo)</a> | ||
</p> | ||
|
||
# Kitbook Features | ||
## Contributing | ||
|
||
- File-based sidebar tree structure | ||
- MDSvex (Markdown + Svelte Components) to enable easy documenation as you build | ||
- Easy knobs allow for adjusting a component's view state (special thanks @rixo's Svench and Rich Harris' svelte-knobby!) | ||
- Quickly compare a single componenet across numerous different states | ||
Would love to have you help! Read the [[0-roadmap|Roadmap]] for good places to start. We use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/). | ||
|
||
## Examples | ||
[![Open in Codeflow](https://developer.stackblitz.com/img/open_in_codeflow.svg)](https:///pr.new/jacob-8/kitbook) | ||
|
||
| Example | Source | Playground | | ||
| ------- | ------ | ---------- | | ||
| [Kitbook's Kitbook](https://kitbook.vercel.app/) | [GitHub](https://github.com/jacob-8/kitbook/tree/main/packages/kitbook) | [Play Online](https://stackblitz.com/github/jacob-8/kitbook/tree/main/packages/kitbook) | | ||
| [Kitbook Template](https://kitbook-template.vercel.app/) (navigate to the simple example in a sub-route) | [GitHub](https://github.com/jacob-8/kitbook/tree/main/packages/template) (in Kitbook monorepo) | [Play Online](https://stackblitz.com/github/jacob-8/kitbook/tree/main/packages/template) | | ||
| [Svelte Pieces Kitbook](https://svelte-pieces.vercel.app/) | [GitHub](https://github.com/jacob-8/kitbook/tree/main/packages/svelte-pieces) (in Kitbook monorepo) | [Play Online](https://stackblitz.com/github/jacob-8/kitbook/tree/main/packages/svelte-pieces) | | ||
| [Living Dictionaries Kitbook](https://ld-parts.vercel.app/) | [GitHub](https://github.com/livingtongues/living-dictionaries/tree/main/packages/parts) | [Play Online](https://stackblitz.com/github/livingtongues/living-dictionaries/tree/main/packages/parts) | | ||
| [SvelteFireTS Kitbook](https://sveltefirets.vercel.app/) | [GitHub](https://github.com/jacob-8/sveltefirets/tree/main/packages/demo) | [Play Online](https://stackblitz.com/github/jacob-8/sveltefirets/tree/main/packages/demo) | | ||
Or work on Kitbook locally: | ||
|
||
## Contributing | ||
- `pnpm i` | ||
- `pnpm stub` | ||
- `pnpm dev` | ||
|
||
To update the Kitbook code while using it in your own app, you can change your `devDependency` to point to it instead of npm by using something like `"kitbook": "link:../../../kitbook/packages/kitbook",` then run `pnpm package:watch` in Kitbook to keep it updating on changes. | ||
|
||
*If you want to commit that changed package.json dependency reference without breaking CI builds, you can change your build script to `pnpm install -F site kitbook && vite build`.* | ||
|
||
--- | ||
|
||
*If you're looked for Svelte Pieces, it has been moved to its own repository [here](https://github.com/jacob-8/svelte-pieces).* | ||
|
||
Contributions are welcome! After cloning down the monorepo, with pnpm installed on your machine, run `pnpm i` and `pnpm dev` to get started. | ||
[//begin]: # "Autogenerated link references for markdown compatibility" | ||
[0-roadmap|Roadmap]: src/docs/9-maintainer-notes/0-roadmap.md "Roadmap" | ||
[//end]: # "Autogenerated link references" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Visual Regression Testing: In progress | ||
|
||
Beyond simply giving an easy way to mock components in a variety of states, the simple [[3-component-variants|Variants]] format of Kitbook enables easy visual regression testing of all your components using [Playwright](https://playwright.dev/). Here's how to set things up. | ||
|
||
## Install Playwright | ||
|
||
```bash | ||
npm install -D @playwright/test | ||
``` | ||
|
||
## Add a custom Playwright config | ||
|
||
|
||
## Add GitHub Actions | ||
|
||
|
||
## Image cleanup | ||
|
||
--- | ||
|
||
You've now learned the features of Kitbook as far as they have been documented. As you document and prototype your components for each situation you need, you may run into questions as to how to accomplish something. Feel free to browse the Kitbook related files in any of the provided [[8-examples|repo examples]] where Kitbook in is use. You may find your answer there. If not, please [create an issue](https://github.com/jacob-8/kitbook/issues/new), and let's discuss how you could add a needed feature. | ||
|
||
[//begin]: # "Autogenerated link references for markdown compatibility" | ||
[3-component-variants|Variants]: 3-component-variants.md "Component Variants" | ||
[8-examples|repo examples]: 8-examples.md "Examples" | ||
[//end]: # "Autogenerated link references" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d986eed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
kitbook-template – ./packages/template
kitbook-template-git-main-polylingual.vercel.app
kitbook-template-polylingual.vercel.app
kitbook-template.vercel.app
d986eed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
kitbook – ./packages/kitbook
kitbook-polylingual.vercel.app
kitbook-git-main-polylingual.vercel.app
kitbook.vercel.app