Skip to content

Import docs repo #2948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 210 commits into from
Jul 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
6731f29
First commit
NateTheDev1 Sep 18, 2023
b6a5510
Docs config generating well
NateTheDev1 Sep 18, 2023
68c9eea
Added tag documentation
NateTheDev1 Sep 18, 2023
32b6e94
Added docs about images
NateTheDev1 Sep 18, 2023
a592f0e
Added support for previous and next key
NateTheDev1 Sep 19, 2023
7051be0
Removed excess
NateTheDev1 Sep 28, 2023
3651aed
Changed part 1 of unity tut
NateTheDev1 Sep 28, 2023
fac941e
LICENSE.txt and basic README.md
jdetter Oct 12, 2023
858183d
Merge pull request #1 from clockworklabs/jdetter/add-license-and-readme
jdetter Oct 12, 2023
540293a
Update index.md
cloutiertyler Oct 12, 2023
45032f7
Update index.md
cloutiertyler Oct 12, 2023
f467e18
Including this line for completeness
jdetter Oct 12, 2023
49ba9c3
Merge pull request #2 from clockworklabs/jdetter/small-license-update
jdetter Oct 12, 2023
59fc108
C# Quickstart is working
jdetter Oct 12, 2023
d94a485
Python quickstart updated
jdetter Oct 12, 2023
8bcfd16
Another small python quickstart fix
jdetter Oct 12, 2023
fa3ca74
Merge pull request #3 from clockworklabs/jdetter/sdk-docs-updates
jdetter Oct 12, 2023
4b1078b
Fix Nuget command
jdetter Oct 12, 2023
a6a2419
Applied Phoebe's patch
jdetter Oct 12, 2023
3d28d88
Merge pull request #5 from clockworklabs/jdetter/another-sdk-docs-update
jdetter Oct 12, 2023
10f6d69
This was an error in applying a patch (#6)
jdetter Oct 13, 2023
c78d478
Unity Tutorial Updates (#7)
jdetter Oct 14, 2023
0c28c87
Addressing Chippy's feedback (#8)
jdetter Oct 15, 2023
17c3c12
Update C# docs for connect/disconnect (#9)
RReverser Oct 25, 2023
7f1b156
Fix syntax highlighting (#10)
jdetter Oct 26, 2023
8dcb3c9
Update index.md
cloutiertyler Nov 21, 2023
5129f3e
Merge pull request #11 from clockworklabs/cloutiertyler-patch-1
cloutiertyler Nov 21, 2023
34fdd1f
Update index.md
cloutiertyler Nov 22, 2023
6ef985f
Added nav.ts
cloutiertyler Nov 22, 2023
34320f9
Merge pull request #12 from clockworklabs/docs-fix
cloutiertyler Nov 22, 2023
dbc1745
Removed satisfies keyword for better Typescript compat
cloutiertyler Nov 22, 2023
7d74374
Added slugs to nav
cloutiertyler Nov 23, 2023
31a9778
Ask users to install .NET 8
RReverser Nov 27, 2023
355d5fa
Fix most (but possibly not all) links in the docs
cloutiertyler Nov 28, 2023
fe6b7b7
Update nav.ts
NateTheDev1 Nov 28, 2023
078a62a
Merge pull request #15 from clockworklabs/NateTheDev1-patch-1
NateTheDev1 Nov 28, 2023
603b065
Created buildeR
NateTheDev1 Nov 28, 2023
5797092
Merge pull request #17 from clockworklabs/docs-js-compiler
cloutiertyler Nov 28, 2023
8ba8298
Merge pull request #14 from clockworklabs/tyler/0.8/links-fix
cloutiertyler Nov 28, 2023
3d014fb
Reorganized the doc paths to match slugs and removed _category.json f…
cloutiertyler Nov 29, 2023
033573d
Merge pull request #18 from clockworklabs/tyler/reorg
cloutiertyler Nov 29, 2023
9f9bf57
Revert "Reorganized the doc paths to match slugs and removed _categor…
cloutiertyler Nov 29, 2023
f9125b6
Merge pull request #19 from clockworklabs/revert-18-tyler/reorg
cloutiertyler Nov 29, 2023
b21ec86
Update index.md
cloutiertyler Dec 8, 2023
21b73f1
Update index.md
cloutiertyler Dec 8, 2023
f2a45ca
Merge pull request #20 from clockworklabs/cloutiertyler-patch-2
cloutiertyler Dec 8, 2023
95a2224
Update index.md
cloutiertyler Dec 16, 2023
120a48b
Merge pull request #22 from clockworklabs/cloutiertyler-patch-3
cloutiertyler Dec 16, 2023
f3df3a4
Update index.md
cloutiertyler Dec 16, 2023
afd8fc2
Merge pull request #13 from clockworklabs/ingvar/net-8
cloutiertyler Dec 16, 2023
e5b129e
Revert "Revert "Reorganized the doc paths to match slugs and removed …
cloutiertyler Dec 16, 2023
8ef99bf
Typescript SDK 0.8 changes (#21)
drogus Dec 18, 2023
00e3cad
Update README.md
cloutiertyler Jan 24, 2024
0e02ad4
WebSocket API ref: remove `row_pk`. (#29)
gefjon Feb 28, 2024
7b3b96c
Dylan/onboarding-upgrades (#28)
dylanh724 Mar 29, 2024
d6d31b5
Unity tutorial - C# parity (#31)
dylanh724 Apr 25, 2024
a92dbc0
fix: Docs build, pnpm, vm evaluate (#46)
PuruVJ May 1, 2024
30f628d
Revert "fix: Docs build, pnpm, vm evaluate (#46)" (#48)
cloutiertyler May 2, 2024
6c11566
fix: Docs build, pnpm, vm evaluate (#46) (#50)
cloutiertyler May 2, 2024
6a07158
Revert "fix: Docs build, pnpm, vm evaluate (#46) (#50)" (#52)
cloutiertyler May 2, 2024
35640c1
fix: Unity tutorial slugs (#51)
PuruVJ May 2, 2024
fb32452
fix: Broken docs links (#53)
PuruVJ May 22, 2024
f10dcf2
Fix the C# module link in overview (#54)
bfops May 23, 2024
f813a29
Fix the C# module link in part 1 (#55)
bfops May 23, 2024
fce4df6
Update docs for `#[spacetimedb(table)]` (#61)
bfops Jun 6, 2024
c86e3da
Revert "Update docs for `#[spacetimedb(table)]` (#61)" (#62)
bfops Jun 6, 2024
7cd55a0
Update response of `/database/info` (#64)
kim Jun 14, 2024
1ce3b53
Update docs for making tables public/private (#63)
bfops Jun 14, 2024
1f97c42
Remove CreateInstance() from C# client docs (#69)
RReverser Jun 18, 2024
4b9b82c
DbEventArgs -> ReducerContext in C# API docs (#66)
RReverser Jun 18, 2024
5b3c856
Remove obsolete C# module imports (#67)
RReverser Jun 18, 2024
780884f
Update docs for Consistent Filtering proposal (#68)
RReverser Jun 18, 2024
4e15ed1
Update C# tagged enum docs (#65)
RReverser Jun 18, 2024
6317ec1
CSharp Module tweak & Unity Tutorial part 1, 2b, 3 tweaks (#56)
Lethalchip Jun 27, 2024
7472a4c
Remove Python & update "coming soon" languages (#72)
bfops Jul 26, 2024
cd924d2
scheduler table doc update (#73)
Shubham8287 Aug 2, 2024
73c3918
Shub/revert scheduler table doc (#76)
Shubham8287 Aug 2, 2024
efcc979
Update quickstart.md (#74)
cloutiertyler Aug 9, 2024
c475984
scheduler table doc update (#77)
Shubham8287 Aug 9, 2024
1b9e7d3
Update quickstart.md (#81)
cloutiertyler Aug 29, 2024
61f427d
Update Rust Quickstart to use correct function to find User (#80)
Savalige Aug 29, 2024
5631393
Explicitly remind the reader to start the server (#43)
ike709 Aug 29, 2024
9aad24e
Fix broken tutorial package link (#86)
jdetter Sep 16, 2024
6412318
prettier (#85)
PuruVJ Sep 19, 2024
bb057fc
Update quickstart.md (#84)
cloutiertyler Sep 24, 2024
53d27b4
Fix typo in modules/rust/index.md (#83)
modagavr Sep 24, 2024
59a90c6
Update part-2b-c-sharp.md (#75)
rlneumiller Sep 24, 2024
a749ccb
Fixed code examples in rust reference regarding insertion (#42)
Muthsera Sep 24, 2024
2a0ba3d
Rust client quickstart updated for 0.12 (#92)
jdetter Oct 2, 2024
4267878
I didn't notice that auto-merge was enabled, so here's my review (#94)
gefjon Oct 2, 2024
0fa848c
Update Rust SDK ref for the new SDK (#93)
gefjon Oct 2, 2024
aba1739
Updated rust quickstart for 0.12 (#88)
jdetter Oct 3, 2024
151039d
Update rust index page for 0.12 (#89)
jdetter Oct 3, 2024
d8e7baa
Added migration guide for v0.12 (#95)
cloutiertyler Oct 4, 2024
89ab48c
Whitespace (#98)
cloutiertyler Oct 4, 2024
88eeb1c
Add note about integer literal type inference (#100)
gefjon Oct 22, 2024
0557d0e
Style guide for our docs (#110)
gefjon Nov 26, 2024
85c137c
Added .DS_store to the .gitignore
cloutiertyler Dec 31, 2024
48bab90
Added a script to check the validity of docs links and a .github acti…
cloutiertyler Jan 3, 2025
e094449
Rewrite index.md (#111)
kazimuth Jan 3, 2025
639b926
Switches to a canonical GitHub slugger format so that our slugs alway…
cloutiertyler Jan 3, 2025
f2c0869
Describe how to define multiple tables with the same type (#113)
RReverser Jan 6, 2025
a19cc48
Fix missing tick marks in Rust quickstart (#124)
cloutiertyler Jan 7, 2025
bade25d
Add vocabulary to style guide, update index.md accordingly (#126)
kazimuth Jan 8, 2025
96710da
Blackholio Tutorial Update (#128)
cloutiertyler Jan 16, 2025
c2e4314
Made fixes to the tutorial for changes that were introduced to the C#…
cloutiertyler Jan 16, 2025
20a8ce2
Add remark to style guide inspired by SpacetimeDB#2050 (#133)
kazimuth Jan 16, 2025
9a33bfc
Addresses feedback that John provided (#137)
cloutiertyler Jan 18, 2025
0db1dc0
Update quickstart.md
cloutiertyler Jan 18, 2025
80e886a
Rekhoff/unity blackhol.io tutorial switcher (#140)
rekhoff Jan 24, 2025
011187d
Changed subscript to SubscribeToAllTables (#155)
rekhoff Jan 27, 2025
2ab7e5e
Updated the TypeScript quickstart guide to use the new 1.0 API (#141)
cloutiertyler Jan 28, 2025
3c15d8a
Update Rust client SDK docs for SpacetimeDB#2118 (#130)
gefjon Jan 28, 2025
8355ac2
docs(70): The 1.0 SQL spec
joshua-spacetime Jul 16, 2024
f26e9cc
Small TS SDK Quickstart Fixes (#157)
cloutiertyler Feb 8, 2025
6c11c86
Style guide: add formatting advice for GUI elements and menu paths (#…
gefjon Feb 8, 2025
094f6c9
Remove WebSocket api docs and all references to them (#165)
joshua-spacetime Feb 12, 2025
860edb4
CLI docs (#168)
bfops Feb 19, 2025
fa32101
Add link to the `cli` (#171)
mamcx Feb 20, 2025
3bccc07
Rename satn.md -> sats-json.md (#158)
coolreader18 Feb 21, 2025
ec14d20
Fix auto_inc attribute name (#175)
mamcx Feb 21, 2025
43a1632
Document LIMIT and COUNT (#178)
joshua-spacetime Feb 24, 2025
9efb7f0
Add best practices for Spacetime SQL (#180)
joshua-spacetime Feb 25, 2025
9a86ea1
API for mutable subscriptions (#166)
joshua-spacetime Feb 25, 2025
7b0ad99
Remove references to SpacetimeDB 0.6
joshua-spacetime Feb 25, 2025
df263b1
Remove reference to set energy-balance in http api
joshua-spacetime Feb 25, 2025
53d99af
Remove references to testnet
joshua-spacetime Feb 25, 2025
7ed444c
Remove 0.12 migration guide
joshua-spacetime Feb 26, 2025
d41bc73
Update to C# Quickstart-Chat Server Module and Client SDK tutorial do…
rekhoff Feb 26, 2025
8d04c3e
Move Rust Module SDK reference to docs.rs (#114)
kazimuth Feb 26, 2025
9e8463a
Document reducer semantics wrt. transactionality (#185)
Centril Feb 27, 2025
5943e6f
Document behaviour of SEQUENCES (#174)
mamcx Feb 27, 2025
05f6de9
Update Rust client SDK quickstart for 1.0 API (#162)
gefjon Feb 28, 2025
7c87879
Add docs for standalone config.toml (#190)
coolreader18 Feb 28, 2025
f38e72e
Update docs for http api (#188)
coolreader18 Feb 28, 2025
fdfe68a
Update Rust SDK ref, and also a few small fixes (#172)
gefjon Mar 3, 2025
11b45c1
How-to: Incremental Migrations (#127)
gefjon Mar 3, 2025
84acba2
Updates to blackhol.io tutorials (#194)
rekhoff Mar 3, 2025
bc6ecab
Updated with corrected table names to lower case, for compatibility w…
rekhoff Mar 3, 2025
12a1fdf
Small doc fixes potpourri (#198)
gefjon Mar 3, 2025
ebce4c2
Fixes the typescript quickstart for the new subscription API (#161)
cloutiertyler Mar 3, 2025
8d68997
Multiplayer bug fix in tutorial (#169)
jdetter Mar 3, 2025
b8c8a0f
Add instructions for deploying to maincloud (#167)
bfops Mar 4, 2025
52b80ef
C# Module Library docs (#193)
kazimuth Mar 4, 2025
68a8daa
C# sdk reference (#191)
joshua-spacetime Mar 4, 2025
973b623
Describe how a JWT's sub/iss are translated into an Identity (#204)
coolreader18 Mar 4, 2025
6cce14e
Rekhoff/blackholio fixes (#205)
rekhoff Mar 4, 2025
a97ca01
Bump Typescript SDK Version in Quickstart (#208)
jdetter Mar 4, 2025
d9ef0a6
Fix code error and wrong code block (#210)
hardliner66 Mar 4, 2025
707446a
Self-Hosted guide (#206)
jdetter Mar 4, 2025
990fe06
Bump typescript version to 1.0.2 (#213)
jdetter Mar 4, 2025
cfba6bb
Update CLI docs for #2349 (#215)
bfops Mar 5, 2025
a0e30f3
Remove stale references to removed CLI functions (#218)
bfops Mar 6, 2025
92d22cc
Updated to correct old timestamp format. (#221)
rekhoff Mar 7, 2025
35c287d
Clarify what is a valid module name (#252)
coolreader18 Mar 7, 2025
9a88da8
Removed double semi-colon (#254)
cloutiertyler Mar 10, 2025
521da1d
Explain `spacetime login` (#217)
bfops Mar 11, 2025
efd9d86
Updated tutorial for Blackholio/pull/19 (#163)
cloutiertyler Mar 12, 2025
be4c2ef
Adjust the BSATN doc to fit reality better (#216)
Centril Mar 12, 2025
3887c47
Added "Connecting to Maincloud" section to part-4.md (#275)
otdavies Mar 25, 2025
8a0fc18
TS quickstart: Install latest SDK, not specific version (#280)
gefjon Apr 2, 2025
fbf1543
Correction on c# server module quickstart (#253)
kaneviggers Apr 4, 2025
96aeffa
Fixed Minor Typos in Unity Tutorial (#273)
blindgoat Apr 4, 2025
0818aff
Small fix on part-3.md (#264)
AdielMag Apr 4, 2025
160cb57
fix(ts-sdk): correct the function signature of onConnectError (#255)
cjodo Apr 4, 2025
fade50a
Fix typo (#289)
heliam1 Apr 9, 2025
dc7ae16
Update the timestamp format output by spacetime sql in the quickstart…
joshua-spacetime Apr 9, 2025
6e15325
CI - Add release branch check (#270)
bfops Apr 12, 2025
c80417e
Added a preliminary llms.md/.txt file to the repo to help LLMs genera…
cloutiertyler Apr 14, 2025
dd829e6
Typo fix quickstart.md (#294)
8Times Apr 14, 2025
14b34eb
Update quickstart.md (#295)
torjusik Apr 14, 2025
40d6688
Reference docs for row level security (#291)
joshua-spacetime Apr 15, 2025
289396f
Add convention for table names to style guide (#300)
gefjon Apr 15, 2025
0ba2b78
Fix typo in unity/part-2.md (#298)
waaverecords Apr 15, 2025
228436c
Deploying: Maincloud: add section for connecting via SDKs (#311)
bfops Apr 15, 2025
e7cb1ee
Add docs for indexable types to C# (#285)
gefjon Apr 16, 2025
1cb61db
remove specific programming lang for server module code (#312)
tamaro-skaljic Apr 16, 2025
b74b5a6
fix sql identifier casing in c# quickstart test query #220 (#309)
tamaro-skaljic Apr 16, 2025
31c9ee5
Rename module to database where appropriate (#277)
tamaro-skaljic Apr 16, 2025
b1b4724
Remove experimental label of C# #246 (#305)
tamaro-skaljic Apr 16, 2025
6656120
rename http/index.md to "Authorization" #235 (#308)
tamaro-skaljic Apr 16, 2025
c7f89fa
Revert CLI reference to match what the CLI outputs (#317)
bfops Apr 17, 2025
c033449
CI - Check the CLI docs (#318)
bfops Apr 17, 2025
11aeb5e
Fixed typo (#320)
torjusik Apr 21, 2025
4b48e00
fix links from rls docs to sql docs on website (#323)
tamaro-skaljic Apr 21, 2025
81ef6a0
Update docs links to remove index.md (#316)
jsdt Apr 21, 2025
b27ed08
Fix typo in quickstart.md (#331)
lokimckay Apr 23, 2025
a703394
rls docs self-join example: undefined 'u' sql name -> 'a' (#330)
rapus95 Apr 23, 2025
3d1fa97
CI - Expand CI-triggering events (#332)
bfops Apr 24, 2025
8508bbf
Subscribe to all queries together in the ts quickstart. (#297)
jsdt Apr 25, 2025
45a83c9
Correcting Reducer Callback Information in llms.md (#335)
Lethalchip Apr 28, 2025
53e0b77
fix wrong quote usage and copy the "start the server" section from c#…
tamaro-skaljic Apr 29, 2025
0cca3d9
updated dotnet add package (#337)
Lethalchip Apr 30, 2025
ec37594
Fix link checking (#340)
bfops May 1, 2025
694bc48
fix typo (#339)
jcurbelo May 2, 2025
6b4433b
Add "Subscription Semantics" page (#278)
gefjon May 5, 2025
f469676
Fix blocking publish route (#338)
jdetter May 6, 2025
51883b1
Add directions for navigating to the dashboard (#326)
cloutiertyler May 6, 2025
ed1808d
Fixed a typo with acquainted (#322)
cloutiertyler May 6, 2025
b230a92
Now noting that StdbModule.csproj is important (#327)
cloutiertyler May 6, 2025
be1c2e1
Stronger wording to direct users to working unity versions (#334)
Lethalchip May 6, 2025
e8a0dfd
Fixed typo in quickstart.md (#344)
jstreibel May 7, 2025
7528afe
Fixed DB_NAME name mismatch (#346)
jstreibel May 9, 2025
5d4cce6
Document sql reserved identifiers #266 (#302)
tamaro-skaljic May 16, 2025
f3a7e8c
Remove double code-lang buttons (#347)
sdawka May 16, 2025
313fdd2
RLS Documentation - Invalid SQL Query (#351)
wes-sleeman May 22, 2025
0584e75
Fix TypeScript Quickstart wrong import (#349)
toqueteos Jun 3, 2025
4c470f0
Fix example that was still rust-ey in C# ref (#333)
gefjon Jul 14, 2025
eecc591
Document WebSocket config for standalone (#353)
kim Jul 16, 2025
5fe544a
[bfops/import-docs]: Merge remote-tracking branch 'temp-docs/master' …
bfops Jul 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions docs/.github/workflows/check-cli-reference.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
on:
pull_request:
push:
branches:
- master
merge_group:
workflow_dispatch:
inputs:
ref:
description: 'SpacetimeDB ref'
required: false
default: ''
permissions: read-all

name: Check CLI docs

jobs:
cli_docs:
runs-on: ubuntu-latest
steps:
- name: Find Git ref
shell: bash
run: |
echo "GIT_REF=${{ github.event.inputs.ref || 'master' }}" >>"$GITHUB_ENV"
- name: Checkout sources
uses: actions/checkout@v4
with:
repository: clockworklabs/SpacetimeDB
ref: ${{ env.GIT_REF }}
- uses: dsherret/rust-toolchain-file@v1
- name: Checkout docs
uses: actions/checkout@v4
with:
path: spacetime-docs
- name: Check for docs change
run: |
cargo run --features markdown-docs -p spacetimedb-cli > ../spacetime-docs/docs/cli-reference.md
cd spacetime-docs
# This is needed because our website doesn't render markdown quite properly.
# See the README in spacetime-docs for more details.
sed -i'' -E 's!^(##) `(.*)`$!\1 \2!' docs/cli-reference.md
sed -i'' -E 's!^(######) \*\*(.*)\*\*$!\1 <b>\2</b>!' docs/cli-reference.md
git status
if git diff --exit-code HEAD; then
echo "No docs changes detected"
else
echo "It looks like the CLI docs have changed."
echo "These docs are expected to match exactly the helptext generated by the CLI in SpacetimeDB (${{env.GIT_REF}})."
echo "Once a corresponding change has merged in SpacetimeDB, re-run this check."
echo "See https://github.com/clockworklabs/spacetime-docs/#cli-reference-section for more info on how to generate these docs from SpacetimeDB."
exit 1
fi
30 changes: 30 additions & 0 deletions docs/.github/workflows/check-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check Link Validity in Documentation

on:
pull_request:
branches:
- master
push:
branches:
- master
merge_group:

jobs:
check-links:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # or the version of Node.js you're using

- name: Install dependencies
run: |
npm install

- name: Run link check
run: |
npm run check-links
23 changes: 23 additions & 0 deletions docs/.github/workflows/git-tree-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Git tree checks

on:
pull_request:
types: [opened, edited, reopened, synchronize]
branches:
- release
permissions: read-all

jobs:
check_base_ref:
name: Release branch restriction
runs-on: ubuntu-latest
steps:
- if: |
github.event_name == 'pull_request' &&
github.event.pull_request.base.ref == 'release' &&
! startsWith(github.event.pull_request.head.ref, 'release-')
run: |
echo 'Only `release-*` branches are allowed to merge into the release branch `release`.'
echo 'Are you **sure** that you want to merge into release?'
echo 'Is this **definitely** just cherrypicking commits that are already in `master`?'
exit 1
44 changes: 44 additions & 0 deletions docs/.github/workflows/validate-nav-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Validate nav.ts Matches nav.js

on:
pull_request:
branches:
- master
push:
branches:
- master
merge_group:

jobs:
validate-build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install dependencies
run: |
npm install

- name: Backup existing nav.js
run: |
mv docs/nav.js docs/nav.js.original

- name: Build nav.ts
run: |
npm run build

- name: Compare generated nav.js with original nav.js
run: |
diff -q docs/nav.js docs/nav.js.original || (echo "Generated nav.js differs from committed version. Run 'npm run build' and commit the updated file." && exit 1)

- name: Restore original nav.js
if: success() || failure()
run: |
mv docs/nav.js.original docs/nav.js
5 changes: 5 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/.vscode
.idea
*.log
node_modules
.DS_store
11 changes: 11 additions & 0 deletions docs/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"arrowParens": "avoid",
"jsxSingleQuote": false,
"trailingComma": "es5",
"endOfLine": "auto",
"printWidth": 80
}
176 changes: 176 additions & 0 deletions docs/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS
51 changes: 51 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## SpacetimeDB Documentation

This repository contains the markdown files which are used to display documentation on our [website](https://spacetimedb.com/docs).

### Making Edits

To make changes to our docs, you can open a pull request in this repository. You can typically edit the files directly using the GitHub web interface, but you can also clone our repository and make your edits locally. To do this you can follow these instructions:

1. Fork our repository
2. Clone your fork:

```bash
git clone ssh://git@github.com/<username>/spacetime-docs
```

3. Make your edits to the docs that you want to make + test them locally
4. Commit your changes:

```bash
git add .
git commit -m "A specific description of the changes I made and why"
```

5. Push your changes to your fork as a branch

```bash
git checkout -b a-branch-name-that-describes-my-change
git push -u origin a-branch-name-that-describes-my-change
```

6. Go to our GitHub and open a PR that references your branch in your fork on your GitHub

> NOTE! If you make a change to `nav.ts` you will have to run `npm run build` to generate a new `docs/nav.js` file.

#### CLI Reference Section
1. Make sure that https://github.com/clockworklabs/SpacetimeDB/pull/2276 is included in your `spacetimedb-cli` binary
1. Run `cargo run --features markdown-docs -p spacetimedb-cli > cli-reference.md`

We currently don't properly render markdown backticks and bolding that are inside of headers, so do these two manual replacements to make them look okay (these have only been tested on Linux):
```bash
sed -i'' -E 's!^(##) `(.*)`$!\1 \2!' docs/cli-reference.md
sed -i'' -E 's!^(######) \*\*(.*)\*\*$!\1 <b>\2</b>!' docs/cli-reference.md
```

### Checking Links

We have a CI job which validates internal links. You can run it locally with `npm run check-links`. This will print any internal links (i.e. links to other docs pages) whose targets do not exist, including fragment links (i.e. `#`-ey links to anchors).

## License

This documentation repository is licensed under Apache 2.0. See LICENSE.txt for more details.
Loading
Loading