Skip to content

Commit

Permalink
Merge pull request #3 from johnlockejrr/antora
Browse files Browse the repository at this point in the history
Antora
  • Loading branch information
johnlockejrr authored Jan 11, 2025
2 parents 0cb942d + 06a8eef commit d600222
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,32 @@ docs-stop-surge:

script:
- surge teardown ${CI_ENVIRONMENT_URL}

antora-generate:
stage: build
image: registry.gitlab.teklia.com/internal/mkdocs-to-antora:latest

script:
- teklia-antora
- teklia-push-antora-ci

artifacts:
paths:
- antora

antora-build:
stage: deploy
image: node:20

dependencies:
- antora-generate

before_script:
- npm install antora

script:
- npx antora antora-playbook.yml

artifacts:
paths:
- build
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.PHONY: release
.PHONY: release antora

antora:
npx antora antora-playbook.yml

release:
# Grep the version from pyproject.toml, squeeze multiple spaces, delete double and single quotes, get 3rd val.
Expand Down
12 changes: 12 additions & 0 deletions antora-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
site:
title: Teklia Documentation
start_page: pylaia::index.adoc
content:
sources:
- url: .
branches: HEAD
start_path: antora
ui:
bundle:
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
snapshot: true
5 changes: 5 additions & 0 deletions antora/antora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: pylaia
version: ~
title: PyLaia
nav:
- modules/ROOT/nav.adoc

0 comments on commit d600222

Please sign in to comment.