Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iotic-labs/iotics-digitaltwin-patterns
Iotics Digital Twin patterns repository
https://github.com/iotic-labs/iotics-digitaltwin-patterns
Last synced: 5 days ago
JSON representation
Iotics Digital Twin patterns repository
- Host: GitHub
- URL: https://github.com/iotic-labs/iotics-digitaltwin-patterns
- Owner: Iotic-Labs
- Created: 2022-05-03T10:47:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-30T09:29:15.000Z (10 months ago)
- Last Synced: 2024-04-24T10:35:00.417Z (7 months ago)
- Language: Shell
- Homepage:
- Size: 634 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IOTICS Digital Twin Patterns
This repo collects some of the most common utilisation patters of IOTICS.
The content is written in asciidoc and packaged to be rendered as a single book whose entry is [index.adoc](index.adoc)## Build the book
The book can be compiled in html and pdf. The scripts to compile the book are in the `book/` directory.
Both scripts use asciidoctor:1. Install asciidoctor: `gem install asciidoctor` and `gem install asciidoctor-pdf`
2. Run `to_html.sh` to generate the html book and `to_pdf.sh` to generate the pdf.## Notes on how links are structured
To preserve references to anchors when compiled in a book and static links to files when browsed via github, the xref asciidoc macro is used by defining, conditionally, behaviour.
When in github, `include`s are replaced with `xref`s and for any `xref`, the two variables `:relfileprefix:` and `:relfilesuffix:` are defined in each file to support either book (with ref to anchors) or github (files).
```asciidoc
ifdef::env-github[]
:relfileprefix:
:relfilesuffix: .adoc
endif::[]
``````asciidoc
ifndef::env-github[]
:relfileprefix: _
:relfilesuffix:
endif::[]
```## Versioning
The book uses git tags as versioning mechanism. The current version is also stored in `index.adoc` in the `:revnumber:` property. The script `bin/version.sh` can help creating a new version of the book sources.
This book uses semantic versioning as following:
* the major version should be increased when existing patterns are changed or the amount changes in the book warrants a new edition.
* the minor version should be increased when new patterns are added or existing are substantially modified (still retaining the same semantic).
* the build version should be increased for typos or small changes not needing users to get a newer version of the book.## Versions log
* Version 1.0.0: initial draft, reviewed and approved.
* Version 1.1.0: added "Asset Aggregator Twin" and "Master Asset Twin" patterns.
* Version 1.1.1: added versioning script and instructions on versioning scheme.