| --- | |
| paths: "website/**" | |
| applyTo: "website/**" | |
| --- | |
| <!-- GENERATED from .agents/rules/website.md by .agents/sync-adapters.sh. Edit the source, then run it. --> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one | |
| or more contributor license agreements. See the NOTICE file | |
| distributed with this work for additional information | |
| regarding copyright ownership. The ASF licenses this file | |
| to you under the Apache License, Version 2.0 (the | |
| "License"); you may not use this file except in compliance | |
| with the License. You may obtain a copy of the License at | |
| https://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, | |
| software distributed under the License is distributed on an | |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| KIND, either express or implied. See the License for the | |
| specific language governing permissions and limitations | |
| under the License. | |
| --> | |
| # Website (`website/`) | |
| Antora site in AsciiDoc: `website/asciidoc/modules/{ROOT,users,developers}/`, each with `pages/` and a | |
| `nav.adoc` (a new page is listed there). Build: `./mvnw site -pl . -pl website` (as CI does). | |
| - **Protocol matrix:** `modules/users/pages/protocols/index.adoc` lists per protocol and language (C, C#, Go, | |
| Java, Python) whether a driver ships. A driver that becomes available, or is removed, in a language updates its | |
| cell in the same PR. A protocol page (`protocols/<p>.adoc`) describes every language's driver, not only one. | |
| - **Generated partials:** `modules/users/partials/<p>.adoc` and `transport-<t>.adoc` (configuration tables) are | |
| written by `./mvnw -P with-java site -pl :plc4j-driver-all` from the plc4j `@ConfigurationParameter` | |
| annotations. Change the annotation, then regenerate; never edit the table by hand. | |
| - **Developer docs** that agents rely on: `developers/pages/building.adoc`, `contributing.adoc`, | |
| `code-gen/` (mspec format, templates), `preparing/` (toolchains). When a build fact changes, fix the page; | |
| when a page contradicts `pom.xml`, `pom.xml` wins and the page is fixed in a docs PR. | |
| - `.adoc` files carry the license header as `//` comment lines. |