Skip to content

Commit f025efc

Browse files
Merge pull request #66 from OpenSimulationInterface/antora/improve_local_builds
Antora/improve local builds
2 parents 9eb8dc6 + 6889de3 commit f025efc

4 files changed

Lines changed: 16 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
vpython/
22
_build/
33
.vscode/
4-
_templates/
4+
_templates/
5+
local_build_tools/*.html

content/_config.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ifndef::include-only-once[]
3636
// :images_osi-sensor-model-packaging: ../../osi-sensor-model-packaging/doc/images
3737
:doc_open_simulation_interface: open-simulation-interface/doc/
3838
:doc_osi-sensor-model-packaging: osi-sensor-model-packaging/doc/
39-
:images_open_simulation_interface: ../../open-simulation-interface/doc/images
39+
:images_open_simulation_interface: ../images
4040
// Since a document spanning multiple repos is rendered here, the pathing regarding images is a bit involved.
4141
// We create a variable for every repo that is included. It point to the repo in question.
4242
// If the subrepo is rendered seperatly, then the variable is set to just "./images" with ifdef.
@@ -54,3 +54,10 @@ endif::[]
5454
ifdef::env-gitlab[]
5555
:relfilesuffix: .adoc
5656
endif::[]
57+
58+
ifdef::local[]
59+
:doc_open_simulation_interface: ../../open-simulation-interface/doc/
60+
:doc_osi-sensor-model-packaging: ../../osi-sensor-model-packaging/doc/
61+
:images_open_simulation_interface: ../images
62+
:data-uri:
63+
endif::[]

content/index.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ include::./general_docs/versioning.adoc[leveloffset=+2]
4343
include::./general_standard/relations_to_other_standards.adoc[leveloffset=+2]
4444

4545
// START: including the documentation of other osi repositories
46-
46+
:imagesdir: {doc_open_simulation_interface}images
4747
include::{doc_open_simulation_interface}open-simulation-interface_user_guide.adoc[leveloffset=+1]
4848

49+
:imagesdir: {doc_osi-sensor-model-packaging}images
4950
include::{doc_osi-sensor-model-packaging}osi-sensor-model-packaging_spec.adoc[leveloffset=+1]
5051

52+
:imagesdir: ./images
5153
// osi-validation and osi-visualizer are considered supplementary tooling that is not normative. They are therefore not part of the ASAM standard release.
5254
// include::./osi-validation/doc/osi-validator_user_guide.adoc[leveloffset=+1,opts=optional]
5355

local_build_tools/compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ services:
55
image: asciidoctor/docker-asciidoctor
66
volumes:
77
- ../:/documents
8-
entrypoint: asciidoctor --failure-level WARN -r asciidoctor-kroki -a mathjax -r asciidoctor-bibtex --trace content/index.adoc -o local_build_tools/HTML_content_local_build.html
8+
- ../../open-simulation-interface:/open-simulation-interface
9+
- ../../osi-sensor-model-packaging:/osi-sensor-model-packaging
10+
entrypoint: asciidoctor -a local=true --failure-level WARN -r asciidoctor-kroki -a mathjax -r asciidoctor-bibtex --trace content/index.adoc -o local_build_tools/HTML_content_local_build.html

0 commit comments

Comments
 (0)