-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-285 - Migrate documentation to Antora.
- Loading branch information
Showing
25 changed files
with
247 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Deploy Docs | ||
on: | ||
push: | ||
branches-ignore: [ gh-pages ] | ||
tags: '**' | ||
repository_dispatch: | ||
types: request-build-reference # legacy | ||
#schedule: | ||
#- cron: '0 10 * * *' # Once per day at 10am UTC | ||
workflow_dispatch: | ||
permissions: read-all | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'spring-projects' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: docs-build | ||
fetch-depth: 1 | ||
- name: Dispatch (partial build) | ||
if: github.ref_type == 'branch' | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} | ||
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }} | ||
- name: Dispatch (full build) | ||
if: github.ref_type == 'tag' | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} | ||
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,9 @@ changelog.txt | |
#IntelliJ Stuff | ||
.idea | ||
*.iml | ||
|
||
# Antora | ||
node | ||
node_modules | ||
package.json | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Deploy Docs | ||
on: | ||
push: | ||
branches-ignore: [ gh-pages ] | ||
tags: '**' | ||
repository_dispatch: | ||
types: request-build-reference # legacy | ||
#schedule: | ||
#- cron: '0 10 * * *' # Once per day at 10am UTC | ||
workflow_dispatch: | ||
permissions: | ||
actions: write | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
# FIXME: enable when pushed to spring-projects | ||
# if: github.repository_owner == 'spring-projects' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: docs-build | ||
fetch-depth: 1 | ||
- name: Dispatch (partial build) | ||
if: github.ref_type == 'branch' | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }} | ||
- name: Dispatch (full build) | ||
if: github.ref_type == 'tag' | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
antora: | ||
extensions: | ||
- '@springio/antora-extensions/partial-build-extension' | ||
- require: '@springio/antora-extensions/latest-version-extension' | ||
- require: '@springio/antora-extensions/inject-collector-cache-config-extension' | ||
- '@antora/collector-extension' | ||
- '@antora/atlas-extension' | ||
- require: '@springio/antora-extensions/root-component-extension' | ||
root_component_name: 'modulith' | ||
site: | ||
title: Spring Modulith | ||
url: https://docs.spring.io/spring-modulith/reference/ | ||
content: | ||
sources: | ||
- url: ./../../.. | ||
branches: HEAD | ||
start_path: src/docs/antora | ||
worktrees: true | ||
asciidoc: | ||
attributes: | ||
page-pagination: '' | ||
hide-uri-scheme: '@' | ||
tabs-sync-option: '@' | ||
chomp: 'all' | ||
extensions: | ||
- '@asciidoctor/tabs' | ||
- '@springio/asciidoctor-extensions' | ||
sourcemap: true | ||
urls: | ||
latest_version_segment: '' | ||
runtime: | ||
log: | ||
failure_level: warn | ||
format: pretty | ||
ui: | ||
bundle: | ||
url: https://github.com/spring-io/antora-ui-spring/releases/download/v0.3.5/ui-bundle.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: modulith | ||
version: true | ||
title: Spring Modulith | ||
nav: | ||
- modules/ROOT/nav.adoc | ||
ext: | ||
collector: | ||
run: | ||
command: mvnw -N antora-component-version:antora-component-version resources:resources -am -Pdocumentation | ||
local: true | ||
scan: | ||
dir: target/classes/antora-resources/ | ||
|
||
asciidoc: | ||
attributes: | ||
attribute-missing: 'warn' | ||
chomp: 'all' |
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
* xref:index.adoc[Overview] | ||
* xref:fundamentals.adoc[] | ||
* xref:verification.adoc[] | ||
* xref:events.adoc[] | ||
* xref:testing.adoc[] | ||
* xref:moments.adoc[] | ||
* xref:documentation.adoc[] | ||
* xref:runtime.adoc[] | ||
* xref:production-ready.adoc[] | ||
* xref:appendix.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.