Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.

Commit b61c248

Browse files
committed
Enable site generation using GitHub sources as well as local files.
Signed-off-by: Pavel Macík <[email protected]>
1 parent 6a01fb7 commit b61c248

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

.github/workflows/merge-to-master.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ jobs:
8181
uses: actions/checkout@v2
8282

8383
- name: generate website
84+
env:
85+
SITE_SOURCE: github
8486
run: |
8587
make site
8688
touch ./out/site/.nojekyll

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ OUTPUT_DIR ?= $(shell echo ${PWD})/out
3131
GOLANGCI_LINT_BIN=$(OUTPUT_DIR)/golangci-lint
3232
PYTHON_VENV_DIR=$(OUTPUT_DIR)/venv3
3333

34+
# Source for generating docs (one of `local` and `github`)
35+
SITE_SOURCE ?= local
36+
3437
CONTAINER_RUNTIME ?= docker
3538

3639
QUAY_USERNAME ?= redhat-developer+travis
@@ -334,7 +337,7 @@ clean:
334337
.PHONY: site
335338
## render site
336339
site:
337-
$(CONTAINER_RUNTIME) run -u $(shell id -u) -e CI=true -e HOME=/antora -v ${PWD}:/antora:Z --rm -t antora/antora:3.0.1 antora-playbook.yaml
340+
$(CONTAINER_RUNTIME) run -u $(shell id -u) -e CI=true -e HOME=/antora -v ${PWD}:/antora:Z --rm -t antora/antora:3.0.1 antora-playbook.$(SITE_SOURCE).yaml
338341

339342
.PHONY: test-performance-setup
340343
## Setup OpenShift cluster for performance test

antora-playbook.github.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
site:
2+
title: Service Binding Operator Documentation
3+
url: https://redhat-developer.github.io/service-binding-operator
4+
start_page: userguide::intro.adoc
5+
content:
6+
sources:
7+
- branches: HEAD
8+
start_paths: docs/userguide, docs/devguide
9+
url: https://github.com/redhat-developer/service-binding-operator
10+
- branches: v1.0.1
11+
start_paths: docs/userguide, docs/devguide
12+
url: https://github.com/redhat-developer/service-binding-operator
13+
- branches: v1.0.0
14+
start_paths: docs/userguide
15+
url: https://github.com/redhat-developer/service-binding-operator
16+
ui:
17+
bundle:
18+
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/master/raw/build/ui-bundle.zip?job=bundle-stable
19+
snapshot: true
20+
supplemental_files: ./hack/antora
21+
output:
22+
dir: ./out/site
File renamed without changes.

0 commit comments

Comments
 (0)