This project contains the documentation website at docs.tactilityproject.org.
The pages are markdown files in docs/. Eleventy turns them into static HTML. The setup and the theme are the same as those of the Tactility website.
Install the dependencies (Node.js 20 or newer):
npm installDevelop with a local server that reloads on changes:
npm startBuild the site into _site/:
npm run builddocs/<version>/: the documentation of one Tactility version, e.g.docs/main/anddocs/v0.7.0/. A page atdocs/main/app-development/ui.mdgets the URL/main/app-development/ui/.docs/<version>/index.md: the start page of a version.docs/<version>/_sidebar.md: the menu of a version, as a list of links with optional group titles.docs/index.md: the landing page with the list of versions.docs/*.md: pages that are shared by all versions (support, licenses).docs/_data/: site name, community links and navigation.docs/_includes/: page layouts.docs/assets/: the stylesheet and the script (menus, copy buttons, search).
Every folder in docs/ that has a _sidebar.md is a version. main is the development version. The other folders are releases, and the one with the highest number is shown as the latest release.
To add a release, copy docs/main/ to a folder with the name of the release tag (e.g. docs/v0.8.0/). The landing page, the version menu and the search pick it up.
- A page starts with a
# Titleheading. - Link to other pages with a path relative to the current file, e.g.
[Simulator](../os-development/simulator.md)or[Assets](fundamentals.md#assets). {{versionLabel}}is replaced with the name of the version folder, which is useful for links to a branch or tag on GitHub.- Alerts:
> [!NOTE]and> [!WARNING]blocks. - Tabbed card: wrap
::: tab <Title>blocks in:::: tabs...::::. - Diagrams: a
plantumlcode block is shown as an image, rendered by the PlantUML server.
Pushing to main builds and publishes the site with GitHub Actions (.github/workflows/deploy.yml). For this, the repository's Pages settings must use "GitHub Actions" as the source.