Important
|
This repository contains the generator and general setup for Antora in context of ASAM OSI. It does not contain the content itself! |
The pipeline of this repository is responsible for creating the combined and versioned Antora output for ASAM OSI. It also pushes it to the respective GitHub pages for hosting.
Hosted version available at: ASAM OSI (link)
-
Precondition: have docker and docker-compose installed. Have access to the ASAM GitLab Antora extensions repository.
TipOfficial installation can be found here. -
Clone this repository with submodules.
git clone --recurse-submodules https://github.com/OpenSimulationInterface/osi-antora-generator.git
-
Recommended: To use local content instead of pulling from remote every time, check out all content repositories (osi-documentation, open-simulation-interface, and osi-sensor-model-packaging) into this repository’s root (e.g. "./osi-documentation"). You may also choose to only check out a selection of these repositories.
cd osi-antora-generator git clone --recurse-submodules https://github.com/OpenSimulationInterface/osi-documentation.git git clone --recurse-submodules https://github.com/OpenSimulationInterface/open-simulation-interface.git git clone --recurse-submodules https://github.com/OpenSimulationInterface/osi-sensor-model-packaging.git
-
Copy the 'site.yml' as 'site_local.yml'
-
Recommended: For local content, switch the url of all local repositories from remote to local (comment out/in respective line with
url:
) -
Optional: To build a specific branch, replace the related entry under
branches:
or add it to the array. Alternatively, switch to 'HEAD' by commenting out/in the respective lines withbranches:
For more information on how the 'site.yml' works, see the official Antora documentation.
-
-
To run Antora, run docker-compose:
docker-compose -f docker-compose-local.yml
Important
|
This setup runs doxygen builds by default.
Note that these can take more than five minutes per version!
If you are iterating over small or multiple text changes, consider deactivating the doxygen build steps by commenting out the line doxygen: true in your site_local.yml.
Alternatively, limit your build to only your current content (i.e. comment out the tags and only add HEAD as branch).
|
Tip
|
If you are using VSCode, there is currently no correctly working support for source control of nested git projects. However, there exists a workaround:
|
Important
|
This only works for a local setup! |
Click for local PDF builder setup instructions
To build Antora into PDF (which only works locally right now), you have to change a few settings.
First, enter your docker-compose-local.yml file, comment out the line below Default generator setup
, then comment in the line below BE AWARE that this currently does not support the use of © or ®! You must alter the respective lines in osi-documentation/.antora/antora.yml. Make sure not to check these changes in!
.
Next, open the 'antora.yml' file in your 'osi-documentation/.antora' folder and change the following lines from
THIS_STANDARD: ASAM OSI<sup>®</sup> # Normal attribute
THIS_STANDARD_TITLE: 'ASAM OSI^®^' # Normal attribute
# THIS_STANDARD: ASAM OSI # PDF version attribute
# THIS_STANDARD_TITLE: 'ASAM OSI' # PDF version attribute
to
# THIS_STANDARD: ASAM OSI<sup>®</sup> # Normal attribute
# THIS_STANDARD_TITLE: 'ASAM OSI^®^' # Normal attribute
THIS_STANDARD: ASAM OSI # PDF version attribute
THIS_STANDARD_TITLE: 'ASAM OSI' # PDF version attribute