Skip to content

docs: documentation overhaul — restructure, branding, ADRs, cache fix - #110

Merged
CybotTM merged 10 commits into
mainfrom
docs/documentation-overhaul
Mar 14, 2026
Merged

docs: documentation overhaul — restructure, branding, ADRs, cache fix#110
CybotTM merged 10 commits into
mainfrom
docs/documentation-overhaul

Conversation

@CybotTM

@CybotTM CybotTM commented Mar 12, 2026

Copy link
Copy Markdown
Member

Summary

Complete documentation overhaul for nr-llm covering structure, branding, architecture decisions, and a cache backend fix.

  • Page splitting: Split 5 monolithic pages (450-758 lines each) into 27 focused sub-pages (max 250 lines). Total: 27 → 60 rendered pages
  • ADRs 014-020: Wizard system, type-safe domain models, thinking block extraction, SafeCastTrait, model discovery, i18n, output rendering
  • Netresearch branding: Teal SVG underline, emoji card icons, [n] footer card, official brand assets
  • guides.xml: All theme attributes (project-issues, project-discussions, edit-on-github-directory), contact via GitHub Discussions (no email)
  • Screenshots: Task list with 13 seeded tasks, task execution form, provider test modal, configuration test modal — all at 1440px viewport
  • Security docs: Updated from outdated sodium_crypto_secretbox to nr-vault envelope encryption
  • ADR index: Card-grid layout grouped by category (foundation, TYPO3 integration, API design, modern architecture)
  • Cache fix: Removed hardcoded SimpleFileBackend, fixed group systemnrllm. TYPO3 now uses instance default (Redis/Valkey/Memcached work transparently)
  • License: Documentation license changed to CC BY 4.0
  • AGENTS.md: All scoped files updated for current project state

Test plan

…art page

- Add new Administration/Index.rst with step-by-step guides for
  managing providers, models, configurations, tasks, and AI wizards
  including screenshots of every backend screen
- Redesign start page (Index.rst) with audience-grouped card sections
  (Getting started / For administrators / For developers) and emoji icons
- Trim Configuration/Index.rst to pure field reference (was 716 lines,
  now ~400) — admin walkthrough content moved to Administration
- Refresh all 8 backend screenshots with current TYPO3 v14 UI
- Update API reference with missing methods (analyzeImageFull,
  pairwiseSimilarities, VisionResponse class, thinking support)
- Fix test counts in Testing guide (unit 384→2735, functional 39→285)
- Add OpenRouter embeddings capability to README and Introduction
- Fix broken configuration-wizards cross-reference

Signed-off-by: Sebastian Mendel <sebastian.mendel@netresearch.de>
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Copilot AI review requested due to automatic review settings March 12, 2026 13:40
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Mar 12, 2026
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the documentation by restructuring it to better serve different user audiences, particularly administrators. It introduces a dedicated administration guide with detailed, step-by-step instructions and visual aids, while streamlining existing reference material. The changes aim to make the documentation more accessible and user-friendly for both new and experienced users managing AI features within the TYPO3 environment.

Highlights

  • New Administration Guide: A comprehensive guide (Documentation/Administration/Index.rst) was added, providing step-by-step instructions for managing AI providers, models, configurations, tasks, and all AI wizards, complete with backend screenshots.
  • Redesigned Start Page: The main documentation start page was redesigned with audience-grouped card sections (Getting started / For administrators / For developers) and emoji icons for visual distinction.
  • Trimmed Configuration Page: The Configuration page was reduced to a pure field reference (from 716 to ~400 lines), with administrative walkthroughs moved to the new Administration guide.
  • Updated Backend Screenshots: All 8 backend screenshots across the documentation were refreshed to reflect the current TYPO3 v14 UI.
  • API Reference Enhancements: The API reference was updated to include missing methods (analyzeImageFull, pairwiseSimilarities), the new VisionResponse class, and support for 'thinking' content in responses.
  • Fixed Test Counts: Test counts in the Testing guide were corrected for unit (384→2735), functional (39→285), E2E (11→127), and fuzzy tests (25→79).
  • OpenRouter Embeddings Support: The documentation (README and Introduction) was updated to reflect the added OpenRouter embeddings capability.
  • Cross-Reference Fix: A broken cross-reference (configuration-wizardsadministration-wizards) was fixed.
