This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is an Antora-based documentation site for ownCloud Server. Documentation is written in AsciiDoc and built into a static HTML site. This repo is not built standalone in production — it is built as part of the main owncloud/docs repository, but can be built locally for preview.
Install dependencies:
npm install
Build documentation (production, fetches remote content and UI bundle):
npm run antora
Build for local preview (outputs to public/, served at http://localhost:8080):
npm run antora-dev-local
Serve the built site:
npm run serve
Build with a custom local UI bundle (from ../docs-ui/):
npm run antora-dev-bundle
Check for broken links (run after build):
npm run linkcheck
Content lives under modules/, organized into Antora modules:
modules/ROOT/— Main landing pages and shared navigationmodules/admin_manual/— Administration documentationmodules/developer_manual/— Developer documentationmodules/classic_ui/— Classic UI documentation
Each module follows the Antora standard layout: pages/ (AsciiDoc .adoc files), partials/ (reusable fragments via include::), images/, attachments/, and examples/.
Navigation is defined in modules/ROOT/partials/nav.adoc.
antora.yml— Defines this component (server, versionnext), PHP version attributes, and component-level AsciiDoc attributessite.yml— Production build config; pulls global attributes fromowncloud/docsGitHub repo at build timesite-dev.yml— Local/dev build config
AsciiDoc extensions (ext-asciidoc/):
tabs.js— Renders tabbed content blocksremote-include-processor.js— Allows including content from remote URLs
Antora extensions (ext-antora/):
generate-index.js— Generates Elasticsearch search indexload-global-site-attributes.js— Fetches and injects global attributes fromglobal-attributes.ymlin the main docs repofind-orphaned-files.js— Detects unreferenced files (disabled by default insite.yml)comp-version.js— Component version utilities
AsciiDoc attributes shared across all ownCloud documentation repos are maintained in the main owncloud/docs repository (global-attributes.yml). During a build, load-global-site-attributes.js fetches them from GitHub. A local copy at ./global-attributes.yml can be used for offline development by editing site.yml.
Built site goes to public/. The UI bundle (CSS, JS, templates) is fetched from https://minio.owncloud.com/documentation/ui-bundle.zip unless overridden with --ui-bundle-url.
mastermaps to thenextversion on the published site- Only three branches are maintained at a time:
master, current release, and previous release - All changes target
masterfirst, then are backported to version branches as needed - Version branches are named after major.minor releases (e.g.,
10.16)