From b9909f199b488103143b27c502ac42553ca00186 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 16 Oct 2026 11:47:54 +0200 Subject: [PATCH] =?utf8?q?Dokumentation=20=C3=BCberarbeitet?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- pom.xml | 14 +++ src/main/resources/img/claude.svg | 43 +++++++ src/site/markdown/getting-started.md | 81 +++++++++++++ src/site/markdown/import-in-astro.md | 11 +- src/site/markdown/import-in-hugo.md | 11 +- src/site/markdown/supported-platforms.md | 147 +++++++++++++++++++++++ src/site/site.xml | 8 +- 7 files changed, 300 insertions(+), 15 deletions(-) create mode 100644 src/main/resources/img/claude.svg create mode 100644 src/site/markdown/getting-started.md create mode 100644 src/site/markdown/supported-platforms.md diff --git a/pom.xml b/pom.xml index db2ef22..73204d4 100644 --- a/pom.xml +++ b/pom.xml @@ -28,6 +28,20 @@ kai Kai Moritz kai@juplo.de + + architect + developer + + + + claude + Claude Code - Sonnet 4.6 + + developer + + + img/claude.svg + diff --git a/src/main/resources/img/claude.svg b/src/main/resources/img/claude.svg new file mode 100644 index 0000000..89db07a --- /dev/null +++ b/src/main/resources/img/claude.svg @@ -0,0 +1,43 @@ + + + + diff --git a/src/site/markdown/getting-started.md b/src/site/markdown/getting-started.md new file mode 100644 index 0000000..6ce7805 --- /dev/null +++ b/src/site/markdown/getting-started.md @@ -0,0 +1,81 @@ +# Getting Started + +The skin generates the documentation in a comman format, that includes meta-data for each generated page. + +The generated documents can be imported into a frontend project afterwards with the help of the included **import scripts**: + +Currently, only two frontend frameworks are supported: + +- **Astro**: `import-in-astro.sh` +- **Hugo**: `import-in-hugo.sh` + +These scripts have to be called with the Bash-Shell explicitly. + +## Prerequisites + +- `bash` +- `jq` (JSON processor) +- `perl` with `HTML::Entities` module (for `
` block conversion)
+
+## Usage example for Astro
+### Current version
+
+To import the current release directly under the site root, call the
+generated script from the root of your project with the path to the
+frontend-project, where the documentation should be copied to:
+
+```
+bash target/site/import-in-astro.sh \
+    ../path/to/frontend-project
+```
+
+### Archived version
+
+Import an archived version:
+
+```
+bash target/site/import-in-astro.sh \
+    ../path/to/frontend-project \
+    --archived
+```
+
+### Publish archived versions in the subfolder `/projects/`
+
+Import the current release directly under the site root as above:
+
+```
+bash target/site/import-in-astro.sh \
+    ../path/to/frontend-project
+```
+
+Import the archived version under `/projects//`:
+
+```
+bash target/site/import-in-astro.sh \
+    ../path/to/frontend-project \
+    --base projects \
+    --archived \
+    --canonical 
+```
+
+## Common parameters of all scripts
+
+| Parameter | Description |
+|---|---|
+| `` | Path to the project root (required). |
+| `--base ` | URL and content path prefix. The project name and version are always appended. Default: none (project at root). |
+| `--project ` | Overrides the project name derived from `artifactId`. |
+| `--current []` | *(Default)* Marks this version as the current (visible) release. If `` is given, it overrides the computed URL base. |
+| `--archived []` | Marks this version as archived. `params.canonical` points to the corresponding current-version page. If `` is given, it overrides the computed URL base. |
+| `--canonical ` | Explicitly sets the canonical URL base. Only valid with `--archived`. Default: `/`. |
+
+Only one of `--current` and `--archived` may be specified.
+
+## URL Defaults
+
+| Mode | URL Base |
+|---|---|
+| `--current`, no `--base` | `//` |
+| `--current --base /path` | `/path/artifact-id>/` |
+| `--archived`, no `--base` | `///` |
+| `--archived --base /path` | `/path///` |
diff --git a/src/site/markdown/import-in-astro.md b/src/site/markdown/import-in-astro.md
index c170468..078dcd8 100644
--- a/src/site/markdown/import-in-astro.md
+++ b/src/site/markdown/import-in-astro.md
@@ -12,8 +12,7 @@
 Run the script from the Maven site output directory (`target/site/`):
 
 ```
-cd target/site
-./import-in-astro.sh  [OPTIONS]
+bash target/site/import-in-astro.sh  [OPTIONS]
 ```
 
 The script checks for `package.json` in `` to verify that the path points to an Astro project.
@@ -114,15 +113,15 @@ The consuming Astro project does not configure `@astrojs/sitemap`, so no automat
 Import the current release directly under the site root:
 
 ```
-cd target/site
-./import-in-astro.sh /path/to/astro-project
+bash target/site/import-in-astro.sh \
+    /path/to/astro-project
 ```
 
 Import an archived version under `/projects/`:
 
 ```
-cd target/site
-./import-in-astro.sh /path/to/astro-project \
+bash target/site/import-in-astro.sh \
+    /path/to/astro-project \
     --base /projects \
     --archived \
     --canonical /my-project
diff --git a/src/site/markdown/import-in-hugo.md b/src/site/markdown/import-in-hugo.md
index 3c41e90..2766423 100644
--- a/src/site/markdown/import-in-hugo.md
+++ b/src/site/markdown/import-in-hugo.md
@@ -13,8 +13,7 @@
 Run the script from the Maven site output directory (`target/site/`):
 
 ```
-cd target/site
-./import-in-hugo.sh  [OPTIONS]
+bash target/site/import-in-hugo.sh  [OPTIONS]
 ```
 
 ## Parameters
@@ -72,15 +71,15 @@ For each directory that also has a `pages` entry in `stili-json`, a redirect pag
 Import the current release directly under the site root:
 
 ```
-cd target/site
-./import-in-hugo.sh /path/to/hugo-project
+bash target/site/import-in-hugo.sh \
+    /path/to/hugo-project
 ```
 
 Import an archived version under `/projects/`:
 
 ```
-cd target/site
-./import-in-hugo.sh /path/to/hugo-project \
+bash target/site/import-in-hugo.sh \
+    /path/to/hugo-project \
     --base /projects \
     --archived \
     --canonical /my-project
diff --git a/src/site/markdown/supported-platforms.md b/src/site/markdown/supported-platforms.md
new file mode 100644
index 0000000..7829b9a
--- /dev/null
+++ b/src/site/markdown/supported-platforms.md
@@ -0,0 +1,147 @@
+# Supported Platforms
+
+## Astro
+
+See:
+
+```
+bash target/site/import-in-astro.sh --help
+```
+
+[Detailed information](import-in-astro.html)
+
+## Hugo
+
+See:
+
+```
+bash target/site/import-in-hugo.sh --help
+```
+
+[Detailed information](import-in-hugo.html)
+
+## Add Your Favourite Platform
+
+You are welcome, to add support for your prefered platform.
+
+To get started, just take a look at the static HTML, that is generated by this Maven Skin.
+
+## `

` +The `

`-tag with the id `stili-title` contains the title of the documentation page. + +## `
` +The `
`-tag with the id `stili-body` contains the content of the documentation page. + +## `