Changelog
  • Documentation/Administration/Index.rst
    • Added a new comprehensive administration guide covering LLM provider, model, configuration, and task management.
    • Included detailed sections on AI-powered wizards (Setup, Configuration, Task, Model Discovery).
    • Integrated numerous backend screenshots to illustrate administrative processes.
  • Documentation/Api/Index.rst
    • Added pairwiseSimilarities method to EmbeddingService for calculating vector similarities.
    • Updated VisionService methods (generateAltText, generateTitle, generateDescription, analyzeImage) to support batch processing and VisionOptions.
    • Introduced analyzeImageFull method in VisionService to return a detailed VisionResponse object.
    • Added metadata and thinking attributes, and hasThinking method to CompletionResponse.
    • Defined the new VisionResponse class for structured vision analysis results.
  • Documentation/Configuration/Index.rst
    • Restructured the page to focus solely on configuration field references.
    • Removed administrative walkthroughs and backend module descriptions, relocating them to the new Administration guide.
    • Simplified descriptions for provider, model, and configuration fields for conciseness.
    • Updated TypoScript settings, removing specific per-provider configuration examples.
  • Documentation/Index.rst
    • Redesigned the main documentation start page with new audience-grouped card sections.
    • Added emoji icons to card titles for improved visual distinction.
    • Included a new card linking directly to the Administration guide.
    • Updated the toctree directive to reflect the new documentation structure and added Administration/Index.
  • Documentation/Introduction/Index.rst
    • Updated OpenRouter capabilities to explicitly list embeddings support.
    • Corrected an internal cross-reference from configuration-wizards to administration-wizards.
  • Documentation/Testing/Index.rst
    • Updated the reported counts for Unit tests (from 384 to 2735), E2E tests (from 11 to 127), and Functional tests (from 39 to 285).
    • Renamed 'Property tests' to 'Fuzzy tests' and updated its count (from 25 to 79).
  • README.md
    • Updated the table of supported providers to include Embeddings for OpenRouter.
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions

github-actions Bot commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

github-actions[bot]
github-actions Bot previously approved these changes Mar 12, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval for solo maintainer project

This PR has passed all automated quality gates:

  • ✅ Static analysis (PHPStan)
  • ✅ Code style (PHP-CS-Fixer)
  • ✅ Unit & functional tests
  • ✅ Security scanning
  • ✅ Dependency review

See SECURITY_CONTROLS.md for compensating controls documentation.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request significantly restructures and improves the documentation by adding a dedicated administration guide, redesigning the start page for different audiences, and refactoring existing content. The changes make the documentation more user-friendly and easier to navigate. My review focuses on enhancing consistency and clarity in the new content. I've provided suggestions to standardize API signatures in the documentation, unify example model names, and ensure code snippets are complete and well-formatted.

Comment thread Documentation/Administration/Index.rst Outdated
Comment thread Documentation/Api/Index.rst Outdated
Comment thread Documentation/Configuration/Index.rst Outdated
Comment thread Documentation/Configuration/Index.rst Outdated
Comment thread Documentation/Configuration/Index.rst Outdated
Comment thread Documentation/Configuration/Index.rst Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refreshes and restructures the extension documentation to better separate administrator guidance from configuration/API reference, while updating provider capability listings and API docs for recently added/expanded features.

Changes:

  • Added a new Administration guide and reorganized the main docs landing page into admin/developer-focused entry points.
  • Updated provider capability documentation (notably OpenRouter) and expanded API reference coverage (EmbeddingService pairwise similarities, VisionService batch/options usage, CompletionResponse thinking/metadata, VisionResponse).
  • Updated testing documentation structure/labels and refreshed screenshots (new providers list image).

Reviewed changes

