Skip to content

Commit

Permalink
#57 asciidoc testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cserhatit committed Mar 20, 2024
1 parent a290370 commit b48ba6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
source_dir: docs/ # default is .
ebook_main_adoc_file: index
# slides_build: true
pre_build:
CURRENT_VERSION=$(sed -rn 's/(^VERSION=)([^-]+)(-SNAPSHOT|)$/\2/p' .env)
echo current version is ${CURRENT_VERSION}
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_OUTPUT
pre_build: |
- bash: CURRENT_VERSION=$(sed -rn 's/(^VERSION=)([^-]+)(-SNAPSHOT|)$/\2/p' .env)
- bash: echo current version is ${CURRENT_VERSION}
- bash: echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_OUTPUT
# post_build:
9 changes: 4 additions & 5 deletions docs/client/common/usage.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,12 @@ A builderből SAXON engine-hez nagyon könnyen kinyerhető a kívánt konfigurá
[source,java]
----
GeneratedDocumentDto resp = client.postDatabaseStoredTemplateDocumentGenerate(
TemplateLanguageType.HU, <2>
TemplateLanguageType.HU, <1>
ParametersDataBuilder.getSaxonParameters(
FileUtil.readFileFromResource(DocumentServiceTestConstant.XSLT_TEMPLATE_PARAMS).getBytes(StandardCharsets.UTF_8))); <3>
FileUtil.readFileFromResource(DocumentServiceTestConstant.XSLT_TEMPLATE_PARAMS).getBytes(StandardCharsets.UTF_8))); <2>
----
<1> XSLT template neve
<2> A template nyelve
<3> Az XML dataset tartalma (jelen esetben tömörítetlenül)
<1> A template nyelve
<2> Az XML dataset tartalma (jelen esetben tömörítetlenül)

Ezek a metódusok - sikeres hívás esetén - egy GeneratedDocumentDTO-val térnek vissza, mely tartalmazza a generált fájlnevet, a generált objektumot, mint stream-et és a HTTP status kódot.

Expand Down

0 comments on commit b48ba6a

Please sign in to comment.