Contributing¶
Thank you for your interest in contributing to TailoredApps Shared Components! This document describes the contribution process and mandatory documentation requirements.
General Rules¶
- Fork β Feature Branch β PR β do not commit directly to
master - Branch naming:
feature/<short-name>orfix/<short-name> - One PR = one substantive change
- All tests must pass before opening a PR
- Code must have XML docs (summary) for public types and methods
Local Setup¶
git clone https://github.com/tailored-apps/SharedComponents.git
cd SharedComponents
# .NET
export DOTNET_ROOT=/opt/homebrew/opt/dotnet/libexec
export PATH="$PATH:/opt/homebrew/opt/dotnet/bin"
dotnet restore
# Documentation
pip install mkdocs-material
mkdocs serve # http://127.0.0.1:8000
π΄ IRON RULE OF DOCUMENTATION¶
Every new library in this repo MUST have a documentation page in
docs/Libraries/.PR without documentation = PR rejected.
Requirements for each documentation page¶
Each docs/Libraries/<LibraryName>/index.md page must contain:
- Header + badges β library name, NuGet and license badges
- Description β in Polish π΅π± and in English π¬π§
- Installation β
dotnet add package ... - DI Registration β example with
Program.cs - Usage example β real, complete C# code (not a toy example)
- API Reference β table/list of main interfaces and classes
- π€ AI Agent Prompt β ready-made prompt to paste into an AI agent context
Navigation update¶
After adding a library page, update the nav: section in mkdocs.yml and the library table on docs/index.md.
Library page template¶
# TailoredApps.Shared.XXXXX
[](https://www.nuget.org/packages/TailoredApps.Shared.XXXXX/)
[](https://github.com/tailored-apps/SharedComponents/blob/master/LICENSE)
## π΅π± Opis
[Full description in Polish...]
## π¬π§ Description
[Full description in English...]
## Instalacja
\`\`\`bash
dotnet add package TailoredApps.Shared.XXXXX
\`\`\`
## Rejestracja w DI
\`\`\`csharp
// Program.cs
builder.Services.AddXxx();
\`\`\`
## PrzykΕad uΕΌycia
\`\`\`csharp
// ...
\`\`\`
## API Reference
| Type | Description |
|------|-------------|
| \`IXxx\` | ... |
## π€ AI Agent Prompt
\`\`\`markdown
## TailoredApps.Shared.XXXXX β AI Agent Instructions
You are using the TailoredApps.Shared.XXXXX library in a .NET project.
### Registration
...
### Usage
...
### Rules
- ...
\`\`\`
Pre-PR Checklist¶
- Code compiles without errors (
dotnet build) - Tests pass (
dotnet test) - XML docs added to public types
- Documentation page in
docs/Libraries/ -
mkdocs.ymlnav updated - Table on
docs/index.mdupdated -
mkdocs build --strictpasses without errors
Questions¶
Open an Issue on GitHub or contact the project maintainers.