Documentation site for the jsonx project
— a JSX runtime for composing JSON data. This repo contains the source for the
public docs available at https://jsonx.fart.tools/.
git clone https://github.com/FartLabs/jsonx_docs.git
cd jsonx_docsdeno task devThis starts a local dev server and watches files for changes.
deno task builddeno task previewIn the docs, you'll find:
- Introduction to
jsonxand its goals - Quick start and basic usage patterns
- Authoring JSON via JSX with
jsonx - Common recipes and examples
- Links to API references and deeper guides in the main
jsonxrepo
For the most up‑to‑date navigation and topics, see the sidebar on the live docs at
https://jsonx.fart.tools/.
- Format code:
deno fmt
- Lint code:
deno lint
- Start local server:
deno task dev
- Build production assets:
deno task build
- Preview production build locally:
deno task preview
- Update dependencies:
deno task update
Add a new markdown file under the docs directory using the numeric prefix
scheme NN_title.md (e.g., 01_getting_started.md). Sections may also live in
subdirectories with their own 00_index.md (see existing folders like
02_playgrounds/, 03_concepts/, 97_examples/).
Frontmatter fields used by existing pages are:
title: Title of the page # required
playground: example:01_animals.tsx # optional; used to power playground UIsSlug and ordering guidelines:
- Filenames use a numeric prefix
##_for ordering, e.g.,01_getting_started.md. - The numeric prefix is stripped from the URL slug. In the example above, the
slug becomes
getting_started. - The numeric prefix is used only for deterministic ordering within its directory; it is not part of the slug or displayed title.
- Section index files named
00_index.mdrepresent the base route of their directory (e.g.,03_concepts/00_index.mdmaps to theconceptssection root) and are ordered first in that section.
This repo does not currently include automated tests. Use deno fmt and
deno lint as part of your validation before submitting changes.
High-level areas commonly covered in the docs include:
- Overview and motivation
- Getting started walkthrough
- Examples and recipes
- References to core
jsonxconcepts and APIs
Issues and pull requests are welcome! Please follow the style guidelines below when contributing.
- Run
deno fmtto format the code. - Run
deno lintto lint the code. - Run
deno task devto locally serve the jsonx documentation site. - Run
deno task buildto build for production anddeno task previewto preview. - Run
deno task updateto update dependencies. - Run
deno task precommitbefore opening a PR.
This documentation site follows the licensing of the repository. See the
LICENSE file. For the jsonx project license, refer to the main
jsonx repository.
Developed with ❤️ @FartLabs
