|
1 |
| -# GitHub Blocks Template |
| 1 | +# Kerhub Blocks |
2 | 2 |
|
3 |
| -Use this repository as a starter template for building your own Blocks. |
4 |
| -## Quickstart |
| 3 | +> GitHub Blocks are under technical preview |
5 | 4 |
|
6 |
| -> 🛑 Currently, you must be flagged into the [GitHub Blocks Technical Preview](https://blocks.githubnext.com) in order to develop blocks. There is no "offline" development mode at this time. |
7 | 5 |
|
8 |
| -Fork this repo using the [`Use this template`](https://github.com/githubnext/blocks-template/generate) button above: |
| 6 | +## Blocks |
9 | 7 |
|
10 |
| - |
| 8 | +### Swagger |
11 | 9 |
|
12 |
| -Then, clone _your_ repo (not [this one!](https://github.com/githubnext/blocks-template)) and get ready for action: |
| 10 | +Provides an UI interface for your yml/json swagger files. |
13 | 11 |
|
14 |
| -```bash |
15 |
| -yarn # install dependencies |
16 |
| -yarn start # start the dev server |
17 |
| -# Or use npm, pnpm, you know the drill |
18 |
| -``` |
| 12 | +## Technical documentation |
19 | 13 |
|
20 |
| -When you visit [localhost:4000](https://localhost:4000) in your browser, you'll be |
21 |
| -redirected to the Blocks app, but your locally-developed blocks will appear in the block picker: |
22 |
| - |
23 |
| -<img alt="Block picker" src="https://user-images.githubusercontent.com/56439/181648955-101b6567-3f9b-44b3-af99-7ef3ca6161b9.png" width="418" /> |
24 |
| - |
25 |
| -(if you're using Safari (or another browser that doesn't permit calling `http` URLs from an `https` page), run `yarn start-https` and visit [https://localhost:4000](https://localhost:4000) instead.) |
26 |
| - |
27 |
| -This template includes one example File Block and one Folder Block. The dev server supports hot reloading, so make some changes, and see what they do! |
28 |
| - |
29 |
| -## Under the hood |
30 |
| - |
31 |
| -Currently, Blocks are [React](https://reactjs.org/) components. They have a well-defined contract with their surroundings, and receive a [fixed set of props](https://github.com/githubnext/blocks/blob/main/docs/Developing%20blocks/4%20API%20reference%20and%20types.md) when they are instantiated. They are developed in [TypeScript](https://www.typescriptlang.org/), and bundled with [Vite](https://vitejs.dev/). |
32 |
| - |
33 |
| -## More Info |
34 |
| - |
35 |
| -Visit [githubnext/blocks](https://blocks.githubnext.com/githubnext/blocks) for a full tutorial, documentation, and examples. |
36 |
| - |
37 |
| -You should also join us in our discord! There's a [#blocks channel](https://discord.com/channels/735557230698692749/1039950186136469535) where you can connect with us and other folks who are building Blocks: |
38 |
| - |
39 |
| -> 👋 https://discord.gg/githubnext |
40 |
| -## License |
41 |
| - |
42 |
| -MIT |
43 |
| - |
44 |
| -✌️ ❤️ |
45 |
| -_GitHub Next_ |
| 14 | +[Project Documentation](DOCUMENTATION.md) |
0 commit comments