GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tablelandnetwork/docs: The official documentation for the Tableland protocol.

BranchesTags
Open more actions menu

Latest commit

 

History

578 Commits
578 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
config
config
 
 
docs
docs
 
 
plugins/custom-loader
plugins/custom-loader
 
 
specs
specs
 
 
src
src
 
 
static
static
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc.json
.prettierrc.json
 
 
LICENSE
LICENSE
 
 
LICENSE-APACHE
LICENSE-APACHE
 
 
README.md
README.md
 
 
babel.config.js
babel.config.js
 
 
docusaurus.config.ts
docusaurus.config.ts
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vercel.json
vercel.json
 
 

Repository files navigation

Tableland Docs

License standard-readme compliant

The official documentation for the Tableland protocol.

Table of Contents

  • Background
  • Usage
  • Development
    • Build
    • Specifications
    • Caching
  • Contributing
  • License

Background

This repository hosts the official Tableland documentation and protocol specifications. Tableland is a decentralized database built on the SQLite engine, providing developers with a web3-native, relational database that easily integrates into their stack. The Tableland docs describe fundamental network concepts, how to use the protocol across various clients (SDK, CLI, APIs), operating your validator node, tutorials, and much more.

The docs site is built with Docusaurus 2—a React static site generator—and uses Markdown files in the docs directory. Protocol specs for SQL and the validator Gateway API are located in the specs directory:

  • SQL: These specs define the SQL language compliant with the Tableland protocol. It is a subset of the SQLite SQL language specification, with additional constraints specific to Tableland operations. It does omit many features while at the same time adds a few features of its own.
  • Gateway API: These specs define the Tableland validator node's REST API for the Tableland protocol. It allows for various table queries and validator-related information to be retrieved using an HTTPS Gateway.

The following label system is used to help identify the current state of each spec:

  • wip → A work-in-progress. It may be used to describe an idea before actually committing to a full draft of the spec.
  • draft → A draft that is ready to review and implementable.
  • stable → A spec that has been adopted (implemented). It might be improved but should not change fundamentally.

Usage

The Tableland docs site is deployed and hosted with Vercel, and it's available at https://docs.tableland.xyz/, which also includes the generated specs as site content.

Development

To develop locally, first do the following:

  1. Use npm to install dependencies: npm install
  2. (Optional) If you are a core contributor and have access to the official Algolia and Fathom variables defined in the .env file, update them. But, local-only development should not need them to be configured as these are needed for production only.

Then, start the site for local development, which should open up on http://localhost:3000 and update upon component or docs directory changes:

npm run start

Build

It's important to also build and serve the site locally as this may uncover static site compatability issues that should, instead, be handled by a custom plugin. Perform this with the following commands as a final step during development:

npm run build
npm run serve

A production build uses these commands as well.

Specifications

The SQL specification is split into a few separate files. A single README document can be generated from its parts by doing the following:

cd specs/sql
pandoc -s --toc \
    -t gfm+tex_math_dollars\
    -f gfm+tex_math_dollars \
    -B Header.md \
    StatementTypes.md \
    DataTypes.md \
    Encoding.md \
    -o README.md

The Gateway API is defined by an OpenAPI specification document, which is also used to generate clients and services that drive the Tableland validator. The OpenAPI spec can be used to generate Markdown documentation by running the following, which first generates a Specification.md file and then combines it to produce a single README:

npm i -g widdershins
cd specs/validator
widdershins tableland-openapi-spec.yaml \
    --omitHeader \
    --summary \
    --language_tabs 'shell:curl:curl' \
    -o Specification.md
pandoc -s --toc --toc-dept 2 -t gfm \
    -B Header.md \
    Specification.md \
    -o README.md

Caching

Deployments leverage caching to improve build times—the following will be generated locally but are ignored via the .gitignore file:

  • .docusaurus: caches the site structure upon each build process completion.
  • build: caches static site assets.
  • node_modules: caches node_modules and updates upon changes to package dependencies.

Contributing

PRs accepted. Please review additional details explained in the contributing section of the docs site.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT AND Apache-2.0, © 2021-2022 Tableland Network Contributors

About

The official documentation for the Tableland protocol.

docs.tableland.xyz/

Topics

docsspecssqlsqlitetableland

Resources

Readme

Code of conduct

Code of conduct

Security policy

Security policy
Activity
Custom properties

Stars

12 stars

Watchers

5 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.