Copilot reviewed 7 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Updates the supported provider capabilities table (OpenRouter now includes embeddings).
Documentation/Testing/Index.rst Updates test-suite counts and renames “Property tests” section to “Fuzzy tests”.
Documentation/Introduction/Index.rst Updates provider capability wording and fixes wizard cross-reference target.
Documentation/Index.rst Restructures the documentation landing page and adds an intro screenshot section.
Documentation/Images/backend-providers.png Adds/updates the providers list screenshot referenced by docs.
Documentation/Configuration/Index.rst Refactors into a “Configuration reference” and moves step-by-step guidance out to Administration docs; updates formatting and snippets.
Documentation/Api/Index.rst Adds/extends API reference entries (EmbeddingService/VisionService/CompletionResponse/VisionResponse).
Documentation/Administration/Index.rst New admin-focused guide covering backend module workflows and AI wizards.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread Documentation/Api/Index.rst Outdated
CybotTM added 5 commits March 14, 2026 12:55
Split 5 monolithic pages into 27 focused sub-pages:
- Api (758→10 files): per-service + response objects + options + exceptions
- Testing (559→5 files): unit, functional, E2E, CI config
- Administration (463→6 files): providers, models, configs, tasks, wizards
- Configuration (456→6 files): field references per entity + settings
- Developer (462→4 files): streaming, tool calling, custom providers

Total rendered pages: 27 → 60. No content deleted, only reorganized.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
- ADR-014: AI-powered wizard system (setup, config, task wizards)
- ADR-015: Type-safe domain models via PHP 8.1+ enums & value objects
- ADR-016: Thinking/reasoning block extraction from LLM responses
- ADR-017: SafeCastTrait for PHPStan level 10 compliance
- ADR-018: Multi-provider model discovery with fallback catalogs
- ADR-019: Internationalization strategy with locale-aware features
- ADR-020: Backend output format rendering (plain/markdown/HTML)

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
- Teal SVG underline below main heading
- [n] Netresearch footer card with brand identity
- Emoji icons on all navigation cards
- Documentation license: CC BY 4.0
- guides.xml: add project-issues, project-discussions,
  edit-on-github-directory; contact via GitHub Discussions

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Remove SimpleFileBackend from cache configuration so TYPO3 uses the
instance's default cache backend. Redis/Valkey/Memcached now work
transparently if configured by the admin.

Also fix cache group: 'system' -> 'nrllm' to match documentation
(cache:flush --group=nrllm).

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Reflect 20 ADRs, 60 rendered doc pages, cache backend change,
branding assets, and complete guides.xml configuration.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@github-actions github-actions Bot added tests Test-related changes ci CI/CD changes configuration Configuration changes labels Mar 14, 2026
github-actions[bot]
github-actions Bot previously approved these changes Mar 14, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval for solo maintainer project

This PR has passed all automated quality gates:

  • ✅ Static analysis (PHPStan)
  • ✅ Code style (PHP-CS-Fixer)
  • ✅ Unit & functional tests
  • ✅ Security scanning
  • ✅ Dependency review

See SECURITY_CONTROLS.md for compensating controls documentation.

- Add screenshots: task execution form, provider test modal,
  configuration test modal, task list with 13 seeded tasks
- Fix security docs: sodium_crypto_secretbox -> nr-vault envelope
  encryption (nr-llm delegates all encryption to nr-vault)
- ADR index: card-grid layout grouped by category (foundation,
  TYPO3 integration, API design, modern architecture)

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Copilot AI review requested due to automatic review settings March 14, 2026 12:23

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval for solo maintainer project

This PR has passed all automated quality gates:

  • ✅ Static analysis (PHPStan)
  • ✅ Code style (PHP-CS-Fixer)
  • ✅ Unit & functional tests
  • ✅ Security scanning
  • ✅ Dependency review

See SECURITY_CONTROLS.md for compensating controls documentation.

github-actions[bot]
github-actions Bot previously approved these changes Mar 14, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval for solo maintainer project

