Skip to content

Commit 412f233

Browse files
committed
chore: add agnets instructions
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent b639b43 commit 412f233

File tree

4 files changed

+118
-54
lines changed

4 files changed

+118
-54
lines changed

.devcontainer/devcontainer.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22
"name": "Node.js & TypeScript",
33
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
44
"features": {
5-
"ghcr.io/astronomer/devcontainer-features/astro-cli:1": {}
5+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
6+
},
7+
"forwardPorts": [3000],
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"eamodio.gitlens",
12+
"github.vscode-github-actions",
13+
"github.copilot",
14+
"github.copilot-chat",
15+
"ms-vscode.makefile-tools",
16+
"dbaeumer.vscode-eslint",
17+
"esbenp.prettier-vscode",
18+
"msjsdiag.vscode-react-native"
19+
],
20+
"mcpServers": {
21+
"playwright": {
22+
"command": "npx",
23+
"args": ["@playwright/mcp@latest"]
24+
},
25+
"lighthouse": {
26+
"command": "npx",
27+
"args": ["lighthouse-mcp"],
28+
"disabled": false,
29+
"autoApprove": []
30+
}
31+
}
32+
}
633
}
734
}

.github/dependabot.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ updates:
88
schedule:
99
interval: "weekly"
1010
groups:
11+
npm-development-dependencies:
12+
dependency-type: "development"
1113
npm-docusaurus-dependencies:
1214
patterns:
1315
- "@docusaurus/*"
@@ -16,8 +18,6 @@ updates:
1618
- "@mdx-js/react"
1719
- "clsx"
1820
- "prism-react-renderer"
19-
npm-development-dependencies:
20-
dependency-type: "development"
2121

2222
- package-ecosystem: github-actions
2323
open-pull-requests-limit: 20
@@ -34,10 +34,6 @@ updates:
3434
directory: "/"
3535
schedule:
3636
interval: weekly
37-
groups:
38-
devcontainers-dependencies:
39-
patterns:
40-
- "*"
4137

4238
- package-ecosystem: "docker"
4339
open-pull-requests-limit: 20

