You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update main documentation with new features and improvements
- Update README.md with llms.txt, CI/CD, and raw markdown access info
- Add workflow status badges to README
- Update repository structure diagram
- Update AGENTS.md with current project status and structure
- Add changelog reference and quick access sections
Copy file name to clipboardExpand all lines: AGENTS.md
+43-14Lines changed: 43 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,15 @@
5
5
This repository contains extracted and cleaned API documentation for **both Affinity API v1 and v2**. Both versions will be maintained in this repository.
6
6
7
7
**Affinity API Versions:**
8
+
8
9
-**v1**: Legacy API documented at https://api-docs.affinity.co/
9
10
- Currently being worked on - main file: `docs/v1/affinity_api_docs.md`
10
11
-**v2**: New API with different approach/terminology, documented at https://developer.affinity.co/
11
12
- Planned for future work - folder ready at `docs/v2/`
12
13
- v2 is **not** a superset of v1 - they are separate APIs with different designs
13
14
14
15
The current v1 documentation file is located at `docs/v1/affinity_api_docs.md` and contains:
16
+
15
17
- Complete API endpoint documentation
16
18
- Request/response formats
17
19
- Parameter descriptions
@@ -23,40 +25,64 @@ The current v1 documentation file is located at `docs/v1/affinity_api_docs.md` a
23
25
## Current Status
24
26
25
27
The markdown file has been:
28
+
26
29
- ✅ Extracted from the live documentation site
27
30
- ✅ Fixed encoding issues and typos
28
31
- ✅ Corrected formatting inconsistencies
29
32
- ✅ Standardized markdown syntax
30
33
- ✅ Fixed table formatting
31
34
- ✅ Corrected outline/TOC structure
35
+
- ✅ Automated updates via GitHub Actions
36
+
- ✅ Last updated timestamp (automatically maintained)
32
37
- ⚠️ **Missing**: Code examples (cURL, Ruby, Python, Node.js) for API endpoints
This repository contains markdown versions of the official Affinity API documentation, making it easier to work with AI coding assistants and other tools that prefer static, text-based documentation.
4
8
5
9
## Official Documentation
@@ -19,22 +23,127 @@ The original Affinity API documentation is hosted on dynamic, interactive websit
19
23
-**Better compatibility** with AI coding assistants and language models
20
24
-**Offline access** to API documentation
21
25
-**Version control** to track changes and updates over time
26
+
-**Direct raw access** via GitHub raw URLs for programmatic use
27
+
-**llms.txt format** - Standardized index format for LLM/IDE integration
28
+
29
+
## Quick Access
30
+
31
+
### llms.txt Format (Recommended for IDEs)
32
+
33
+
- 📋 [llms.txt](llms.txt) - Standardized index format for LLMs and IDEs (Cursor, Windsurf, Claude)
-**Version Tracking**: `.github/docs-version-v1.json` and `.github/docs-version-v2.json`
140
+
-**Testing**: See [Testing Guide](docs/development/TESTING.md) for details
141
+
142
+
The workflow supports both **v1** and **v2** API documentation (v2 will be enabled when that documentation is added to the repository).
143
+
35
144
## Disclaimer
36
145
37
-
**Use at your own risk.** While every effort is made to ensure accuracy and keep this documentation synchronized with the official Affinity documentation, this is an unofficial copy and may contain errors, omissions, or outdated information.
146
+
**Use at your own risk.** While every effort is made to ensure accuracy and keep this documentation synchronized with the official Affinity documentation, this is an unofficial copy and may contain errors, omissions, or outdated information.
38
147
39
148
For production use or critical implementations, always verify against the [official Affinity API documentation](https://developer.affinity.co/).
40
149
@@ -43,11 +152,42 @@ For production use or critical implementations, always verify against the [offic
43
152
```
44
153
affinity-api-docs/
45
154
├── README.md # This file
155
+
├── CHANGELOG.md # Repository changelog
46
156
├── AGENTS.md # Developer/AI agent guidelines
157
+
├── llms.txt # llms.txt format index for LLMs/IDEs
158
+
├── requirements-ci.txt # Python dependencies for CI/CD
See the individual documentation files for detailed authentication instructions.
60
200
201
+
## Development
202
+
203
+
### Pre-commit Hooks
204
+
205
+
This repository uses [pre-commit](https://pre-commit.com/) hooks to ensure code quality and consistency.
206
+
207
+
**Setup**:
208
+
209
+
```bash
210
+
# Install pre-commit
211
+
pip install pre-commit
212
+
213
+
# Install hooks
214
+
pre-commit install
215
+
216
+
# Run on all files (optional)
217
+
pre-commit run --all-files
218
+
```
219
+
220
+
**What's checked**:
221
+
222
+
- Python code formatting (black, isort, ruff)
223
+
- Markdown linting (markdownlint)
224
+
- YAML/JSON validation
225
+
- Documentation structure validation
226
+
- Trailing whitespace and end-of-file fixes
227
+
228
+
Hooks run automatically on `git commit`. They also run in CI/CD on every PR.
229
+
230
+
For more details, see [Pre-commit Hooks Guide](docs/development/PRE_COMMIT.md).
231
+
232
+
### Testing
233
+
234
+
See [Testing Guide](docs/development/TESTING.md) for details on running tests.
235
+
236
+
### Dependency Management
237
+
238
+
This repository uses [Dependabot](https://docs.github.com/en/code-security/dependabot) to automatically keep dependencies up to date:
239
+
240
+
-**Python packages**: Checked weekly (Mondays)
241
+
-**GitHub Actions**: Checked monthly
242
+
243
+
Dependabot will automatically create pull requests for dependency updates. Review and merge these PRs to keep dependencies current.
244
+
61
245
## Contributing
62
246
63
247
If you notice discrepancies between this documentation and the official Affinity documentation, please:
@@ -66,17 +250,29 @@ If you notice discrepancies between this documentation and the official Affinity
66
250
2. Open an issue describing the discrepancy
67
251
3. If possible, submit a pull request with corrections
68
252
253
+
**Note**: All PRs are automatically checked by pre-commit hooks. Please ensure your code passes these checks before submitting.
254
+
255
+
For detailed contribution guidelines, see [CONTRIBUTING.md](CONTRIBUTING.md).
256
+
257
+
## Changelog
258
+
259
+
See [CHANGELOG.md](CHANGELOG.md) for a detailed list of repository infrastructure changes and improvements.
260
+
261
+
**Note**: The changelog tracks repository changes (CI/CD, features, improvements). Individual documentation updates from the official Affinity API are tracked in Pull Requests.
262
+
69
263
## License
70
264
71
-
This is an unofficial documentation copy. The original Affinity API documentation and all associated intellectual property rights belong to Affinity. This repository is maintained for convenience and educational purposes only.
265
+
This repository is licensed under the MIT License - see [LICENSE](LICENSE) for details.
266
+
267
+
**Note**: This is an unofficial documentation copy. The original Affinity API documentation and all associated intellectual property rights belong to Affinity. This repository is maintained for convenience and educational purposes only.
72
268
73
269
## Contact
74
270
75
271
For API support or questions about the Affinity API itself, contact Affinity directly:
All content is derived from the official Affinity API documentation. This repository simply provides an alternative format for easier consumption by development tools and AI assistants.
0 commit comments