Skip to content

Commit

Permalink
Merge branch '78-define-yaml-config-format-and-document-it-in-the-end…
Browse files Browse the repository at this point in the history
…user-documentation' into 'master'

Resolve "Define yaml config format and document it in the enduser documentation"

Closes LivingDoc#78

See merge request enpro-ws2019-20/enpro-livingdoc!42
  • Loading branch information
Legion2 committed Dec 5, 2019
2 parents ec396d8 + 430d1e3 commit fa87b77
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions livingdoc-documentation/src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

include::repositories.adoc[]
include::fixtures.adoc[]
include::reports.adoc[]
41 changes: 41 additions & 0 deletions livingdoc-documentation/src/docs/asciidoc/reports.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
== Generate Reports

A Report represent the Results of executing a Document.
The Report include the Document and the Status of the execution.
A Report can be represented in different formats like HTML or PDF.

Supported Report Formats:

* HTML Report
* Json Report
Configure the generation of Reports in the `living-doc.yaml` file.
The `living-doc.yaml` contains the yaml based configuration of LivingDoc.
This file should be placed in the `src/test/resources` directory.
[source, yaml]
----
reports:
- name: "default-html"
format: "html"
config:
outputDir: "livingdoc/reports/html"
----
`reports` is a list of different reports.
Each report have a `name` as unique identifier.
Each report also specifies the `format` of the generated Report.
Optionally a `config` can be specified for Report format specific parameters.

=== HTML Reports
The HTML Report format is similar to the HTML Document format, with additional coloring to represent the Status of the execution.

==== Configuration
.outputDir
The directory where the HTML Reports are save.
The default value is `livingdoc/reports/html`.

=== Json Reports

==== Configuration
.outputDir
The directory where the HTML Reports are save.
The default value is `livingdoc/reports/json`.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ A Document Repository is a configurable Location for multiple Executable Documen
LivingDoc currently provides three types of Document Repositories, but it is also possible to create your own Document Repository type if it is not supported yet.

Supported Document Repositories:

* File Repository
* REST Repository
* Confluence Repository
Expand Down

0 comments on commit fa87b77

Please sign in to comment.