AGENTS.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# AGENTS.md — agent instructions and operational contract
2+
3+
This file is written for automated coding agents (for example: Copilot coding agents). It provides the operational contract and guardrails for agents contributing to this repository. It is not the canonical source for engineering standards—those live in the project documentation referenced below.
4+
5+
## Organization-wide guidelines (required)
6+
7+
- Follow the prioritized shared instructions in [hoverkraft-tech/.github/AGENTS.md](https://github.com/hoverkraft-tech/.github/blob/main/AGENTS.md) before working in this repository.
8+
9+
## Quick Start
10+
11+
This project hosts the public documentation portal for Hoverkraft. The site is built with **Docusaurus** and lives under the `application/` directory. For full details, consult the main [README.md](README.md).
12+
13+
### Key sections to reference
14+
15+
- **[Overview](README.md#overview)** — Project purpose, hosting expectations, and supported content types
16+
- **[Site Structure](README.md#site-structure)** — Folder layout for documentation, static assets, and configuration files
17+
- **[Development Workflow](README.md#development-workflow)** — Commands for preparing dependencies, running the dev server, linting, and building
18+
- **[Content Pipeline](README.md#content-pipeline)** — How repository metadata is ingested and published
19+
- **[Contributing](README.md#contributing)** — Branching model, pull-request expectations, and code style references
20+
21+
## Agent-specific development patterns
22+
23+
### Critical workflow knowledge
24+
25+
```bash
26+
make prepare # Install npm dependencies
27+
make start # Run the Docusaurus dev server with live reload
28+
make lint # Execute project linters (filters optional targets)
29+
make lint-fix # Auto-fix lint issues and run repo-wide formatter
30+
make build # Build the static site into application/build
31+
make ci # CI entrypoint: prepare + lint-fix + build
32+
```
33+
34+
- Work inside the `application/` directory for all Docusaurus-specific tasks (React components, docs, configuration).
35+
- Generated static assets live in `application/build/`; never edit those files manually.
36+
- When updating docs, prefer Markdown in `application/docs/` with frontmatter aligned to existing pages.
37+
- For UI changes, ensure corresponding CSS lives under `application/src/` (`components/` or `css/`) and passes project linting.
38+
- Run `make lint` (or `make lint-fix`) before submitting changes to keep Markdown, CSS, JSON, and TypeScript formatting consistent.
39+
- Treat `application/docs/` as public-facing material only. Keep internal or sensitive implementation details concise within the root `README.md` instead of publishing them under `application/docs/`.

README.md

Lines changed: 49 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,73 @@
11
# Hoverkraft Documentation Portal
22

3-
Public documentation portal for Hoverkraft open-source projects (aka openkraft).
3+
Public documentation hub for Hoverkraft (aka openkraft) projects and methodologies.
44

5-
This repository contains the source code for the Hoverkraft documentation site built with [Docusaurus](https://docusaurus.io/).
5+
---
66

7-
## 🚀 Quick Start
7+
## Overview
88

9-
### Prerequisites
9+
The portal aggregates technical guides, project overviews, and methodology notes from the Hoverkraft ecosystem. The CI pipeline ingests metadata (topics, readmes, release notes) from public repositories and renders them as curated documentation pages.
1010

11-
- Node.js 20.0 or higher
12-
- npm
11+
## Documentation Areas
1312

14-
### Installation
13+
- **Methodology** — Delivery practices, CI/CD playbooks, and platform standards (`application/docs/methodology/`)
14+
- **Projects** — Directory of open-source projects managed by Hoverkraft (`application/docs/projects.md`)
15+
- **Internal notes** — Keep internal or implementation-specific documentation concise in this root readme; `application/docs/` is limited to public-facing content.
1516

16-
```bash
17-
make prepare
18-
```
19-
20-
### Development
17+
## Site Structure
2118

22-
Start the development server:
19+
The site is built with [Docusaurus](https://docusaurus.io/) and published as a static site from the `application/` workspace.
2320

24-
```bash
25-
make start
21+
```
22+
application/
23+
├── docs/ # Markdown sources rendered by Docusaurus
24+
├── src/ # React components, pages, and styling modules
25+
│ ├── components/ # Shared UI components
26+
│ └── pages/ # Custom pages & route overrides
27+
├── static/ # Static assets served verbatim (images, icons)
28+
├── docusaurus.config.ts # Global Docusaurus configuration
29+
├── sidebars.ts # Sidebar definitions per documentation section
30+
└── build/ # Generated static site output (do not edit)
2631
```
2732

28-
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
33+
Generated files in `application/build/` are artifacts only—never commit manual edits to that directory.
2934

30-
### Build
35+
`application/docs/` is published publicly. Avoid adding internal runbooks or sensitive implementation notes there—document those at the repository root instead.
3136

32-
```bash
33-
make build
34-
```
37+
## Content Pipeline
3538

36-
This command generates static content into the `build` directory and can be served using any static contents hosting service.
39+
The documentation build pulls repository information through scheduled jobs and manual syncs:
3740

38-
## 📁 Project Structure
41+
- Repository topics and descriptions feed project listings.
42+
- Published readmes and docs are mirrored into portal sections.
43+
- Social preview images are reused as hero assets where available.
44+
- Metadata updates require a rebuild (`make build`) to appear in the published site.
3945

40-
```
41-
├──application/
42-
├── docs/ # Documentation pages
43-
├── src/ # Source files (React components, pages, etc.)
44-
│ ├── components/ # React components
45-
│ ├── css/ # CSS files
46-
│ └── pages/ # Additional pages
47-
├── static/ # Static assets
48-
├── docusaurus.config.ts # Docusaurus configuration
49-
└── sidebars.ts # Sidebar configuration
50-
```
46+
## Development Workflow
5147

52-
## 🛠️ Customization
48+
```bash
49+
make prepare # Install npm dependencies in application/
50+
make start # Launch the Docusaurus dev server with live reload
51+
make lint # Run linters (Markdown, CSS, JS/TS, config files)
52+
make lint-fix # Auto-fix supported lint issues via repository formatter
53+
make build # Produce static site in application/build
54+
make ci # CI helper: prepare + lint-fix + build
55+
```
5356

54-
This portal is designed to dynamically build content from Hoverkraft's public repositories. The CI workflow will scan repositories and build the portal using:
57+
- The dev server runs at `http://localhost:3000` and hot-reloads on content or component changes.
58+
- To lint or format a subset of files, pass a glob to `make lint path/to/file.md`.
59+
- Check in only Markdown, TypeScript, and asset changes—generated output is rebuilt by CI.
5560

56-
- Repository topics and descriptions
57-
- Social preview images
58-
- Readme files and documentation
59-
- Other useful metadata
61+
## Contributing
6062

61-
## 📝 Contributing
63+
1. Fork the repository.
64+
2. Create a feature branch (`git checkout -b feature/<feature-name>`).
65+
3. Run the development workflow commands relevant to your change (`make start`, `make lint`, etc.).
66+
4. Commit using conventional messages when possible (`feat:`, `fix:`, `docs:`).
67+
5. Open a Pull Request and ensure CI passes.
6268

63-
1. Fork the repository
64-
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
65-
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
66-
4. Push to the branch (`git push origin feature/amazing-feature`)
67-
5. Open a Pull Request
69+
Refer to `CONTRIBUTING.md` for detailed development standards and release expectations.
6870

69-
## 📄 License
71+
## License
7072

71-
This project is part of the Hoverkraft open-source ecosystem.
73+
This project is part of the Hoverkraft open-source ecosystem and is distributed under the MIT License.

0 commit comments

Comments
 (0)