mirror-cockpit-project-cockpit/doc
2026-10-16 15:02:45 +02:00
..
extensions asciidoc: Add inline manpage macro extension 2026-07-14 15:47:27 +02:00
modules tls: Limit concurrent connections 2026-09-21 15:28:29 +03:00
accounts-dark.png readme: Light/dark theme for screenshots 2026-06-24 18:43:18 +02:00
accounts-light.png readme: Light/dark theme for screenshots 2026-06-24 18:43:18 +02:00
anaconda.md anaconda doc: drop extra word 2026-10-16 15:02:45 +02:00
antora.yml doc: Add cockpit-version from playbook 2026-07-20 13:07:14 +02:00
authentication.md doc: Fix links for Antora 2026-07-14 15:47:27 +02:00
branding.md doc: fix #brand selector 2026-03-04 13:28:52 +01:00
cockpit-system-apis.png doc: Add some simpler graphics of how cockpit accesses system APIs 2015-07-13 11:10:47 +03:00
cockpit-system-apis.svg doc: Add some simpler graphics of how cockpit accesses system APIs 2015-07-13 11:10:47 +03:00
cockpit-transport.png doc: Update the cockpit-transport.png image 2015-11-04 09:39:12 +02:00
cockpit-transport.svg doc: Update the cockpit-transport.png image 2015-11-04 09:39:12 +02:00
i18n.md doc: Fix links for Antora 2026-07-14 15:47:27 +02:00
key-auth.md Correct spelling mistakes 2018-02-06 15:43:55 +01:00
login.md doc: Fix formatting 2024-09-19 14:22:30 +02:00
Makefile-doc.am build: Fix make dist builds with disabling ssh/polkit/docs 2021-05-06 20:48:46 +02:00
Makefile-guide.am asciidoc: Add inline manpage macro extension 2026-07-14 15:47:27 +02:00
Makefile-man.am asciidoc: Add inline manpage macro extension 2026-07-14 15:47:27 +02:00
networking-dark.png readme: Light/dark theme for screenshots 2026-06-24 18:43:18 +02:00
networking-light.png readme: Light/dark theme for screenshots 2026-06-24 18:43:18 +02:00
overview-dark.png readme: Light/dark theme for screenshots 2026-06-24 18:43:18 +02:00
overview-light.png readme: Light/dark theme for screenshots 2026-06-24 18:43:18 +02:00
protocol.md treewide: Fix typos discovered by codespell 2026-08-18 11:58:12 +02:00
README.md README: Add Antora preview commands 2026-06-30 15:00:19 +02:00
routing.md Fix spelling issues detected by codespell 2020-06-30 16:20:51 +02:00
urls.md ws: Use cockpit-beiboot for direct remote connections 2024-09-30 09:36:34 +02:00

Cockpit Docs

We have two distinct workflows for our docs, one relates to bundling documentation within Cockpit packages, the other regards online documentation for Cockpit with features for ease-of-use.

Explanation of existing directories and what their purpose is. Mostly follows an Antora designated directory design that is explained in Antora folder structure.

doc/                  # All of Cockpit's doc is here; Plugins should be excluded.
├── modules           # Antora expects a module structure, irrelevant for AsciiDoctor.
│   ├── guide         # Cockpit Guide docs, encompasses everything that relates to Cockpit
│   │   ├── bundling  # Specific to AsciiDoctor bundling where we put single-page wrappers
│   │   ├── pages     # All pages that relate to Cockpit itself
│   │   └── nav.adoc  # Antora navigation file, displays pages from the file as a sidebar navigation for the specific component
│   └── man           # Cockpit man pages. Packaged as Manpages with AsciiDoctor, HTML with Antora.
│       ├── pages     # All manpages for packages distributed in cockpit
│       ├── partials  # Antora-designated folder, partials are imported by AsciiDoc manpages for Bugs, and Author
│       └── nav.adoc  # Antora navigation file, displays pages from the file as a sidebar navigation for the specific component
└── antora.yml        # Config for Antora to pickup that designates navigation files and attributes

Antora folder structure

Since Antora is a versatile documentation tool, they have structured directories for managing the modules and module-specific features - like pages and attachments.

Antora assigns preset, content-specific behavior to the source files stored in the family directories.

https://docs.antora.org/antora/latest/family-directories/

Local testing

We do not need to run Antora from cockpit-docs repo to make updates here, instead you can run Antora from NPM to compile it, then simply open the output or run a http server.

With NPM

npm exec antora generate antora-playbook.yml

With PNPM

pnpx antora generate antora-playbook.yml

You'll get an output for site generation completed followed by a file to open. If you run Flatpak you might have to run a simple server instead

python -m http.server -d ./doc/output/antora