Antora
お勧めの使い方
ディレクトリ構成と定義ファイルを次に示すとおり作れば最低限は利用出来る。
リポジトリ構成
📒 [リポジトリ]
📄 antora-playbook.yml
📂 docs
📂 [コンテンツ]
📄 antora.yml
📂 modules
📂 ROOT
📁 attachments
📁 examples
📁 images
📁 pages
📄 index.adoc
📁 partials
📄 nav.adoc
📂 [モジュール]
📁 attachments
📁 examples
📁 images
📁 pages
📄 index.adoc
📁 partials
📄 nav.adoc
📂 ui-bundle
定義ファイルの記述
antora.yml
name: [コンテンツ名]
title: [コンテンツタイトル]
version: true
asciidoc:
attributes:
source-language: asciidoc@
table-caption: false
nav:
- modules/ROOT/nav.adoc
antora-playbook.yml
site:
title: [サイトのタイトル]
url: [サイトのURL]
start_page: [コンテンツ名]::index.adoc
content:
sources:
- url: [git cloneできる URL]
branches: HEAD
start_paths: docs/*
asciidoc:
attributes:
experimental: ''
idprefix: ''
idseparator: '-'
page-pagination: ''
ui:
bundle:
url: ./ui-bundle/
snapshot: true
nav.adoc
* xref:index.adoc[]
ui template
-
Antora Default UI
https://gitlab.com/antora/antora-ui-default -
Cloudflow Default UI
https://github.com/lightbend/antora-ui-lightbend-cloud-theme
Antora Default UI Tips
-
Antora Default UI にサイズ可変な目次を実装する
https://note.com/chappy_dogheart/n/nce8e4a2b365c