Skip to content

Commit 1b57d01

Browse files
author
Jimisola Laursen
committed
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>
1 parent db4a0d5 commit 1b57d01

4 files changed

Lines changed: 45 additions & 75 deletions

File tree

.github/workflows/publish_gh_pages.yml

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

CONTRIBUTING.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Contributing to reqstool-python-hatch-plugin
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+
- Python 3.13+
10+
- [Hatch](https://hatch.pypa.io/) (`pip install hatch`)
11+
12+
## Setup
13+
14+
```bash
15+
git clone https://github.com/reqstool/reqstool-python-hatch-plugin.git
16+
cd reqstool-python-hatch-plugin
17+
hatch env create
18+
```
19+
20+
## Build & Test
21+
22+
```bash
23+
hatch build
24+
hatch run test
25+
```

README.md

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,28 @@
1-
21
[![Commit Activity](https://img.shields.io/github/commit-activity/m/reqstool/reqstool-python-hatch-plugin?label=commits&style=for-the-badge)](https://github.com/reqstool/reqstool-python-hatch-plugin/pulse)
32
[![GitHub Issues](https://img.shields.io/github/issues/reqstool/reqstool-python-hatch-plugin?style=for-the-badge&logo=github)](https://github.com/reqstool/reqstool-python-hatch-plugin/issues)
43
[![License](https://img.shields.io/github/license/reqstool/reqstool-python-hatch-plugin?style=for-the-badge&logo=opensourceinitiative)](https://opensource.org/license/mit/)
54
[![Build](https://img.shields.io/github/actions/workflow/status/reqstool/reqstool-python-hatch-plugin/build.yml?style=for-the-badge&logo=github)](https://github.com/reqstool/reqstool-python-hatch-plugin/actions/workflows/build.yml)
6-
[![Static Badge](https://img.shields.io/badge/Documentation-blue?style=for-the-badge&link=docs)](https://reqstool.github.io/reqstool-python-hatch-plugin/reqstool-python-hatch-plugin/0.0.2/index.html)
7-
8-
5+
[![Documentation](https://img.shields.io/badge/Documentation-blue?style=for-the-badge&link=docs)](https://reqstool.github.io)
96

10-
## Description
7+
# Reqstool Python Hatch Plugin
118

12-
This documentation provides information on how to use the Reqstool Hatch Plugin. The plugin is designed to be used with the Hatch build tool and facilitates the integration of the Reqstool Decorators in your project.
9+
Hatch build hook plugin for [reqstool](https://github.com/reqstool/reqstool-client) that collects decorated code and generates `annotations.yml` during `hatch build`.
1310

1411
## Installation
1512

16-
To use the Reqstool Hatch Plugin, follow these steps:
17-
18-
- Update your project dependencies in the `pyproject.toml` file and
19-
ensure that the Reqstool Decorators' dependency is listed as follows;
13+
Add to your `pyproject.toml`:
2014

2115
```toml
22-
dependencies = ["reqstool-python-decorators==<version>"]
16+
[build-system]
17+
requires = [
18+
"hatchling",
19+
"reqstool-python-hatch-plugin==<version>",
20+
]
2321
```
2422

25-
When you declare this in the pyproject.toml file, you are specifying the required versions for the dependency of the Reqstool Decorators. This ensures that the correct version of the dependencies are used when installing and running your project.
26-
27-
28-
2923
## Usage
3024

31-
### Configuration
32-
33-
The plugin can be configured through the `pyproject.toml` file. Configure plugin in `pyproject.toml`as follows;
25+
Configure the plugin in `pyproject.toml`:
3426

3527
```toml
3628
[tool.hatch.build.hooks.reqstool]
@@ -40,17 +32,16 @@ dataset_directory = "docs/reqstool"
4032
output_directory = "build/reqstool"
4133
```
4234

43-
And under `requires` in `[build-system]` you need to add the plugin with the version, see example;
35+
The plugin uses [reqstool-python-decorators](https://github.com/reqstool/reqstool-python-decorators) for processing.
4436

45-
```toml
46-
[build-system]
47-
requires = [
48-
"hatchling",
49-
"reqstool-python-hatch-plugin==<version>",
50-
]
51-
```
37+
## Documentation
38+
39+
Full documentation can be found [here](https://reqstool.github.io).
40+
41+
## Contributing
5242

43+
See the organization-wide [CONTRIBUTING.md](https://github.com/reqstool/.github/blob/main/CONTRIBUTING.md).
5344

54-
It specifies that the reqstool-python-hatch-plugin is a dependency for the build process, and it should be of a specific version.
45+
## License
5546

56-
Further it defines the paths where the plugin should be applied. In this case, it specifies that the plugin should be applied to files in the src and tests directories.
47+
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 Hatch Plugin Documentation

0 commit comments

Comments
 (0)