Commit Graph

20 Commits

Author SHA1 Message Date
Tyler Cloutier acf8bc8903 Merge origin/master into tyler/claude-docs
Resolved conflicts:
- crates/cli/build.rs: kept AI rules functions, updated path comment
- docs quickstarts: deleted old files (content moved to chat app tutorial),
  applied URL updates to chat-app.md and STYLE.md
- docs/llms benchmark files: accepted master version

Also added React to QuickstartLinks component.
2026-01-09 13:08:39 -05:00
Tyler Cloutier 8a2e077f26 Fixed styling to be just so for the nav bar 2026-01-08 23:26:48 -05:00
Tyler Cloutier 0c8c8a8c42 Rename database docs files and update breadcrumb styling
- Rename developing-databases.md to spacetime-dev.md
- Rename building-publishing.md to spacetime-publish.md
- Move transactions-atomicity.md to come first in order
- Add custom breadcrumb styling: chevron separator, home icon, active page color
2026-01-08 20:56:56 -05:00
Tyler Cloutier 6dda61b5bb Minor change 2026-01-08 20:15:43 -05:00
Tyler Cloutier 9851d9fada Small fixes 2026-01-08 17:55:24 -05:00
Tyler Cloutier 66e9a7e6b4 Add two-column step layout for quickstarts
Create Steps component with StepByStep, Step, StepText, and StepCode
exports for structured quickstart guides. CSS uses counters for
automatic step numbering with a two-column grid layout (description
left, code right). Also adds max-width to InstallCardLink.
2026-01-08 13:14:39 -05:00
Tyler Cloutier b1f86b24d8 Improve sidebar category navigation and styling
- Move category index docs outside their directories (like Convex pattern)
  so clicking a category label navigates to its overview page without
  showing a duplicate child item