This PR has passed all automated quality gates:

  • ✅ Static analysis (PHPStan)
  • ✅ Code style (PHP-CS-Fixer)
  • ✅ Unit & functional tests
  • ✅ Security scanning
  • ✅ Dependency review

See SECURITY_CONTROLS.md for compensating controls documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 54 out of 67 changed files in this pull request and generated 15 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread Documentation/Installation/Index.rst Outdated
Comment thread Documentation/Configuration/Settings.rst Outdated
Comment thread Documentation/Testing/UnitTesting.rst Outdated
Comment thread Documentation/Testing/UnitTesting.rst Outdated
Comment thread Documentation/Testing/EndToEndTesting.rst Outdated
Comment thread Classes/AGENTS.md
Comment thread Documentation/Api/ProviderInterface.rst
Comment thread Documentation/Api/LlmServiceManager.rst
Comment thread Documentation/Configuration/ProviderFields.rst Outdated
Comment thread Documentation/Api/TranslationService.rst Outdated
Previous screenshots were taken at ~780px viewport, cutting off
sidebar, table columns, and modal backgrounds. Retaken at 1440x900
for full TYPO3 backend context.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
github-actions[bot]
github-actions Bot previously approved these changes Mar 14, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval for solo maintainer project

This PR has passed all automated quality gates:

  • ✅ Static analysis (PHPStan)
  • ✅ Code style (PHP-CS-Fixer)
  • ✅ Unit & functional tests
  • ✅ Security scanning
  • ✅ Dependency review

See SECURITY_CONTROLS.md for compensating controls documentation.

@CybotTM CybotTM changed the title docs: restructure documentation with admin guide and audience-grouped start page docs: documentation overhaul — restructure, branding, ADRs, cache fix Mar 14, 2026
- Fix invalid PHP in cache backend examples (split class names)
- Restore TypoScript providers block in config reference
- Add chatCompletion() context to sanitization/output examples
- Fix logging code block to PSR-12 style
- Update API signatures: VisionService, LlmServiceManager,
  TranslationService, ProviderInterface to match actual code
- Fix ProviderFields: nr-vault instead of sodium, conditional required
- Fix UnitTesting: remove --dev flag, use placeholder API key
- Rewrite EndToEndTesting: actual E2E workflow test content
- Fix AGENTS.md files: nr-vault refs, tag mismatch, directory tree

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Copilot AI review requested due to automatic review settings March 14, 2026 15:07
github-actions[bot]
github-actions Bot previously approved these changes Mar 14, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval for solo maintainer project

This PR has passed all automated quality gates:

  • ✅ Static analysis (PHPStan)
  • ✅ Code style (PHP-CS-Fixer)
  • ✅ Unit & functional tests
  • ✅ Security scanning
  • ✅ Dependency review

See SECURITY_CONTROLS.md for compensating controls documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 54 out of 67 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread Documentation/Testing/UnitTesting.rst
Comment thread Documentation/Testing/EndToEndTesting.rst Outdated
Comment thread Documentation/Configuration/ConfigFields.rst
Comment thread Documentation/Api/CompletionService.rst Outdated
Comment thread Documentation/Api/EmbeddingService.rst Outdated
@CybotTM
CybotTM requested a review from Copilot March 14, 2026 15:19
- CompletionService: array $options -> ?ChatOptions $options = null
- EmbeddingService: add ?EmbeddingOptions $options = null params
- EndToEndTesting: fix runTests command, fix RST underline length

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval for solo maintainer project

This PR has passed all automated quality gates:

  • ✅ Static analysis (PHPStan)
  • ✅ Code style (PHP-CS-Fixer)
  • ✅ Unit & functional tests
  • ✅ Security scanning
  • ✅ Dependency review

See SECURITY_CONTROLS.md for compensating controls documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@CybotTM
CybotTM added this pull request to the merge queue Mar 14, 2026
Merged via the queue into main with commit 26c8c50 Mar 14, 2026
40 checks passed
@CybotTM
CybotTM deleted the docs/documentation-overhaul branch March 14, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD changes configuration Configuration changes documentation Improvements or additions to documentation tests Test-related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants