-
-
Notifications
You must be signed in to change notification settings - Fork 244
Introduce agents.md #1412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Introduce agents.md #1412
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # AGENTS.md | ||
|
|
||
| ## Project overview | ||
|
|
||
| The Pi-hole documentation, published at [docs.pi-hole.net](https://docs.pi-hole.net). Built with MkDocs and the Material for MkDocs theme. | ||
|
|
||
| ## Repository layout | ||
|
|
||
| - `docs/` - all documentation content (Markdown), organised by topic (`main/`, `ftldns/`, `api/`, `docker/`, `guides/`, etc.) | ||
| - `mkdocs.yml` - site configuration and navigation. New pages must be added to the `nav` section here. | ||
| - `overrides/` - theme overrides | ||
| - `requirements.txt` - Python dependencies (MkDocs and plugins) | ||
| - `package.json` - npm scripts for building and linting | ||
|
|
||
| ## Dev environment tips | ||
|
|
||
| - Set up with `pip install -r requirements.txt` and `npm install`. | ||
| - Live preview while editing: `npm run serve` | ||
| - Match the surrounding style: sentence-case headings, fenced code blocks with language tags, and the admonition syntax already in use. | ||
|
|
||
| ## Testing instructions | ||
|
|
||
| - Run `npm test` before proposing changes; CI enforces it. | ||
| - This builds the site with `mkdocs build --clean --strict` (broken internal links and nav errors fail the build), then runs markdownlint and a link checker. | ||
|
|
||
| ## PR instructions | ||
|
|
||
| - **This repository uses `master` as its default branch**; pull requests target `master` (unlike most Pi-hole repositories, which use `development`). | ||
| - Read the [contributors guide](https://docs.pi-hole.net/guides/github/contributing/) | ||
| - Every commit must be signed off (DCO): use `git commit -s`. | ||
| - Run `npm test` before committing. | ||
| - Use Unix line endings (LF). | ||
| - Documentation should describe released Pi-hole behaviour. Docs for unreleased features normally land alongside or after the feature is released, not before. | ||
| - The correct project spelling is "Pi-hole" (capital P, lowercase h, hyphen). Use it consistently. | ||
|
|
||
| ## Common pitfalls | ||
|
|
||
| - Adding a page without adding it to `nav` in `mkdocs.yml`, which fails the strict build. | ||
| - Editing `docs/ftldns/configfile.md` file. This file should not be changed. It is updated by an automated FTL PR, or every FTL release. | ||
| - Documenting behaviour from the `development` branches of other repos as if it were released. | ||
| - Forgetting the DCO sign-off on commits. | ||
| - Markdown that passes a casual preview but fails markdownlint. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.