Skip to content

Commit

Permalink
fix(website): Fixed Edit Button, Page Attributes and Apache Links
Browse files Browse the repository at this point in the history
  • Loading branch information
hutcheb committed Nov 12, 2024
1 parent a3266ed commit f2372e1
Show file tree
Hide file tree
Showing 131 changed files with 238 additions and 377 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ for (final def protocolCode in plcDriverManager.getProtocolCodes()) {
"<dependency>\n" +
" <groupId>org.apache.plc4x</groupId>\n" +
" <artifactId>" + moduleName + "</artifactId>\n" +
" <version>{current-last-released-version}</version>\n" +
" <version>{page-component-version}</version>\n" +
"</dependency>\n" +
"----"
if(driver.metadata.defaultTransportCode.isPresent()) {
Expand Down
2 changes: 1 addition & 1 deletion website/antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ content:
sources:
- url: ../..
branches: HEAD
start_path: website/target/asciidoc
start_path: website/asciidoc
ui:
bundle:
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
Expand Down
3 changes: 1 addition & 2 deletions website/asciidoc/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
# under the License.
#
name: plc4x
version: 'latest'
version: '0.13.0-SNAPSHOT'
prerelease: True
title: PLC4X
nav:
- modules/ROOT/nav.adoc
- modules/users/nav.adoc
- modules/developers/nav.adoc
- modules/apache/nav.adoc
23 changes: 0 additions & 23 deletions website/asciidoc/modules/apache/nav.adoc

This file was deleted.

20 changes: 0 additions & 20 deletions website/asciidoc/modules/apache/pages/index.adoc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

== Simple case

include::partial$pom.adoc[]


In this simple case, an application asks the DriverManager to forward a connection creation to the corresponding Driver implementation, which then creates both a Connection and a MessageCodec instance. The Connection is the logical link between the connection state and the MessageCodec.
A MessageCodec uses a TransportInstance to communicate with the target device.
Expand Down
8 changes: 3 additions & 5 deletions website/asciidoc/modules/developers/pages/building.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

= Building PLC4X

include::partial$pom.adoc[]

PLC4X is built with `Apache Maven` and we have tried to make the build as simple as possible.

However PLC4X aims at providing means to communicate with PLCs of multiple vendors using a shared API but also in a variety of different languages.
Expand Down Expand Up @@ -158,8 +156,8 @@ repositories {
}
dependencies {
implementation group: 'org.apache.plc4x', name: 'plc4j-api', version: '{current-last-released-version}'
implementation group: 'org.apache.plc4x', name: 'plc4j-driver-s7', version: '{current-last-released-version}'
implementation group: 'org.apache.plc4x', name: 'plc4j-connection-pool', version: '{current-last-released-version}'
implementation group: 'org.apache.plc4x', name: 'plc4j-api', version: '{page-component-version}'
implementation group: 'org.apache.plc4x', name: 'plc4j-driver-s7', version: '{page-component-version}'
implementation group: 'org.apache.plc4x', name: 'plc4j-connection-pool', version: '{page-component-version}'
}
----
16 changes: 8 additions & 8 deletions website/asciidoc/modules/developers/pages/code-gen/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

= Code Generation

include::partial$pom.adoc[]


As hand-writing code for a lot of drivers in multiple languages would be quite a nightmare, we have invested a very large amount of time into finding a way to automate this.

Expand Down Expand Up @@ -199,7 +199,7 @@ Here's an example of a driver pom for building a `S7` driver for `java`:
<parent>
<groupId>org.apache.plc4x.plugins</groupId>
<artifactId>plc4x-code-generation</artifactId>
<version>{current-last-released-version}</version>
<version>{page-component-version}</version>
</parent>
<artifactId>test-java-s7-driver</artifactId>
Expand Down Expand Up @@ -231,21 +231,21 @@ Here's an example of a driver pom for building a `S7` driver for `java`:
<dependency>
<groupId>org.apache.plc4x.plugins</groupId>
<artifactId>plc4x-code-generation-driver-base-java</artifactId>
<version>{current-last-released-version}</version>
<version>{page-component-version}</version>
</dependency>
<dependency>
<groupId>org.apache.plc4x.plugins</groupId>
<artifactId>plc4x-code-generation-language-java</artifactId>
<version>{current-last-released-version}</version>
<version>{page-component-version}</version>
<!-- Scope is 'provided' as this way it's not shipped with the driver -->
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.plc4x.plugins</groupId>
<artifactId>plc4x-code-generation-protocol-s7</artifactId>
<version>{current-last-released-version}</version>
<version>{page-component-version}</version>
<!-- Scope is 'provided' as this way it's not shipped with the driver -->
<scope>provided</scope>
</dependency>
Expand All @@ -263,7 +263,7 @@ The dependency:
<dependency>
<groupId>org.apache.plc4x.plugins</groupId>
<artifactId>plc4x-code-generation-driver-base-java</artifactId>
<version>{current-last-released-version}</version>
<version>{page-component-version}</version>
</dependency>
....

Expand All @@ -276,7 +276,7 @@ The definitions of both the `s7` protocol and `java` language are provided by th
<dependency>
<groupId>org.apache.plc4x.plugins</groupId>
<artifactId>plc4x-code-generation-language-java</artifactId>
<version>{current-last-released-version}</version>
<version>{page-component-version}</version>
<!-- Scope is 'provided' as this way it's not shipped with the driver -->
<scope>provided</scope>
</dependency>
Expand All @@ -289,7 +289,7 @@ and:
<dependency>
<groupId>org.apache.plc4x.plugins</groupId>
<artifactId>plc4x-code-generation-protocol-s7</artifactId>
<version>{current-last-released-version}</version>
<version>{page-component-version}</version>
<!-- Scope is 'provided' as this way it's not shipped with the driver -->
<scope>provided</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

= Apache Freemarker

include::partial$pom.adoc[]


For the Freemarker language output we are using an unmodified version of https://freemarker.apache.org[Apache Freemarker] to generate output.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= Example: DF1 MSpec

include::partial$pom.adoc[]


The DF1 protocol has three basic messages: a command message, acknowledge and not acknowledge.
A `0x10` is used as delimiter to differentiate between the messages and parts of the command message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

= The MSpec format

include::partial$pom.adoc[]


The `MSpec` format (Message Specification) was a result of a brainstorming session after evaluating a lot of other options.

Expand Down
2 changes: 1 addition & 1 deletion website/asciidoc/modules/developers/pages/conferences.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= Conferences & Events

include::partial$pom.adoc[]


On this page we are listing options to attend talks and events around PLC4X.

Expand Down
4 changes: 1 addition & 3 deletions website/asciidoc/modules/developers/pages/contributing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

= Contributing

include::partial$pom.adoc[]

== Forms of contribution

There are multiple forms in which you can become involved with the PLC4X project.
Expand Down Expand Up @@ -138,7 +136,7 @@ The same model is used for a wide variety of other projects, so it should be pre
- `release` contains the latest released state.
- Development is performed on the `develop` branch.
- Features are developed in Feature-Branches with a prefix `feature/`
- Each minor release has a corresponding release branch `rel/{current-last-released-version}`
- Each minor release has a corresponding release branch `rel/{page-component-version}`
- A release branch is spawned from `develop` only
- Bugfix releases don't have a dedicated release branch, they are just performed on the corresponding minor versions release branch

Expand Down
2 changes: 1 addition & 1 deletion website/asciidoc/modules/developers/pages/decisions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

= Decision Making

include::partial$pom.adoc[]


== Introduction

Expand Down
2 changes: 1 addition & 1 deletion website/asciidoc/modules/developers/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

= Developer Section

include::partial$pom.adoc[]


This part of the Apache PLC4X dedicated to provide information to people wanting to build PLC4X and hopefully also start contributing to this awesome project.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

= Continuous Integration

include::partial$pom.adoc[]


We are currently using the following CI systems.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

= Infrastructure

include::partial$pom.adoc[]


In this section you can find information on the services the Apache PLC4X project makes use of.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= Bug & Issue Tracker

include::partial$pom.adoc[]


Our bug & issue tracker is Github-Issues.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= Code Analysis

include::partial$pom.adoc[]


We are using `SonarCloud` as the service for static code analysis.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= The PLC4X Project VM

include::partial$pom.adoc[]


As, especially for the raw socket functionality of PLC4X, our project had higher demands on the infrastructure as other projects.
Apache Infra kindly provided us with a dedicated VM.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= Generating the Website

include::partial$pom.adoc[]


We are currently using the normal `Maven` build to not only generate the project artifacts, but also the projects website.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= WIKI

include::partial$pom.adoc[]


We use Apache's Confluence instance as Wiki, however most information is generally managed on this website.

Expand Down
2 changes: 1 addition & 1 deletion website/asciidoc/modules/developers/pages/jqassistant.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

= Using JQAssistant

include::partial$pom.adoc[]


In PLC4X we are using a tool called `https://jqassistant.org/[JQAssistant]` for enforcing quality assurance rules.

Expand Down
2 changes: 1 addition & 1 deletion website/asciidoc/modules/developers/pages/maturity.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

= Apache Maturity Model Assessment for PLC4X

include::partial$pom.adoc[]


== Overview

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= Preparing your Computer

include::partial$pom.adoc[]


Building a project like Apache PLC4X on multiple target operating-systems is quite a challenge, but I think we managed to make it as simple as possible.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= Linux

include::partial$pom.adoc[]


As tracking down issues which result from missing or outdated third party tools such as compilers are always hard do diagnose, we have extended the build of PLC4X with a `prerequisiteCheck` that automatically checks if required tools are installed and if a required minimum version is available.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= Mac OS

include::partial$pom.adoc[]


As tracking down issues which result from missing or outdated third party tools such as compilers are always hard do diagnose, we have extended the build of PLC4X with a `prerequisiteCheck` that automatically checks if required tools are installed and if a required minimum version is available.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= Windows

include::partial$pom.adoc[]


As tracking down issues which result from missing or outdated third party tools such as compilers are always hard do diagnose, we have extended the build of PLC4X with a `prerequisiteCheck` that automatically checks if required tools are installed and if a required minimum version is available.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
= Beckhoff ADS Protocol
:page-role: home

include::partial$pom.adoc[]


// https://plantuml.com/de/activity-diagram-legacy
// https://deepu.js.org/svg-seq-diagram/Reference_Guide.pdf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
= EIP Protocol
:page-role: home

include::partial$pom.adoc[]


// https://plantuml.com/de/activity-diagram-legacy
// https://deepu.js.org/svg-seq-diagram/Reference_Guide.pdf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

= Usage of protocols

include::partial$pom.adoc[]


== Currently documented are:

Expand Down
Loading

0 comments on commit f2372e1

Please sign in to comment.