-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spring Cloud Task generates documentation for Antora infra
Migrate Structure Insert explicit ids for headers Remove unnecessary asciidoc attributes Copy default antora files Fix indentation for all pages Generate a default navigation Remove includes Fix cross references Enable Section Summary TOC for small pages WIP Nav.adoc now represents a list of navigation properties Warning and errors are now resolved. Observability docs now present in navigation bar and properly visible Index.adoc contains preface information . Nav.adoc contains proper ordering for appendix information
- Loading branch information
1 parent
dbbae91
commit 9b4d7f0
Showing
31 changed files
with
396 additions
and
72 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,32 @@ | ||
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 | ||
# if: github.repository_owner == 'spring-cloud' | ||
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
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 |
---|---|---|
|
@@ -5,24 +5,28 @@ Edit the files in the src/main/asciidoc/ directory instead. | |
//// | ||
|
||
|
||
[[spring-cloud-task]] | ||
= Spring Cloud Task | ||
|
||
Is a project centered around the idea of processing on demand. A user is able to develop | ||
a “task” that can be deployed, executed and removed on demand, yet the result of the | ||
process persists beyond the life of the task for future reporting. | ||
|
||
|
||
[[requirements:]] | ||
== Requirements: | ||
|
||
* Java 17 or Above | ||
|
||
[[build-main-project:]] | ||
== Build Main Project: | ||
|
||
[source,shell,indent=2] | ||
---- | ||
$ ./mvnw clean install | ||
---- | ||
|
||
[[example:]] | ||
== Example: | ||
|
||
[source,java,indent=2] | ||
|
@@ -50,9 +54,11 @@ public class MyApp { | |
} | ||
---- | ||
|
||
[[code-of-conduct]] | ||
== Code of Conduct | ||
This project adheres to the Contributor Covenant link:CODE_OF_CONDUCT.adoc[code of conduct]. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected]. | ||
|
||
[[building-the-project]] | ||
== Building the Project | ||
|
||
This project requires that you invoke the Javadoc engine from the Maven command line. You can do so by appending `javadoc:aggregate` to the rest of your Maven command. | ||
|
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,38 @@ | ||
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: 'cloud-task' | ||
site: | ||
title: Spring Cloud Task | ||
url: https://docs.spring.io/spring-cloud-task/reference/ | ||
content: | ||
sources: | ||
- url: ./.. | ||
branches: HEAD | ||
start_path: docs | ||
worktrees: true | ||
asciidoc: | ||
attributes: | ||
page-stackoverflow-url: https://stackoverflow.com/tags/spring-cloud | ||
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,12 @@ | ||
name: cloud-task | ||
version: true | ||
title: spring-cloud-task | ||
nav: | ||
- modules/ROOT/nav.adoc | ||
ext: | ||
collector: | ||
run: | ||
command: ./mvnw --no-transfer-progress -B process-resources -Pdocs -pl docs -Dantora-maven-plugin.phase=none -Dgenerate-docs.phase=none -Dgenerate-readme.phase=none -Dgenerate-cloud-resources.phase=none -Dmaven-dependency-plugin-for-docs.phase=none -Dmaven-dependency-plugin-for-docs-classes.phase=none -DskipTests | ||
local: true | ||
scan: | ||
dir: ./target/classes/antora-resources/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,11 @@ | ||
* xref:index.adoc[] | ||
* xref:preface.adoc[] | ||
* xref:getting-started.adoc[] | ||
* xref:features.adoc[] | ||
* xref:batch.adoc[] | ||
* xref:batch-starter.adoc[] | ||
* xref:stream.adoc[] | ||
* xref:appendix.adoc[] | ||
** xref:appendix-task-repository-schema.adoc[] | ||
** xref:appendix-building-the-documentation.adoc[] | ||
** xref:observability.adoc[] |
2 changes: 0 additions & 2 deletions
2
docs/src/main/asciidoc/_attributes.adoc → docs/modules/ROOT/pages/_attributes.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
:doctype: book | ||
:idprefix: | ||
:idseparator: - | ||
:toc: left | ||
:toclevels: 4 | ||
:tabsize: 4 | ||
:numbered: | ||
:sectanchors: | ||
|
3 changes: 2 additions & 1 deletion
3
.../appendix-building-the-documentation.adoc → .../appendix-building-the-documentation.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
|
||
[[appendix-building-the-documentation]] | ||
== Building This Documentation | ||
= Building This Documentation | ||
:page-section-summary-toc: 1 | ||
|
||
This project uses Maven to generate this documentation. To generate it for yourself, | ||
run the following command: `$ mvn clean install -DskipTests -P docs`. |
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,10 @@ | ||
|
||
[[appendix]] | ||
= Appendices | ||
:page-section-summary-toc: 1 | ||
|
||
|
||
|
||
ifndef::train-docs[] | ||
endif::[] | ||
|
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,6 @@ | ||
[[configuration-properties]] | ||
= Configuration Properties | ||
|
||
Below you can find a list of configuration properties. | ||
|
||
include::partial$_configprops.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
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,25 @@ | ||
[[spring-cloud-task-reference-guide]] | ||
= Spring Cloud Task Reference Guide | ||
:page-section-summary-toc: 1 | ||
Michael Minella, Glenn Renfro, Jay Bryant | ||
|
||
|
||
// ====================================================================================== | ||
|
||
Version {project-version} | ||
|
||
(C) 2009-2022 VMware, Inc. All rights reserved. | ||
|
||
Copies of this document may be made for your own use and for distribution to | ||
others, provided that you do not charge any fee for such copies and further | ||
provided that each copy contains this Copyright Notice, whether distributed in | ||
print or electronically. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
// ====================================================================================== |
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,8 @@ | ||
[[observability]] | ||
= Observability | ||
|
||
== Observability metadata | ||
|
||
include::partial$_metrics.adoc[] | ||
|
||
include::partial$_spans.adoc[] |
Oops, something went wrong.