Skip to content

Commit dd4a737

Browse files
jimisolaJimisola Laursen
andauthored
docs: documentation overhaul (#143)
* docs: documentation overhaul - Standardize README.md with consistent badges and structure - Add CONTRIBUTING.md with repo-specific dev setup - Add/update Antora docs structure - Remove per-repo GitHub Pages workflow - Point documentation badge to central site Signed-off-by: jimisola <jimisola@jimisola.com> * docs: streamline nav and page structure - Separate nav items instead of single monolithic page - Merge description.adoc content into index.adoc - Add license section to index.adoc - Change nav label from All to Overview Signed-off-by: jimisola <jimisola@jimisola.com> * docs: use lowercase reqstool consistently Signed-off-by: jimisola <jimisola@jimisola.com> * docs: add cross-component xrefs to Maven and Gradle plugins Signed-off-by: jimisola <jimisola@jimisola.com> --------- Signed-off-by: jimisola <jimisola@jimisola.com> Co-authored-by: Jimisola Laursen <jimisola.laursen@resurs.se>
1 parent 075caa9 commit dd4a737

File tree

8 files changed

+98
-67
lines changed

8 files changed

+98
-67
lines changed

.github/workflows/publish_pages.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Contributing to reqstool-java-annotations
2+
3+
Thank you for your interest in contributing!
4+
5+
For DCO sign-off, commit conventions, and code review process, see the organization-wide [CONTRIBUTING.md](https://github.com/reqstool/.github/blob/main/CONTRIBUTING.md).
6+
7+
## Prerequisites
8+
9+
- Java 21+
10+
- Maven 3.9+
11+
12+
## Setup
13+
14+
```bash
15+
git clone https://github.com/reqstool/reqstool-java-annotations.git
16+
cd reqstool-java-annotations
17+
```
18+
19+
## Build & Test
20+
21+
```bash
22+
mvn verify
23+
```

README.adoc

Lines changed: 0 additions & 7 deletions
This file was deleted.

README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[![Commit Activity](https://img.shields.io/github/commit-activity/m/reqstool/reqstool-java-annotations?label=commits&style=for-the-badge)](https://github.com/reqstool/reqstool-java-annotations/pulse)
2+
[![GitHub Issues](https://img.shields.io/github/issues/reqstool/reqstool-java-annotations?style=for-the-badge&logo=github)](https://github.com/reqstool/reqstool-java-annotations/issues)
3+
[![License](https://img.shields.io/github/license/reqstool/reqstool-java-annotations?style=for-the-badge&logo=opensourceinitiative)](https://opensource.org/license/mit/)
4+
[![Build](https://img.shields.io/github/actions/workflow/status/reqstool/reqstool-java-annotations/build.yml?style=for-the-badge&logo=github)](https://github.com/reqstool/reqstool-java-annotations/actions/workflows/build.yml)
5+
[![Documentation](https://img.shields.io/badge/Documentation-blue?style=for-the-badge&link=docs)](https://reqstool.github.io)
6+
7+
# Reqstool Java Annotations
8+
9+
Java annotations for [reqstool](https://github.com/reqstool/reqstool-client) requirements traceability.
10+
11+
## Overview
12+
13+
Provides `@Requirements` and `@SVCs` annotations for linking Java code to requirements and software verification cases. Used together with the [Maven Plugin](https://github.com/reqstool/reqstool-java-maven-plugin) or [Gradle Plugin](https://github.com/reqstool/reqstool-java-gradle-plugin).
14+
15+
## Installation
16+
17+
Add the dependency to your project:
18+
19+
### Maven
20+
21+
```xml
22+
<dependency>
23+
<groupId>io.github.reqstool</groupId>
24+
<artifactId>reqstool-java-annotations</artifactId>
25+
<version>1.0.0</version>
26+
</dependency>
27+
```
28+
29+
### Gradle
30+
31+
```groovy
32+
implementation 'io.github.reqstool:reqstool-java-annotations:1.0.0'
33+
```
34+
35+
## Usage
36+
37+
```java
38+
import io.github.reqstool.annotations.Requirements;
39+
import io.github.reqstool.annotations.SVCs;
40+
41+
@Requirements({"REQ_001", "REQ_002"})
42+
public class MyService {
43+
// Implementation
44+
}
45+
46+
@Test
47+
@SVCs("SVC_001")
48+
public void testMyService() {
49+
// Test
50+
}
51+
```
52+
53+
## Documentation
54+
55+
Full documentation can be found [here](https://reqstool.github.io).
56+
57+
## Contributing
58+
59+
See the organization-wide [CONTRIBUTING.md](https://github.com/reqstool/.github/blob/main/CONTRIBUTING.md).
60+
61+
## License
62+
63+
MIT License.

docs/antora-playbook.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/asciidoctor/asciidoctor-intellij-plugin/main/src/main/resources/jsonSchemas/antoraPlaybookSchema.json
2+
# For local development only. Published site: https://reqstool.github.io
23

34
site:
45
title: Reqstool Java Annotations Documentation

docs/modules/ROOT/nav.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
* xref:index.adoc[All]
2-
* xref:description.adoc[Description]
1+
* xref:index.adoc[Overview]
32
* xref:installation.adoc[Installation]
43
* xref:usage.adoc[Usage]
54
* xref:debugging.adoc[Debugging]

docs/modules/ROOT/pages/description.adoc

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/modules/ROOT/pages/index.adoc

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
= Reqstool Java Annotations
1+
= reqstool Java Annotations
22

3-
include::description.adoc[]
3+
This provides Java annotations and processing of annotated code.
44

5-
include::installation.adoc[]
5+
Enables the usage of `@Requirements` and `@SVCs` annotations and processors to collect, format and write annotations data to yaml files.
66

7-
include::usage.adoc[]
7+
== Related components
88

9-
include::debugging.adoc[]
9+
* xref:reqstool-java-maven-plugin::index.adoc[Maven Plugin] -- packages annotations into a reqstool artifact during Maven builds
10+
* xref:reqstool-java-gradle-plugin::index.adoc[Gradle Plugin] -- packages annotations into a reqstool artifact during Gradle builds
11+
12+
== License
13+
14+
MIT License.

0 commit comments

Comments
 (0)