Skip to content

Commit

Permalink
Merge pull request #79 from isaqb-org/78-add-support-for-external-doc…
Browse files Browse the repository at this point in the history
…uments

Add support for external documents

No reviewer available.
  • Loading branch information
programming-wolf committed Aug 7, 2020
2 parents 6aa8020 + ab38245 commit 80f4db0
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
run: |
rm -rf ./build/tmp
cp ./docs-ext/curriculum-*.pdf ./build
zip -r release.zip ./build
- name: Deploy
if: startsWith(github.ref, 'refs/tags/')
Expand Down
9 changes: 5 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ git clone https://github.com/isaqb-org/advanced-template.git --recursive
[loweralpha]
.. `curriculumFileName`: the name of the asciidoc root file of your curriculum e.g. `curriculum-flex` (see above! The `.adoc` suffix is added automatically, omit it here!)
. Edit the file `document.version` and enter the version number this new version of the curriculum shall have e.g. "2020.1".
. Open README.adoc and replace the string `advanced-curriculum` with the name of your Github repository e.g. `curriculum-flex`
. Open README.adoc and replace the string `curriculum-template` with the name of your Github repository e.g. `curriculum-flex`
. Build the project with http://www.gradle.com[gradle] (you need a locally installed JDK) via `./gradlew`.
. Once the "BUILD SUCCESSFUL" is show, you can review the build result under `./build/index.html`

Expand Down Expand Up @@ -160,11 +160,11 @@ For that purpose we define a variable named `include_configuration` in the file

==== Structure File Example

In theory, you can just use the `docs/advanced-curriculum.adoc` as is and just
In theory, you can just use the `docs/curriculum-template.adoc` as is and just
edit the section documents in the subdirectories. If you want to create your own file,
we recommend to stick with the following:

From `docs/advanced-curriculum.adoc` (excerpts):
From `docs/curriculum-template.adoc` (excerpts):

[source,asciidoc]
----
Expand Down Expand Up @@ -219,7 +219,8 @@ task buildDocs {

In the task "renderNoRemarksDE", certain attributes (aka variables) are defined that configure the corresponding output.


== Additional translations/languages
include::docs-ext/EXTERNAL_DOCUMENTS_README.adoc[]

== Maintainers

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ext {
germanDate = new SimpleDateFormat("d. MMMM yyy", Locale.GERMANY).format(today)

project.version = project.file("./document.version").text
curriculumFileName = "advanced-curriculum"
curriculumFileName = "curriculum-template"
addSuffixToCurriculum = { suffix ->
for (extension in ["html", "pdf"]) {
File source = new File("${buildDir}/${curriculumFileName}.${extension}")
Expand Down
10 changes: 10 additions & 0 deletions docs-ext/EXTERNAL_DOCUMENTS_README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Copy translated versions (PDF) of the curriculum (other than German or English) to the directory `docs-ext`.

Please make sure, that the file name is well-formed and complies with the following format:

`curriculum-xxxx-lc.pdf`

`xxxx`: insert the name of the curriculum, e.g. `web` or `flex` +
`lc`: iso language code of the translation, e.g. `es` (Spanish) or `pt` (Portuguese)

Example: `curriculum-web-es.pdf` <- Spanish version of the WEB curriculum.
Binary file added docs-ext/curriculum-template-es.pdf
Binary file not shown.
File renamed without changes.

0 comments on commit 80f4db0

Please sign in to comment.