Terradoc Terradoc

Publishing engine for Indigenous language documentation

A Python toolkit for building multilingual documentation websites for Indigenous languages, ecological knowledge, and community-led cultural archives.

$ pip install terradoc

What Terradoc Does

Terradoc converts structured project data into a complete static website. It validates data integrity, converts source formats, and generates HTML pages and JSON assets that can be published on any standard static hosting.

Structured Data

Lexical records, encyclopedia articles, fauna, ethnobotany, bibliography, recordings, and videos as validated source files.

Multilingual

Locale-based navigation and page generation. Interface text in any language; content rendered across locales.

Static Output

No database, no application server. Pages work without JavaScript, stay light on slow connections and keep working offline once opened.

Community-Governed

File-based content workflows that can be reviewed, archived, and controlled by the communities they serve.

Each people’s own look

One shared interface; each site brings a palette of five colours named after materials, and optionally its own band, texture and emblem, with their sources recorded.

Data Validation

ID format enforcement, cross-reference integrity, bibliography key resolution, and category vocabulary checks.

Content Modules

Each module handles a specific type of documentation material. Enable only what your project needs.

Dictionary
Encyclopedia
Fauna
Ethnobotany
Bibliography
Recordings
Videos
Corpus
Pages

Platforms

Terradoc builds the language platforms of the Plataforma de Línguas Indígenas, and its portal.

For the people who edit them: a step-by-step guide (in Portuguese, with screenshots), from changing a word to seeing it live.

Quick Start

Install from PyPI and scaffold a new project:

$ pip install terradoc
$ terradoc init my-project
$ cd my-project

Add your data files, configure terradoc.yaml, check and build:

$ terradoc check
$ terradoc build

The generated site is written to docs/, ready to publish.

Project Structure

my-project/
  terradoc.yaml          # project configuration
  data/
    dictionary.tsv       # lexical records
    encyclopedia/        # Markdown articles with YAML front matter
    fauna.yaml           # fauna entries
    ethnobotany.yaml     # ethnobotanical knowledge
    references.bib       # BibTeX bibliography
    pages/               # the site's own Markdown pages
    ...
  locales/               # the site's own texts (pt.yaml, en.yaml, ...)
  static/                # photographs, audio, favicon
  config/templates/v2/   # optional: the site's pattern pack and template overrides
  docs/                  # generated output