Skip to content

Commit 5118fdf

Browse files
committed
Antora site example
1 parent 8824588 commit 5118fdf

File tree

6 files changed

+22
-66
lines changed

6 files changed

+22
-66
lines changed

.readthedocs.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ build:
44
os: ubuntu-22.04
55
tools:
66
python: "3"
7-
apt_packages:
8-
- tree
9-
10-
sphinx:
11-
configuration: docs/conf.py
12-
13-
python:
14-
install:
15-
- requirements: requirements.txt
7+
nodejs: "16"
8+
commands:
9+
# Commands from https://docs.antora.org/antora/latest/install-and-run-quickstart/
10+
- npm i -g -D -E @antora/[email protected] @antora/[email protected]
11+
- antora -v
12+
- antora --fetch antora-playbook.yml
13+
- mkdir $READTHEDOCS_OUTPUT
14+
- mv build/site $READTHEDOCS_OUTPUT/html

antora-playbook.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
site:
2+
title: Antora Docs
3+
start_page: component-b::index.adoc
4+
content:
5+
sources:
6+
- url: https://gitlab.com/antora/demo/demo-component-a.git
7+
branches: HEAD
8+
- url: https://gitlab.com/antora/demo/demo-component-b.git
9+
branches: [v2.0, v1.0]
10+
start_path: docs
11+
ui:
12+
bundle:
13+
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
14+
snapshot: true

docs/conf.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/conf.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/contents.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/index.rst

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)