Repository navigation
docs: add the documentation site - #491
LeeroyHannigan wants to merge 27 commits into
Conversation
ceb6a63 to
eb8e221
Compare
Add a Docusaurus 3.10 site under website/ that builds from docs/ and publishes to GitHub Pages. The Markdown files stay where they are; the navigation is defined in website/sidebars.ts over the existing paths, with a two digit ordering prefix stripped from ids and URLs and four digit ADR and RFC numbers kept. Sections: Getting started (a new entry page, docs/start.md, that runs the development image, makes the first requests and connects an SDK, then an Install group: development image, Docker Compose, Linux, macOS, quick start from source, full walkthrough from source), Guides (including a new docs/storage-backends.md overview of the four backends), Reference (differences, limits, a link to the configuration reference, troubleshooting), Contributing (developer guide, test strategy, local database setup notes, adding a backend) and Architecture (architecture and design guides, component designs, decision records, RFCs). Project ledgers, templates, build inputs, the design directory index and the high availability draft are excluded from the site. A landing page states what ExtendDB is, shows the two container starts, and links each section. Theme tokens match extenddb.org. Search is a local index over the user-facing pages; the Architecture section is browsed from its sidebar. A remark plugin removes the per-file License section and the NOTICE blockquote at build time; the footer carries the licence and trademark statement once. The source files are unchanged on GitHub. Code blocks use two Prism themes defined in website/src/prism/themes.ts whose token colours are at least 4.5:1 against the block background in light and dark mode. Body links are underlined. Tables wrap at narrow widths and scroll inside their own box when a word is too long. The build fails on a broken link, a missing anchor or a Markdown parse error, and runs as a check on every pull request touching docs/, website/ or Cargo.toml. A push to main publishes. The repository variable DOCS_CUSTOM_DOMAIN selects the hosting: unset builds for extenddb.github.io/extenddb/, a domain builds for its root and writes a CNAME file. Content changes in docs/, made for the site and kept in the files: - Links that pointed at files outside docs/ (LICENSE, NOTICE, README, CODEOWNERS, source files) use the GitHub URL. Three dead links fixed. - Product name written ExtendDB in prose and headings on the user-facing pages; binary, container, file and configuration names stay lowercase. - Page titles equal their navigation labels. Design document titles read "Component design: X". ADR titles carry the number of their file; the ADR index lists 0017 and 0018 with the status their records state. - The MongoDB setup page gives the server port as 18443, matching every other page; the quick start clones the public repository URL and waits for the table before writing; the walkthrough names Cassandra with the other backends, orders the first requests put before delete, and states in section 5 how the endpoint, certificate and credentials differ for the development image, Compose and a source build. - The Docker Compose page fetches docker-compose.yml before starting, lists the variables the file reads with their defaults, and says what `docker compose ps -a` shows while the server starts. - Admin, deployment, troubleshooting, security model and usage guide pages agree on the backend list, TLS being always on, the backup operations that exist and the PartiQL status. - Internal ticket identifiers, draft markers and "last updated" lines removed from user-facing pages; dashes replaced with plain punctuation on those pages. - Front matter descriptions on every page that appears as a card, so the section index pages show a sentence rather than metadata.
eb8e221 to
34bea38
Compare
docs/cassandra-setup.md: main added the Container Image section, the init grants under CassandraAuthorizer, the default account's keyspace and the keyspace replication steps. This branch added front matter, a sentence-case title, GitHub URLs for links outside docs/ and plain punctuation. The application role item and the replication_factor field are main's text; the admin credentials item and the datacenter field keep this branch's punctuation. The link to docker/README-cassandra.md is a GitHub URL. docs/differences-from-dynamodb.md: main rewrote the cross-account sentence of the backup ARN row, and this branch changed the punctuation of the TagResource row. The merge keeps main's backup ARN row and this branch's TagResource row. docs/dynamodb-limits.md: main updated the date line, the maximum item size and attribute name size rows, and removed the shard iterator lifetime item from the unenforced list. This branch retitled the page, replaced the date line with an introduction and replaced the dashes. The merge keeps this branch's title, main's date line, main's two rows and list items, and this branch's punctuation in the rows and items main did not change. docs/manuals/02-design-guide.md: both sides changed the opening paragraph of Caching Design. It is main's text, which describes the auth and authz caches. docs/manuals/03-usage-guide.md: both sides split the Backups / PITR row. The two rows are main's; the Global Tables row is this branch's. docs/manuals/05-admin-guide.md: both sides changed the fanout invalidations item. It is main's text, which says the sweeps take effect when the call returns. docs/manuals/07-upgrade-manual.md: main replaced the Writing a New Migration procedure with a pointer to CONTRIBUTING.md and added two v0.1.15 entries. This branch changed the punctuation of the procedure and the v0.1.14 heading. The merge keeps main's text, with this branch's v0.1.14 heading and a GitHub URL for the CONTRIBUTING.md link. docs/manuals/10-security-model.md: main replaced the credential cache line with the Credential and Policy Caching section, and this branch changed the line's punctuation. The merge keeps main's section. docs/manuals/11-deployment-guide.md: main added the login limit sentence to the reverse proxy item, and this branch rewrote the bind_addr, firewall and reverse proxy items. The merge keeps this branch's bind_addr and firewall items and main's reverse proxy item. docs/manuals/12-extending-extenddb-storage.md: main changed the RateLimitStore item, and the SQL migrations item for the shared runner. This branch replaced the dashes in both lists. The merge keeps main's two items, with a GitHub URL for the CONTRIBUTING.md link, and this branch's punctuation in the other items. docs/troubleshooting.md: main rewrote the cause of the catalog status entry and the fix of the uninitialized catalog entry. This branch changed the product name in the first and turned the getting-started path in the second into a link. The merge keeps main's text, with this branch's link to the full walkthrough. docs/adr/0023-catalog-migrations.md, new on main, linked CONTRIBUTING.md by a relative path outside docs/, which the site's strict build refuses. The link is now a GitHub URL.
docs/manuals/11-deployment-guide.md: main changed the max_connections item of the PostgreSQL checklist to the formula that counts the data pool, the catalog pool and the backup jobs. This branch wrote the product name as ExtendDB in the two checklist items. The merge keeps main's formula and this branch's spelling in the dedicated user item. docs/troubleshooting.md: main rewrote the fix for the console login redirect, so that it names a changed password, and added an entry for the 503 answer when the catalog is unavailable. This branch wrote the product name as ExtendDB in the fix line. The merge keeps main's two entries with this branch's spelling in the fix line.
docs/adr/README.md keeps the Draft status of 0017 and 0018 from this branch and the "Superseded in part" status of 0019 from main. docs/getting-started.md keeps from main the sentence that credential import is not audit-logged and the list of what the two audit targets record. docs/manuals/03-usage-guide.md keeps the Global Tables row from this branch and the on-demand backups row from main. docs/manuals/05-admin-guide.md keeps from main the shutdown sequence, the backup store component of the health endpoint and the Data Recovery table. The prose spells the product name ExtendDB as on this branch. docs/manuals/07-upgrade-manual.md keeps the four v0.1.15 entries from main and the colon in the v0.1.14 LeadingKeys heading from this branch. docs/manuals/10-security-model.md keeps from main the export file modes sentence, the key management paragraph and the Backup and Recovery paragraph. It also keeps main's list of requests answered without an IAM decision. The prose spells the product name ExtendDB as on this branch. docs/manuals/11-deployment-guide.md keeps the one instance per catalog bullet from this branch and the backup store bullet and the shutdown timing paragraph from main. The write-pid-file line keeps the semicolon from this branch. docs/manuals/12-extending-extenddb-storage.md keeps the database names and the sequence generation paragraph from main, with the colons and the ExtendDB spelling from this branch. docs/troubleshooting.md keeps from main the dynamodb:Attributes paragraph, the removal of the two stream capture entries and the export directory entries. The v0.1.6 note spells the product name ExtendDB as on this branch.
…al and the versioning page Main added docs/manuals/14-backup-and-restore.md and docs/versioning.md after this branch was cut. Five of their links point at Markdown files outside docs/: crates/backup-store/README.md twice, README.md#storage-backends twice and SECURITY.md once. The site builds docs/ alone, and its build refuses a link to a Markdown file it does not serve. The five links now use the GitHub URL, as the other pages on this branch do for files outside docs/. GitHub readers reach the same files.
#964 on main changed the sentence at the end of every document, in NOTICE.md, in the README and in the console documentation page. The sentence now reads "ExtendDB is an open source project maintained by AWS. It is not Amazon DynamoDB or an AWS service." The site removes each page's License section at build time, so the footer is the one place the site states this. The footer now carries the sentence from #964, and the trademark line names Amazon.com, Inc. or its affiliates as the documents do.
#411 on main implemented ExecuteStatement, BatchExecuteStatement and ExecuteTransaction behind the partiql build feature, which is on by default, and docs/differences-from-dynamodb.md describes them. The PartiQL row of the usage guide's feature table still said the operations were not implemented. The row now marks the operations as available and links to the PartiQL section of the differences page, so the two pages agree.
…he versioning policy in the sidebars Main added three pages after this branch was cut, and the site built them with no sidebar entry: docs/manuals/14-backup-and-restore.md (#855), docs/verifying-images.md (#756) and docs/versioning.md (#897). Each one now sits beside the pages it belongs with. Backup and restore follows Upgrading under Guides. Verifying the container images follows Development image under Install. Versioning and support follows Limits under Reference.
Main (#835) added devtools/check-actions-pinned and the Actions pinned job, which refuse an action reference that is not a full commit SHA. The docs site workflow named five actions by tag, so the job failed on this branch. Each reference now names the commit its tag pointed to on 2026-11-14, with the release in a trailing comment as main writes it. actions/checkout v4.4.0 is the commit main already pins for v4. The other four are actions/setup-node v4.4.0, actions/upload-pages-artifact v3.0.1, actions/configure-pages v5.0.0 and actions/deploy-pages v4.0.5. The major versions do not change.
docs/getting-started.md keeps the MongoDB and Cassandra prerequisite lines from this branch and the Rust 1.91.1 minimum from main (#857).
docs/cassandra-setup.md keeps the replication_factor and datacenter field text from main (#909), where init takes --replication-factor and --datacenter. Each field's name ends with a colon, as in the rest of this branch's field list.
docs/differences-from-dynamodb.md keeps this branch's paragraph on the measurement setup. Main removed "this branch" from the earlier paragraph, and this branch's paragraph names no branch. docs/manuals/07-upgrade-manual.md keeps main's new 0.1.15 entry on a LeadingKeys-fenced Query with a non-equality partition key condition. The 0.1.14 LeadingKeys entry below it keeps this branch's heading.
demohan
left a comment
There was a problem hiding this comment.
The site builds under both hosting setups. The strict build fails on a broken link, a missing anchor and an unresolved Markdown link, as it should, and the crawl found 6,424 internal references with none broken. Search works at 1440 and 375 px and leaves out the architecture pages. The dev image and Compose pages run as written. The walkthrough runs through init, verify, serve, status, post-init and section 6 on PostgreSQL, SQLite, Cassandra and MongoDB. CI is green.
The navigation item below blocks the merge. I will approve once it and the items marked required are done. The Cassandra image and the health response items come from main moving under the branch.
docs/local-postgres-setup.md:88
The TOML connection string moved to /extenddb_catalog, and the environment variable form here (and at line 47) still ends in /extenddb. With it, verify exits 5 ("relation settings does not exist") and serve stops with "read the encryption key rows: Database error".
Other optional notes
start.md:57andgetting-started.md:544say the table is ACTIVE "a few seconds later, as on the service". ExtendDB took 0.75 and 1.07 s, and the service 6.8 and 7.8 s.local-mongodb-setup.md:166lists tables without credentials and answers UnrecognizedClientException.getting-started.md:812deletes MyTable only, and StreamTable (line 704) is left behind.03-usage-guide.md:577: UnknownOperationException holds for the legacy Global Tables operations;update-table --replica-updatesanswers ValidationException.12-extending-extenddb-storage.md:394says instances may share a backend, against the new "not supported" text.01-architecture-guide.md:11reads "ExtendDB (ExtendDB)"..markdown pre code { padding: 0 }(custom.css:161) puts code against the block's left border.- Three backup benchmark pages are in the sitemap with no link to them.
docs/start.mdanddocs/storage-backends.mdhave no License section, and with NOTICE.md excluded no page carries the no-warranty text.
| -webkit-font-smoothing: antialiased; | ||
| } | ||
|
|
||
| .navbar { |
There was a problem hiding this comment.
Below 997 px, the .navbar backdrop-filter makes the hamburger menu a 60 px containing block. At 375, 768 and 996 px the menu and its backdrop are 60 px tall and show no items, and below 997 px the sidebar is hidden, so the site has no navigation on phones and tablets. With backdrop-filter: none injected, the menu fills the screen (812, 1024 and 800 px). Moving the blur to a ::before layer, and giving the menu an opaque background, keeps both. At 0.92 opacity the page text also shows through the open menu.
There was a problem hiding this comment.
Fixed in e35d301. The backdrop-filter rule on .navbar is gone, and the navbar background is the page colour in both modes, so the open menu is opaque. Measured on the rebuilt site in headless Chromium: at 375, 768 and 996 px the menu and its backdrop are 812, 1024 and 800 px tall, the viewport height, with all 16 links in view. I took the smaller fix over the ::before layer, since the blur was decoration and the opaque navbar reads fine.
| border: 1px solid var(--subtle); | ||
| } | ||
|
|
||
| .markdown table { |
There was a problem hiding this comment.
.markdown table { display: table; width: 100% } lets wide tables spill past the content column from 601 px to about 1900 px. At 1024 px the overflow is 449 px on Differences from DynamoDB, 428 on Limits and 411 on getting-started, and from 1280 to 1440 px the tables run under the table of contents. The default display: block; overflow-x: auto brings it to 0 at 768, 1024, 1280 and 1440 px.
There was a problem hiding this comment.
Fixed in e35d301. display: table and width: 100% are gone from .markdown table, so the theme's display: block; overflow-x: auto applies at every width. The 600 px media block's table rule now sets the font size only (its cell wrapping rules stay). Measured on the rebuilt site: the widest table on the differences, limits and getting-started pages overflows the content column by 0 px at 768, 1024, 1280 and 1440 px, no table runs under the table of contents, and the document is no wider than the viewport.
|
|
||
| # Getting started | ||
|
|
||
| ExtendDB speaks the DynamoDB wire protocol. The AWS CLI and every AWS SDK talk to it the same way they talk to the DynamoDB service, with one change: the endpoint URL points at your server. |
There was a problem hiding this comment.
This page has 8 links of the form /dev-image/, docs/storage-backends.md has 13, and getting-started.md:9 has 1. On GitHub they resolve to .../blob/706577da/dev-image, which does not exist, and the PR body says the files keep rendering on GitHub. Relative .md links work in both places.
There was a problem hiding this comment.
Fixed in 0012487. All 22 links now name the Markdown file (dev-image.md, manuals/03-usage-guide.md#sdk-configuration), which GitHub and the site both resolve. The four that pointed at generated index pages with no file (/start/install/, /contributing/local-databases/) now link the pages themselves: Docker Compose, the Linux and macOS install guides, the development image, and the two local database notes. grep -nE '\]\(/[a-z]' docs/*.md prints nothing, and the strict build passes, so every link and anchor resolves.
|
|
||
| ## What differs between backends | ||
|
|
||
| The DynamoDB API surface is the same on every backend. Where a backend's behaviour differs from the service, or from another backend, the row on the [Differences from DynamoDB](/differences-from-dynamodb/) page names the backend. Backend-specific items include: |
There was a problem hiding this comment.
"The DynamoDB API surface is the same on every backend" does not hold. MongoDB and Cassandra have no vector search, both limit Query on a GSI with more than one RANGE attribute, and Cassandra keeps backups in the catalog (README, differences-from-dynamodb.md:108). The list under the sentence leaves these out.
There was a problem hiding this comment.
Fixed in 90251a4. The sentence now reads "Most of the DynamoDB API behaves the same on every backend", and the bullets carry the three items: MongoDB and Cassandra have no vector indexes or SearchVectors, both take a key condition on the first RANGE attribute only when a GSI has more than one, and Cassandra keeps each backup in the catalog with or without a backup store. The wording follows the README rows and the differences page.
|
|
||
| ```bash | ||
| extenddb init # PostgreSQL | ||
| extenddb init --backend mongodb |
There was a problem hiding this comment.
extenddb init --backend mongodb in an empty directory fails 3 of 3 with "Cannot read config file 'extenddb.toml': No such file or directory", because crates/storage-mongodb/src/bootstrapper.rs:37 reads the connection string from an existing config. The same command is at getting-started.md:86 and local-mongodb-setup.md:113. It works after a [storage.mongodb] config is written and --overwrite is passed.
There was a problem hiding this comment.
Fixed in 90251a4. The page, the walkthrough (getting-started.md) and the MongoDB notes now write the [storage] backend = "mongodb" and [storage.mongodb] connection_string section first and run init --backend mongodb --overwrite, the sequence docker/README-mongodb.md uses. MongoBootstrapper::from_config reads the connection string from the file before init writes anything, and with a file present init needs --overwrite. The one-line form is a code gap, not a docs one, and is filed as #1489. Run with the published extenddb/extenddb-mongodb:1.0.0 image against a mongo:7 replica set, the sequence exits 0 in each page's form, and verify then passes. The one-line form in an empty directory exits 1 with the error you saw.
| ### Control Plane Delay | ||
|
|
||
| By default, control plane operations (CreateTable, DeleteTable) emulate real DynamoDB's async behavior — tables transition through CREATING → ACTIVE and DELETING → removed states over a configurable delay (default: 5 seconds). Adjust with: | ||
| By default, control plane operations (CreateTable, DeleteTable) emulate the service's asynchronous behavior: tables transition through CREATING → ACTIVE and DELETING → removed states over a configurable delay (default: 5 seconds). Adjust with: |
There was a problem hiding this comment.
The control-plane delay defaults to 0.25 s in the code and in troubleshooting.md:522, and this line says 5 s.
There was a problem hiding this comment.
Fixed in 39d3217: "(default: 0.25 seconds)". DEFAULT_CONTROL_PLANE_DELAY_SECONDS is 0.25 in the SQLite crate, the PostgreSQL warm-throughput query coalesces to 0.25, and the admin guide and troubleshooting page already said 0.25. The two "a few seconds later, as on the service" lines on the start page and in section 6 say 0.25 s now too, with the service's several seconds for contrast.
| the included `docker-compose.yml`. It wires the official image to a PostgreSQL | ||
| container and handles initialization automatically — no build or manual init required. | ||
| See [Local Development with Docker Compose](local-dev-docker-compose.md). | ||
| If you have Docker, the repository's `docker-compose.yml` starts the published |
There was a problem hiding this comment.
Optional. A bare docker compose up -d tries to pull extenddb-postgres:dev, is refused, and builds from source, which needs buildx 0.17.0. "with no build step" holds only with EXTENDDB_IMAGE set.
There was a problem hiding this comment.
Fixed in 39d3217. The sentence now says the file starts the published image with EXTENDDB_IMAGE=extenddb/extenddb-postgres:latest, and that without the variable it builds the image from source, which is what docker-compose.yml's ${EXTENDDB_IMAGE:-extenddb-postgres:dev} default and its build: section do. "with no build step" is gone.
|
|
||
| - [ ] Set `bind_addr` to the appropriate interface (not `0.0.0.0` unless behind a load balancer) | ||
| - [ ] Firewall: allow only necessary ports (extenddb port, storage backend port) | ||
| - [ ] Set `bind_addr` to the interface your clients reach, not `0.0.0.0` |
There was a problem hiding this comment.
Optional. "not 0.0.0.0" now has no exception, and a container must bind 0.0.0.0, as docker-compose.yml:88 and Dockerfile.dev:84 do.
There was a problem hiding this comment.
Fixed in df77f82. The line now reads: set bind_addr to the interface your clients reach, and bind 0.0.0.0 only inside a container, where the container runtime's port mapping decides who reaches it, or behind a load balancer that is the only route to the server. That covers docker-compose.yml and Dockerfile.dev, and keeps the exception main had.
| - Rust toolchain (1.91.1+) | ||
| - AWS CLI v2 (for testing) | ||
| - Python 3.10+ with virtual environment (see [Python Environment Setup](../README.md#python-environment-setup) in the README) | ||
| - Python 3.10+ with virtual environment (see [Python Environment Setup](https://github.com/ExtendDB/extenddb/blob/main/README.md#python-environment-setup) in the README) |
There was a problem hiding this comment.
Optional. README.md#python-environment-setup is dead; the heading's anchor is #python-environment. The same link is at 06-developer-test-guide.md:356.
There was a problem hiding this comment.
Fixed in 0012487, in both places: getting-started.md and 06-developer-test-guide.md now link README.md#python-environment, the anchor of ### Python Environment (README line 124). No heading named "Python Environment Setup" exists.
| ], | ||
|
|
||
| themes: [ | ||
| [ |
There was a problem hiding this comment.
Optional. The search plugin has no docsDir, so the build warns that website/docs does not exist, hashed: true has no effect, and the index ships as an unhashed search-index.json. docsDir: '../docs' fixes it.
There was a problem hiding this comment.
Fixed in 81f1aac: docsDir: '../docs'. The build log has no warning now, and the client bundle requests search-index.json?_=8155f2dd, the hash of the pages. In this plugin version hashed: true puts the hash in a query string. The file name form needs hashed: 'filename', which I did not switch to. The query string already defeats a stale cache.
Main at e96a60f (#398 and #428 are the newest commits). Three files conflicted. Each one keeps main's text with this branch's formatting: - docs/cassandra-setup.md: the keyspace_prefix bullet from #1173 (the 27-character limit and the lower-casing rule). A colon after the setting name replaces the em dash. The replication_factor bullet gets the same colon. - docs/manuals/06-developer-test-guide.md: main's "core is sync Rust" wording, with a colon in place of the em dash. - docs/versioning.md: main's two bullets (the experimental backend tier, and the WebAssembly build from #1009). Both README links are GitHub URLs, like every other link outside docs/ on this branch. The relative form of the WebAssembly link does not resolve in the strict site build. Main's new docs/rfcs/0000-credential-encryption-key.md gets an entry in the RFCs sidebar, so the page is reachable from the site and not only by URL. Main's new lines in docs/design/02-high-level-design.md (three) and docs/design/03-component-core.md (one) carry em dashes. They stay as main has them: #530's dash sweep covers those files. The strict site build passes on the merged tree.
…as the theme intends The backdrop-filter on .navbar made the navbar the containing block of the theme's fixed-position mobile menu. Below 997 px the menu and its backdrop were 60 px tall and showed none of their 16 links, so the site had no navigation on phones and tablets. The rule is gone and the navbar background is the page colour in both modes, so the page text no longer shows through the open menu. .markdown table forced display: table and width: 100%, which let wide tables run past the content column (449 px at 1024 px on the differences page) and under the table of contents. The theme's default, display: block with overflow-x: auto, scrolls them inside their own box. The 600 px media block repeated that default and now sets the font size only. .markdown pre code set padding: 0, which put the first character of every code block against its left border, because the theme carries the block padding on the code element. The rule now sets the theme's --ifm-pre-padding on it. Deleting the line would not do: the inline-code rule .markdown code also matches the element and would give the block the inline padding of 0.1rem 0.3rem instead. Measured on the built site in headless Chromium: at 375, 768 and 996 px the open menu is as tall as the viewport, the widest table overflows the column by 0 px at 768, 1024, 1280 and 1440 px, and the code text starts 16 px inside the block.
…ub too The two new pages and the walkthrough linked other pages by site URL (`/dev-image/`, `/manuals/usage-guide/`): 22 links in docs/start.md, docs/storage-backends.md and docs/getting-started.md. GitHub resolves such a link against the repository root, so each one was a 404 there, while the PR says the files keep rendering on GitHub. Each link now names the Markdown file (`dev-image.md`, `manuals/03-usage-guide.md#sdk-configuration`), which Docusaurus resolves to the same page and checks in the strict build. Four of them pointed at generated index pages that have no file (`/start/install/`, `/contributing/local-databases/`). Those sentences now link to the pages themselves: Docker Compose, the Linux and macOS install guides, the development image, and the two local database setup notes. The README's Python section is `### Python Environment`, so its anchor is `#python-environment`. The walkthrough and the developer test guide linked `#python-environment-setup`, which does not exist.
…ndra image and MongoDB init "The DynamoDB API surface is the same on every backend" was not true: MongoDB and Cassandra have no vector indexes or SearchVectors, both take a key condition on the first RANGE attribute only when a GSI has more than one, and Cassandra keeps each backup in the catalog with or without a backup store (README rows 61 and 62, and the differences page). The sentence now says most of the API behaves the same, and the MongoDB and Cassandra bullets list these items. The table said Cassandra has no published image. It has one. extenddb/extenddb-cassandra is on Docker Hub since 0.1.15, release-image.yml builds it from Dockerfile.cassandra, and cassandra-setup.md says so. The cell names the image and links the container notes. `extenddb init --backend mongodb` in an empty directory fails with "Cannot read config file 'extenddb.toml'": MongoBootstrapper::from_config reads the connection string from the config file before init has written one, and with a file present init needs --overwrite. The storage backends page, the walkthrough and the local MongoDB setup notes now write the [storage.mongodb] section first and pass --overwrite, the sequence docker/README-mongodb.md documents.
…ough and the MongoDB notes match the server
Start page: the health check shows the body the development image answers, {"components":{"backup_store":{"kind":"filesystem","status":"healthy"}},"status":"healthy"}. The handler always writes components and status, and the SQLite build defaults a filesystem backup store beside the database. The environment block exports AWS_REGION beside AWS_DEFAULT_REGION: the CLI and the SDKs read AWS_REGION first, so a shell that has it set to another region signed for that region and got InvalidSignatureException.
Both pages said a table becomes ACTIVE "a few seconds later, as on the service". The control-plane delay defaults to 0.25 s, and the walkthrough's Control Plane Delay section said 5 seconds. Both now give 0.25 s and say the service takes several seconds.
Walkthrough: a bare docker compose up -d pulls extenddb-postgres:dev, is refused, and builds the image from source, so "with no build step" holds only with EXTENDDB_IMAGE set. The sentence names the variable. The last section deletes StreamTable as well as MyTable, since the streams section creates it.
MongoDB notes: the list-tables check exported no access key and answered UnrecognizedClientException. The section now points at the post-init workflow that creates one and exports it with the region.
…erences page The Backup and Restore section said its numbers were measured against ExtendDB 0.1.14, with a version-literal-ok marker to keep doc_version_literals quiet about the literal. The history does not support the claim: the section's rows come from #384 and later commits, which were first released in 0.1.15, and the v0.1.14 tag has no Backup and Restore section. Both the sentence and the marker were this branch's additions. The line is main's sentence again: the numbers were observed with release builds for each backend, with the earlier-build and from-the-code markers defined as before, and no release named.
Deployment guide: the checklist line "not 0.0.0.0" lost main's load balancer exception on this branch, and a container must bind 0.0.0.0, as docker-compose.yml and Dockerfile.dev do. The line now names the two cases where 0.0.0.0 is right. Usage guide: the Global Tables row said the feature returns UnknownOperationException. That holds for the Global Tables operations, which are not dispatched. UpdateTable with ReplicaUpdates is parsed as an UpdateTable with nothing to update (UpdateTableInput has no such field and does not refuse unknown fields) and answers ValidationException. The row says both. Extending storage: "Multiple ExtendDB instances may share the same backend" contradicted the deployment guide and the storage backends page, which say more than one server on one catalog is not supported in this release. The sentence now gives the no-caching rule as what keeps that possible later, and links the deployment guide. Architecture guide: the rename to ExtendDB turned "extenddb (ExtendDB)" into "ExtendDB (ExtendDB)". The sentence opens with the name once.
This branch moved the page's TOML connection string to /extenddb_catalog, the catalog database init creates and the code's default (crates/storage-postgres/src/config.rs). The connection details table and the environment variable form still ended in /extenddb. A server pointed at that database finds no settings relation: verify exits 5 and serve stops while reading the encryption key rows. The table's Database row, its connection string and the exported variable now name extenddb_catalog.
…rry the no-warranty text The search plugin had no docsDir, so it looked for website/docs, warned at every build, and computed no index hash: the client fetched a bare search-index.json, which a browser can keep serving after a deploy changes it. docsDir: '../docs' points it at the pages. The warning is gone, and the built bundle requests the index with the hash of the pages as a query string (search-index.json?_=<hash>), which is what hashed: true does in this plugin version. The three backup and restore benchmark records (design/15-backup-restore-bench-pr8, -pr9 and -pr11) were in the sitemap with no link to them, while the differences page cites them by file name. They are listed under Component designs after the backup and restore design. docs/start.md and docs/storage-backends.md were the only published pages with no License section. Both get the block the other pages carry. The remark plugin strips those sections from every page and NOTICE.md is excluded from the site, so no page carried the no-warranty sentence. The footer now states it after the licence.
The verification section said the server answers UnrecognizedClientException without an access key. With no key configured, the AWS CLI does not send the request. The server answers UnrecognizedClientException to a key it did not issue (crates/auth/src/lib.rs), which is the case the sentence describes. The sentence now says the key must come from this server and names the answer to any other key.
|
Thanks for the run-through on all four backends. Everything in the review is fixed on the branch, on top of
The optional notes, in order:
The same kinds of defect in lines this PR does not change are filed on their own. They are #1489 ( |
The base branch now holds the fix rounds of #491 and #523, and main up to 9e457a3. Six files conflicted. Each keeps the base's text, with this branch's punctuation and status edits on the same lines. - docs/design/02-high-level-design.md: main's paragraph on the crate dependencies (#1009) and the read replica proposal (#584), with this branch's semicolons and colons in place of the dashes. - docs/design/03-component-core.md: main's sentence on the crypto module (#1009), with a colon for the dash. - docs/design/04-component-storage.md: main's IdempotentMismatch line (#526) in the list this branch writes with colons, and main's read replica paragraph (#584), which has no dash. - docs/design/13-storage-mongodb.md: main's AT_TIMESTAMP iterator line (#468), and colons after the two engine names. - docs/manuals/03-usage-guide.md: the section stays a pointer to the Feature Status table. The Global Tables cell that #491 fixed moves to that table on the differences page. - docs/storage-backends.md: the base's Markdown links, Cassandra image and container link, with this branch's experimental label and Cassandra version. The MongoDB bullet is the base's. The Cassandra bullet keeps the facts of both sides. The one-instance sentence names three backends, as on this branch, with the base's link.
#530's branch at 469669e carries #523's af9567b, #491's 49b856f and main up to 9e457a3. No file conflicted. Main's commits in this merge add no field to a struct that the sample documents, so the sample needs no new line. #1173 lower-cases the Cassandra keyspace_prefix that a config file gives, and its default, extenddb, is already lower case. The generator check passes: docs/configuration.md matches the sample. On the merged tree, the 13 sample tests of extenddb-config and the sample test of each of the four backend crates pass. The SQLite test also passes with the memory feature.
demohan
left a comment
There was a problem hiding this comment.
The navigation fix and the required items are resolved at 49b856f, and so are the optional ones.
- The mobile menu opens to 812, 1024 and 800 px tall at 375, 768 and 996 px, against 60 px before, with an opaque background in both themes. Wide tables overflow by 0 px at every width from 601 to 1920 px and scroll in their own box. No root-relative link is left in the docs, and all 46 relative links in the six files name a real file and heading.
- Each page's commands work as written, twice: the MongoDB
initform completes andverifypasses where the bare form fails with "Cannot read config file", the newAWS_REGIONblock works where the old one getsInvalidSignatureExceptionwithus-west-2in the shell, theextenddb_catalogconnection string givesverifyexit 0 where/extenddbgives exit 5, and the/healthsample matches the dev image byte for byte. The API-surface sentence, the version sentence and its test, the Cassandra image tags, the 0.25 s delay in the code of all four backends, thelist-tableskey wording and the Global Tables row match what they describe. - The strict site build passes for both hostings, the search index covers the same 25 pages and is hashed, and no added line has a dash. The
wasmCI failure comes from main, which #1482 has since fixed.
|
|
||
| ## 3. Create a table and write to it | ||
|
|
||
| Tables are created in the `CREATING` state and become `ACTIVE` after the control-plane delay (0.25 s by default; the service takes several seconds), so wait for the table before writing. |
There was a problem hiding this comment.
Optional. On the dev image a new table became ACTIVE after 1.03, 0.77 and 0.78 s, because the server checks once a second (ACTIVE_POLL), so "0.25 s by default" reads shorter than a reader sees. The same sentence is at docs/getting-started.md:546. The service took 7.4 and 8.6 s, so the comparison holds.
Changes since the last review
The review of 24 Nov left fourteen inline comments, one required item and nine notes in its body. Every one of them is fixed in the commits below, on top of the reviewed head
706577da5.3f1b54c2bmergesmainate96a60feb. The three conflicts and their resolutions are under Merging.e35d3013afixes the mobile menu: the.navbarblur made the open menu a 60 px box below 997 px. It also lets wide tables scroll inside their own box and restores the code block padding.001248707writes the 22 links between pages as Markdown file links, so they resolve on GitHub as well as on the site. It also fixes the README anchor#python-environment.90251a480fixes three statements on the storage backends page. Most of the API behaves the same on every backend, and the MongoDB and Cassandra bullets list what differs. Cassandra has a published image.init --backend mongodbneeds a[storage.mongodb]section and--overwrite, and the walkthrough and the MongoDB notes show the same sequence.39d32174dmakes the start page and the walkthrough match the server. It shows the/healthbody of the development image, exportsAWS_REGIONbesideAWS_DEFAULT_REGION, and gives the 0.25 s control-plane delay. It also names the Compose build step, drops both tables at the end, and adds the access key the MongoDB notes need.b054bafa1returns the differences page's measurement sentence to the wording onmain. The section's rows were first released in 0.1.15, so the "0.1.14" claim and its marker are gone.df77f82bafixes four statements in the manuals:bind_addrinside a container or behind a load balancer, the Global Tables row, instances sharing a backend, and "ExtendDB (ExtendDB)".7f0ac3503names one database,extenddb_catalog, on the local PostgreSQL page.81f1aacfagives the search plugin itsdocsDir, so the build has no warning and the client requests the index with a hash of the pages. It lists the three benchmark records in the sidebar and adds the License section to the two new pages. The footer carries the no-warranty sentence.3b15b8cafandf6fc07378mergemainagain, at97729ce66and then at9e457a349, with no conflict.49b856f58fixes one sentence on the MongoDB notes page:list-tablesneeds an access key that this server issued, and the server answersUnrecognizedClientExceptionto any other key.What
Adds a documentation site built from
docs/with Docusaurus 3.10, underwebsite/. The Markdown files stay where they are and keep rendering on GitHub. The site adds navigation, search, a landing page and a theme matching extenddb.org.What the site contains
docs/start.md) that runs the development image, makes the first requests and connects an SDK. Then an Install group. It holds the development image, the image verification page, Docker Compose, Linux, macOS, the quick start from source and the full walkthrough from source.docs/storage-backends.md) and the event ticketing demo.Excluded from the site: the backlog, todo index and technical debt ledgers, and the templates. Also excluded: the design directory index, the high availability draft, demo assets and build inputs.
How it builds and publishes
.github/workflows/docs-site.ymlbuilds the site on every pull request that touchesdocs/,website/,Cargo.tomlor the workflow. The build fails on a broken link, a missing anchor or a Markdown parse error. A push tomainpublishes to GitHub Pages. The repository variableDOCS_CUSTOM_DOMAINselects the hosting. Unset, the build is forextenddb.github.io/extenddb/. Set todocs.extenddb.org, the build is for the root and writes aCNAMEfile.A remark plugin removes each file's License section and NOTICE blockquote at build time. The footer carries the licence, the no-warranty sentence and the trademark statement once. Code blocks use two Prism themes (
website/src/prism/themes.ts). Their token colours are at least 4.5:1 against the block background in both modes. Search is a local index over the user-facing pages.Content changes in docs/
Made for the site and kept in the files, so GitHub readers see them too:
docs/use the GitHub URL. Links between pages name the Markdown file. Three dead links fixed, and the README anchor#python-environmentfixed in two files.initsequence that works. Quick start: public clone URL,wait table-existsbefore the first write. Full walkthrough: Cassandra listed with the other backends, and the first requests before the table is dropped. Its section 5 says how endpoint, certificate and credentials differ for the development image, Compose and a source build, and namesAWS_ENDPOINT_URL_DYNAMODB.docker-compose.yml, a table of the variables the file reads with their defaults, whatdocker compose ps -ashows while the server starts.Why
The "Documentation" link on extenddb.org,
llms.txtand the repository'sindex.htmlsend readers to the GitHub directory listing ofdocs/. At this head the listing holds 82 Markdown files and about 375,000 words, with ledgers and drafts beside Getting Started. The site gives them navigation and search over the same files.No issue is linked. The follow-up issues are listed below.
Merging
The branch merges
mainthree times in this round: ate96a60feb(3f1b54c2b), at97729ce66(3b15b8caf) and at9e457a349(f6fc07378). Only the first merge had conflicts, three of them. Each keeps the text frommainwith this branch's formatting:docs/cassandra-setup.md: thekeyspace_prefixbullet from fix(storage-cassandra): extenddb destroy removes only a deployment's own keyspaces #1173, with a colon after the setting name in place of the em dash.docs/manuals/06-developer-test-guide.md: the "core is sync Rust" wording frommain, with a colon in place of the em dash.docs/versioning.md: the two bullets frommain, with the README links written as GitHub URLs. The relative WebAssembly link from feat(wasm): [Add WebAssembly browser support for ExtendDB #1009 does not resolve in the strict build.The new RFC from
main,docs/rfcs/0000-credential-encryption-key.md, is listed in the RFCs sidebar. The new em dashes indocs/design/02-high-level-design.mdanddocs/design/03-component-core.mdare left to the dash sweep in #530.Before this round the branch was rebased onto
mainat1d0d8f4a2, which brought in #412 (the Cassandra backend documentation). Four files conflicted in that rebase, and each kept the #412 text with this branch's formatting. They are the prerequisites and the Cassandra section of the walkthrough, the architecture guide's backend sections, and the design guide's Catalog and Data Separation section. The fourth is the deployment guide's layout, with this branch's checklist lines on TLS,bind_addrand the reverse proxy.Three pull requests are stacked on this branch and must merge it forward after it changes: #523 (base
feat/docs-site), #530 (basefeat/docs-install-pages) and #537 (basefeat/docs-content-sweep). The files each one shares with this round's fix commits:docs/getting-started.md,docs/local-mongodb-setup.md,docs/local-postgres-setup.md,docs/manuals/03-usage-guide.md,docs/manuals/06-developer-test-guide.md,docs/manuals/11-deployment-guide.md,docs/start.md,docs/storage-backends.md,website/docusaurus.config.ts,website/sidebars.ts.docs/differences-from-dynamodb.md,docs/manuals/01-architecture-guide.md,docs/manuals/03-usage-guide.md,docs/manuals/11-deployment-guide.md,docs/storage-backends.md,website/sidebars.ts.website/sidebars.ts,website/src/css/custom.css.Merged into the stacked heads as they stood on 25 Nov (
git merge-tree), this head conflicts in five files for #523:docs/getting-started.md,docs/local-mongodb-setup.md,docs/local-postgres-setup.md,docs/start.mdanddocs/storage-backends.md. For #530 and #537 it conflicts in those five, indocs/manuals/03-usage-guide.md, and in four design documents thatmainchanged:02-high-level-design.md,03-component-core.md,04-component-storage.mdand13-storage-mongodb.md.After merge (repository settings, not in this PR)
docs.extenddb.orgpointing atextenddb.github.io, then set the repository variableDOCS_CUSTOM_DOMAIN=docs.extenddb.org.llms.txtat the new site.Follow-ups filed separately
extenddb.sample.toml.#493 (finishing the high availability design) was closed as not planned on 24 Oct 2026. The design stays excluded from the site.
#498 (aligning the per-file License sections and
NOTICE.mdwith the README's affiliation statement) is done onmainby #964, apart from one file.docs/rfcs/0000-credential-encryption-key.md, which #970 added after #964, still has the earlier statement in its License section.Three defects of the same kinds sit in lines this PR does not change. They are filed separately:
extenddb init --backend mongodbcannot run without an existing config file #1489:init --backend mongodbneeds an existing config file.AWS_DEFAULT_REGIONonly, so a shell withAWS_REGIONset fails with InvalidSignatureException #1490: region blocks that set onlyAWS_DEFAULT_REGION./healthsamples show{"status":"healthy"}, a body no build answers #1491:/healthsamples that give{"status":"healthy"}.Testing done
At
49b856f58:npm ci,npm run typecheckand the strictnpm run buildpass. The build has no warning. The sitemap lists 84 pages. The client requests the search index with a hash of the pages (search-index.json?_=729f8402).At
f6fc07378, before the last commit, which changes one sentence indocs/local-mongodb-setup.md:cargo test -p extenddb-storage-postgres --test doc_version_literalspasses.postgres:16and amongo:7replica set: the local PostgreSQL page's exported connection string givesextenddb verify --config extenddb.tomlexit 0. The old/extenddbvalue gives exit 5. The MongoDBinitsequence of the three pages exits 0, andverifythen passes.Before this round:
/start/,/dev-image/and/local-dev-docker-compose/were run in order in a fresh directory with fresh containers, exit 0 throughout. The/healthbody on/start/is now the one the development image answers (extenddb/extenddb-dev:latest, measured 25 Nov)./start/,/getting-started/,/manuals/usage-guide/,/local-dev-docker-compose/and/differences-from-dynamodb/in light and dark mode: 0 violations. The CSS changes of this round are the navbar background, the table layout and the code block padding.Checklist
cargo test --workspace)cargo fmt --check)cargo clippy -- -W clippy::pedantic)Storagetrait, auth model, on-diskformat, or public CLI surface, an RFC has been accepted or is linked
below. Otherwise, an ADR captures the decision (link below).
ADR / RFC: n/a
Breaking changes
None.
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.