- Style active category state to extend full width including chevron
- Use Docusaurus .menu__caret button for chevron instead of ::after
- Fix broken links in index pages and csharp-reference
- Balance caret padding for visual alignment
2026-01-08 12:15:05 -05:00
Tyler Cloutier 2bbf5019ef Clean up chat app tutorial and add tabs spacing
- Remove language-specific install headers (Install .NET 8, Install Rust)
- Add margin-top to tabs elements for better visual separation
2026-01-07 22:08:31 -05:00
Tyler Cloutier 8dd38597ee Update link styling and navbar spacing
- Change markdown body links from green to neutral gray (#B6C0CF)
- Add underline decoration to links per Figma design
- Increase navbar right items spacing from 24px to 32px
2026-01-07 21:59:40 -05:00
Tyler Cloutier 0bb1acda38 Improve docs sidebar navigation and styling
- Restructure sidebar with static section headers (INTRO, CORE CONCEPTS, etc.)
  using HTML items instead of collapsible categories
- Flatten Getting Started items directly under INTRO section
- Add Ask AI Chat as direct doc link with star icon
- Add right-aligned chevrons that rotate on expand/collapse
- Update heading spacing (h2: 48px, h3: 32px, h4: 24px top margins)
- Add paragraph spacing (24px bottom margin)
- Update hover color to full #E6E9F0
- Demote tutorial tab headings to h3/h4 to reduce TOC clutter
- Add toc_max_heading_level: 2 to chat-app tutorial
2026-01-07 21:52:54 -05:00
Tyler Cloutier ffee7bc6f0 Restore original doc IDs and slugs for quickstarts
Remove explicit doc IDs from quickstart files to let Docusaurus
auto-generate them from the file path, matching what QuickstartLinks.tsx
expects. Also restore C# slug to /quickstarts/c-sharp.
2026-01-07 00:01:48 -05:00
Tyler Cloutier 6fc98558dd Fix QuickstartLinks to use new doc IDs 2026-01-06 23:59:34 -05:00
Jason Larabie 48b8a31fe0 Refactor /docs to close in on the final form (#3917)
# Description of Changes

Closes: #3895 
- Added third tier expanding folder
- Merged most into intro + core concepts 
- Collapsed modules + database into one
- Moved several documents to how-to to streamline the core concepts
- Added warning to RLS to use views
- refactored all links 
- Moved How To and References into Developer Resources
- Fixed TypeScript View code

Sample: (Getting Started will start expanded due to being the initial
page)
<img width="293" height="746" alt="image"
src="https://github.com/user-attachments/assets/6abc3a0d-1ae2-4886-bda7-11f5565afecf"
/>


# API and ABI breaking changes

N/A

# Expected complexity level and risk

1

# Testing

- [X] Updated the quickstarts.py and generate-cli tooling

---------

Signed-off-by: Jason Larabie <jason@clockworklabs.io>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
2025-12-23 15:06:57 +00:00
Jason Larabie e9d2b117cc Refactor /docs into Concepts (#3877)
# Description of Changes

Refactoring all sections to match a concept based approach to the docs.

Closes: #3840 

Currently:
- Modules - Closes: #3841 
- Databases - Closes: #3842 
- Tables - Closes: #3843 
- Reducers - Closes: #3844 
- Procedures - Closes: #3845
- Views - Closes: #3846 

# API and ABI breaking changes

N/A

# Expected complexity level and risk

1

# Testing

- [x] Walking through all code references before pushing

---------

Signed-off-by: Jason Larabie <jason@clockworklabs.io>
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
2025-12-17 23:13:56 +00:00
clockwork-tien 0c82b6559d Docs: Update docs nav height to 56px (#3788)
# Description of Changes

- Update docs nav height to 56px

## Screenshots:

<img width="1256" height="55" alt="image"
src="https://github.com/user-attachments/assets/df070fb2-f3c8-4f17-ae58-6a6aa72c8033"
/>

<!-- Please describe your change, mention any related tickets, and so on
here. -->

# API and ABI breaking changes

<!-- If this is an API or ABI breaking change, please apply the
corresponding GitHub label. -->

# Expected complexity level and risk

<!--
How complicated do you think these changes are? Grade on a scale from 1
to 5,
where 1 is a trivial change, and 5 is a deep-reaching and complex
change.

This complexity rating applies not only to the complexity apparent in
the diff,
but also to its interactions with existing and future code.

If you answered more than a 2, explain what is complex about the PR,
and what other components it interacts with in potentially concerning
ways. -->

# Testing

<!-- Describe any testing you've done, and any testing you'd like your
reviewers to do,
so that you're confident that all the changes work as expected! -->

- [ ] <!-- maybe a test you want to do -->
- [ ] <!-- maybe a test you want a reviewer to do, so they can check it
off when they're satisfied. -->
2025-12-02 15:48:45 +00:00
Tyler Cloutier 5f1cb41eb9 Fixes docs links (#3803)
# Description of Changes

This removes all usages of `pathname:///` and replaces them with
`https://spacetimedb.com/`. `pathname:///` was resolving to `/docs` in
some cases and was not verified by our link checker. Note that this
means these links will NOT work in staging.

This is a temporary fix. We should find a way to be able to link out to
the rest of the site without hardcoding the hostname in the future.

# API and ABI breaking changes

None

# Expected complexity level and risk

1

# Testing

- I tested that the links work locally (but obviously they link to the
production site).

---------

Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
2025-12-02 07:30:49 +00:00
Tyler Cloutier dbc3d86b25 First pass at reorganizing the docs and making them nice (#3494)
# Description of Changes

This PR is the first in a series of PRs which are an effort the
reorganize the docs and make it easier for people to get started using
SpacetimeDB.

This PR:

1. Renames all folders to be `kebab-case`. This is because `docIds` are
set based on folder and file names, and there is no way to override that
within a file (all you can change with `id: my-id` is the last component
of the id. Because we want to be able to access docs in react components
we need stable predictable ids.
- This also necessitates setting up a few `_category_.json` files so
that the categories do not show up as kebab case in the sidebar.
2. Adds a few React components with images so it's clearer on how to get
started
3. Reorganizes the quickstarts to be at the top of the side bar and
simplifies the server and client into a single document named for the
language
4. Sets up redirections so the old links to the old documents now point
to the new documents
5. Copies the entirety of `typography.css` from the website into this
repo for the purpose of keeping them identical
6. Makes minor fixes and improvements to the contents of the docs

In a future PR, I intend to:

1. Add a tutorial section to the docs which will include two tutorials:
Blackholio and Chat
2. Turn the chat quickstart documents into the Chat tutorial and
consolidate it into a single file with different language switchers (if
this is feasible)
3. Create a new quickstart section, which has a quickstart guide for
each platform that we support so far, namely:
    - Vanilla TypeScript
    - Vanilla JavaScript
    - Vanilla Rust
    - Vanilla C#
    - React
    - Unity
    - Unreal
4. Update the quickstart guides to do the following (in the future I
will add more platforms with this scheme):
- Use `spacetime dev --template <framework-template>` to create a new
project for the given framework
    - Insert data into the database
    - Add a new `reducer` to the template
    - Add a new `table` to the template
    - Add a new `view` to the template
    - Call the reducer from the client
    - Subscribe to the `view` from the template
5. Break up the current per language module reference files into files
about SpacetimeDB concepts with a `TabGroup` for each language, namely:
    - Modules
    - Tables
    - Reducers
    - Procedures
    - Code generation
    - DbConnection (and the SDK API)
    - Auth
    - etc.
The idea being that we should explain our platform by concept, not by
language. This will also allow us to reuse a lot of prose that is
repeated in the different language documents.

# API and ABI breaking changes

None

# Expected complexity level and risk

1

# Testing

- [x] Tested the documents locally to ensure that they render properly

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-11-26 15:06:02 +00:00
clockwork-tien 617499b7c3 Docs: Update docs nav items font weight to 600 (#3721)
# Description of Changes

- Update docs nav items font weight to 600

<!-- Please describe your change, mention any related tickets, and so on
here. -->

Screenshot:

<img width="1489" height="56" alt="image"
src="https://github.com/user-attachments/assets/175ef382-41a1-40ed-8a25-c38cc4e513f1"
/>

# API and ABI breaking changes

<!-- If this is an API or ABI breaking change, please apply the
corresponding GitHub label. -->

# Expected complexity level and risk

<!--
How complicated do you think these changes are? Grade on a scale from 1
to 5,
where 1 is a trivial change, and 5 is a deep-reaching and complex
change.

This complexity rating applies not only to the complexity apparent in
the diff,
but also to its interactions with existing and future code.

If you answered more than a 2, explain what is complex about the PR,
and what other components it interacts with in potentially concerning
ways. -->

# Testing

<!-- Describe any testing you've done, and any testing you'd like your
reviewers to do,
so that you're confident that all the changes work as expected! -->

- [ ] <!-- maybe a test you want to do -->
- [ ] <!-- maybe a test you want a reviewer to do, so they can check it
off when they're satisfied. -->

Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-11-25 22:08:29 +00:00
Tyler Cloutier a4b8abfa7a Reenabled github page edit link (#3491)
# Description of Changes

The GitHub edit links were disabled in the new docs, this reenables
them.

# API and ABI breaking changes

None

# Expected complexity level and risk

1

# Testing

<!-- Describe any testing you've done, and any testing you'd like your
reviewers to do,
so that you're confident that all the changes work as expected! -->

- [x] Tested locally that this works.
2025-10-31 14:51:03 +00:00
Julien Lavocat afb8c08b98 Docusaurus migration (#3343)
## Description of Changes

- Migrate the documentation site to **Docusaurus**.
- Add a **GitHub Action workflow** that runs `pnpm build` on pull
requests targeting `master`.
This command checks for broken links and images and ensures the site
builds correctly.
- Add a **GitHub Action workflow** to publish the docs automatically
when a merge occurs on the `docs/release` branch.

**Important**: The workflows haven't been tested yet due to the fact
that they need to be merged first before being able to run. It's a
fairly basic workflow I don't expect this to block anyone but anyways I
will make another PR with the complete changes when I can actually run
it.

---

## API and ABI Breaking Changes

No breaking changes for **SpacetimeDB** users.  
Documentation contributors should experience minimal disruption —
content is still written in Markdown.

---

## Expected Complexity Level and Risk

**Complexity:** 3/5

**Reasons:**
1. Several adjustments were made to fit Docusaurus conventions:
- Replaced our custom `:::server-rust` blocks with [Docusaurus `<Tabs/>`
components](https://docusaurus.io/docs/markdown-features/tabs).
- Converted “Note” callouts using
[admonitions](https://docusaurus.io/docs/markdown-features/admonitions)
instead of Markdown blockquotes.
- Updated all images (including Unity tutorial ones, which were
previously commented out).
- Moved images from the DO bucket into the repository at
`docs/static/images`.

2. Customized Docusaurus CSS and one component to apply our theme and
color palette.

---

## Testing

Tested locally.

---

## Review Notes

This PR involves many file changes — a full code review is likely not
productive.
Instead, please focus on verifying that the **documentation content**
was migrated correctly:

- Review sections you’re familiar with to confirm accuracy.
- Ensure formatting, links, and images render as expected.

You can follow the updated **README** for instructions on running
Docusaurus locally.

---------

Signed-off-by: Julien Lavocat <JulienLavocat@users.noreply.github.com>
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Co-authored-by: = <cloutiertyler@gmail.com>
2025-10-24 14:36:38 +00:00