mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 13:21:29 +04:00
Improve README and community health files (#2808)
This commit is contained in:
+30
-7
@@ -1,6 +1,15 @@
|
||||
# Contributing to Tabler
|
||||
|
||||
Thank you for wanting to contribute! This is a short overview - the full guide lives in the documentation: [How to Contribute](https://docs.tabler.io/ui/getting-started/how-to-contribute/).
|
||||
Thank you for wanting to contribute! This is a short overview — the full guide lives in the documentation: [How to Contribute](https://docs.tabler.io/ui/getting-started/how-to-contribute/).
|
||||
|
||||
## Ways to contribute
|
||||
|
||||
- **Pick a starter issue** — issues labeled [`good first issue`](https://github.com/tabler/tabler/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) are small and well-scoped, and [`help wanted`](https://github.com/tabler/tabler/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) issues welcome community help.
|
||||
- **Report a bug** — use the [bug report template](https://github.com/tabler/tabler/issues/new?template=bug_report.yml). Include steps to reproduce and, if possible, a live example (for example a JSFiddle).
|
||||
- **Suggest a feature** — use the [feature request template](https://github.com/tabler/tabler/issues/new?template=feature_request.yml) or start a [discussion](https://github.com/tabler/tabler/discussions) first if you are not sure.
|
||||
- **Improve the documentation** — docs live in `docs/pages/**/*.mdx` and follow the same pull request workflow as code.
|
||||
- **Submit a pull request** — fixes and improvements are always welcome. For large changes, please open an issue or discussion first so we can align before you invest time.
|
||||
- **Report a security issue** — do not open a public issue; follow the [security policy](SECURITY.md) instead.
|
||||
|
||||
## Quick start
|
||||
|
||||
@@ -13,15 +22,28 @@ pnpm run dev
|
||||
|
||||
This starts the preview website at [http://localhost:3000](http://localhost:3000) and the documentation at [http://localhost:3010](http://localhost:3010), both with live reload.
|
||||
|
||||
You can also skip the local setup entirely: open the repository in [GitHub Codespaces](https://codespaces.new/tabler/tabler) or a VS Code Dev Container — the configuration in `.devcontainer/` installs Node.js, pnpm and all dependencies for you.
|
||||
|
||||
## Where things live
|
||||
|
||||
- `core/` - the framework: SCSS (`core/scss/`) and JavaScript (`core/js/`)
|
||||
- `preview/` - demo website (Astro, pages in `preview/pages/*.astro`)
|
||||
- `docs/` - documentation website (Astro, pages in `docs/pages/**/*.mdx`)
|
||||
- `shared/` - components and layouts shared by preview and docs (`@shared` alias), plus `data/` and `static/`
|
||||
- `shared/data/` - JSON data for demo pages (`@data` alias)
|
||||
- `core/` — the framework: SCSS (`core/scss/`) and JavaScript (`core/js/`)
|
||||
- `preview/` — demo website (Astro, pages in `preview/pages/*.astro`)
|
||||
- `docs/` — documentation website (Astro, pages in `docs/pages/**/*.mdx`)
|
||||
- `shared/` — components and layouts shared by preview and docs (`@shared` alias), plus `data/` and `static/`
|
||||
- `shared/data/` — JSON data for demo pages (`@data` alias)
|
||||
|
||||
Do not edit `dist/` folders - they are generated by the build.
|
||||
Do not edit `dist/` folders — they are generated by the build.
|
||||
|
||||
## Useful commands
|
||||
|
||||
| Command | What it does |
|
||||
| -------------------- | ----------------------------------------------------- |
|
||||
| `pnpm run dev` | Start preview and docs dev servers with live reload |
|
||||
| `pnpm run build` | Production build of all packages |
|
||||
| `pnpm run lint` | Markdown, Prettier and SCSS variable checks |
|
||||
| `pnpm run lint:fix` | Auto-fix lint issues where possible |
|
||||
| `pnpm run test` | Run the test suites |
|
||||
| `pnpm run check` | Lint plus TypeScript type checks |
|
||||
|
||||
## Before you open a pull request
|
||||
|
||||
@@ -29,6 +51,7 @@ Do not edit `dist/` folders - they are generated by the build.
|
||||
2. **Build and test**: `pnpm run build` must pass. For docs changes, also run `pnpm run lint`.
|
||||
3. **Add a changeset** if your change affects any package: `pnpm exec changeset`. Use one sentence starting with `Added`, `Updated`, `Fixed` or `Removed`, with backticks for code tokens (for example `` Added `.btn-ghost` variant for buttons. ``).
|
||||
4. **Write the PR in English**: a concise title in present tense (max ~72 chars, no trailing period) and a short description that explains why the change is needed.
|
||||
5. **Keep the scope small**: one logical change per pull request makes reviews faster and releases safer.
|
||||
|
||||
## Code style
|
||||
|
||||
|
||||
Reference in New Issue
Block a user