Skip to content

Commit 93be9e0

Browse files
Initial setup for Antora
Signed-off-by: Philip Windecker <philip.windecker@avenyr.de>
1 parent 700133d commit 93be9e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+307
-17
lines changed

.antora/antora.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Component name (without spaces!). All content repositories with the same component name are merged in Antora.
2+
name: asamosi
3+
version:
4+
# Update version number accordingly. This is the version for the main branch
5+
main: 'current'
6+
v(*): V$1
7+
V(*): V$1
8+
# Update version number accordingly. This is the version for any other activated branch (branch must be added in the generator site.yml!). Schema = 0.0.x-<branch-name> (only works for branches starting with "feature/")
9+
(*): '3.6.0-$1'

.antora/modules/interface/images

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../doc/images

.antora/modules/interface/nav.adoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[preface]
2+
* xref:00_preface/00_foreword.adoc[]
3+
[preface]
4+
* xref:00_preface/01_introduction.adoc[]
5+
* xref:01_scope/01_scope.adoc[]
6+
* xref:02_normative_references/01_normative_references.adoc[]
7+
* xref:03_terms_and_definitions/01_terms_and_definitions.adoc[]
8+
* xref:04_abbreviations/01_abbreviations.adoc[]
9+
* xref:05_backward_compatibility/01_backward_compatibility.adoc[]
10+
11+
[appendix]
12+
* xref:xx_annexes/REPLACE_ME.adoc[]
13+
[bibliography]
14+
* xref:bibliography.adoc[]
15+
16+
:sectnums!:
17+
* xref:list_of_figures.adoc[]
18+
19+
:sectnums!:
20+
* xref:list_of_tables.adoc[]
21+
22+
// TODO Replace with generator

.antora/modules/interface/pages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../doc

doc/_config.adoc

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
2+
// This file contains AsciiDoc attributes that shall be used in every AsciiDoc file.
3+
// NOTE: Its content is only applied for Asciidoctor!
4+
// If the same attribute is defined in the antora.yml (without @), the antora.yml definition takes precedence for Antora.
5+
6+
ifndef::root-path[:root-path: ./]
7+
8+
:partials-path: {root-path}../_additional_content
9+
:asciidoc-resources: ../asciidoc-resources
10+
:appendix-caption: Annex
11+
12+
// ifndef::use-antora-rules,include-only-once[]
13+
ifndef::include-only-once[]
14+
:GLO_VAR_STA_ASAM_OpenCRG: ASAM OpenCRG
15+
:glo_var_sta_asam_opencrg: {GLO_VAR_STA_ASAM_OpenCRG}
16+
:GLO_VAR_STA_ASAM_OpenDRIVE: ASAM OpenDRIVE
17+
:GLO_VAR_STA_ASAM_OpenLABEL: ASAM OpenLABEL
18+
:GLO_VAR_STA_ASAM_OpenODD: ASAM OpenODD
19+
:GLO_VAR_STA_ASAM_OSI: ASAM OSI®
20+
:GLO_VAR_STA_ASAM_OpenSCENARIO: ASAM OpenSCENARIO
21+
:GLO_VAR_STA_ASAM_OpenXOntology: ASAM OpenXOntology
22+
:GLO_VAR_STA_BSI_PAS_1883: BSI PAS 1883
23+
:revnumber: --localbuild--
24+
:revdate: {docdate}
25+
:bibtex-file: ./content/general_docs/bibliography.bib
26+
// Replace PLACEHOLDER with the name of your standard, e.g. OpenDRIVE
27+
:THIS_STANDARD: {GLO_VAR_STA_ASAM_OSI}
28+
:asam-terminology: https://code.asam.net/common/asam-terminology/-/raw/main/terms_and_definitions_opendrive.adoc
29+
:imagesdir: {root-path}/images
30+
:include-only-once: true
31+
:topicdir: topics
32+
:reusedir: reuse
33+
:toclevels: 3
34+
:xrefstyle: full
35+
:images_open_simulation_interface: ./open-simulation-interface/doc/images
36+
// :images_osi-sensor-model-packaging: ./osi-sensor-model-packaging/doc/images
37+
:doc_open_simulation_interface: ../../open-simulation-interface/doc/
38+
:doc_osi-sensor-model-packaging: ../../osi-sensor-model-packaging/doc/
39+
// Since a document spanning multiple repos is rendered here, the pathing regarding images is a bit involved.
40+
// We create a variable for every repo that is included. It point to the repo in question.
41+
// If the subrepo is rendered seperatly, then the variable is set to just "./images" with ifdef.
42+
// Please note that this variable has to used in all image includes. Includes here have to use "image::./images..."
43+
// :images_osi_sensor_model_packaging: ./osi-sensor-model-packaging/doc/images // example
44+
:imagesoutdir: ./images/generated_images
45+
46+
endif::[]
47+
48+
ifndef::use-antora-rules[]
49+
include::{asciidoc-resources}/preamble.adoc[]
50+
endif::[]
51+
52+
ifdef::env-gitlab[]
53+
:relfilesuffix: .adoc
54+
endif::[]
55+
56+
57+
:asciidoc-resources: ../0_resources

doc/architecture/architecture_overview.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
= Overview of OSI architecture
22

3+
ifndef::include-only-once[]
4+
:root-path: ../
5+
include::{root-path}_config.adoc[]
6+
endif::[]
7+
38
OSI contains an object-based environment description that uses the message format of the https://github.com/protocolbuffers/protobuf/wiki[Protocol Buffer] library.
49
Google developed and maintains the Protocol Buffer library.
510
OSI defines top-level messages that are used to exchange data between separate models.

doc/architecture/data_layer.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
= Data layer
22

3+
ifndef::include-only-once[]
4+
:root-path: ../
5+
include::{root-path}_config.adoc[]
6+
endif::[]
7+
38
The OSI data layer is defined in the message specifications using the ProtoBuf IDL cite:[protobuf].
49
This defines the data that can be transmitted using OSI, including the structure and the semantics of the data.
510

doc/architecture/environmental_effect_model.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
= Environmental effect model
22

3+
ifndef::include-only-once[]
4+
:root-path: ../
5+
include::{root-path}_config.adoc[]
6+
endif::[]
7+
38
Environmental effect models consume `SensorView` messages and produce `SensorView` messages.
49
Environmental effect models may, for example, alter `SensorView` messages to include effects and phenomena caused by:
510

doc/architecture/feature_data.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
= Feature data
22

3+
ifndef::include-only-once[]
4+
:root-path: ../
5+
include::{root-path}_config.adoc[]
6+
endif::[]
7+
38
`FeatureData` messages contain detected features in the reference frame of a sensor.
49
`FeatureData` messages are generated from `GroundTruth` messages.
510
They serve, for example, as an input to sensor models simulating object detection or feature fusion models.

doc/architecture/formatting_scripts.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
= Trace-file formatting scripts
22

3+
ifndef::include-only-once[]
4+
:root-path: ../
5+
include::{root-path}_config.adoc[]
6+
endif::[]
7+
38
The OSI repository contains Python scripts for converting trace files from one format to another.
49
The formatting scripts are stored in `open-simulation-interface/format/`
510

0 commit comments

Comments
 (0)