Skip to content

website/docs: Agent Friendly Docs - #23361

Merged
GirlBossRush merged 36 commits into
mainfrom
agent-friendly-docs
Jun 24, 2026
Merged

GirlBossRush merged 36 commits into
mainfrom
agent-friendly-docs

Conversation

@GirlBossRush

Copy link
Copy Markdown
Contributor

Details

This PR adds llms.txt support to our docs builds, allowing for coding agents to traverse through the docs without resorting to HTML text parsing.

@GirlBossRush GirlBossRush self-assigned this Jun 24, 2026
@GirlBossRush
GirlBossRush requested a review from a team as a code owner June 24, 2026 14:47
@GirlBossRush GirlBossRush added the area:docs Features or issues related to Docusaurus label Jun 24, 2026
@GirlBossRush GirlBossRush moved this from Todo to Needs review in authentik Core Jun 24, 2026
@netlify

netlify Bot commented Jun 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 6e322be
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a3c19e4d8a71f0008933310
😎 Deploy Preview https://deploy-preview-23361--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit da5455a
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a3c3febfed26c0008640f80
😎 Deploy Preview https://deploy-preview-23361--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit da5455a
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a3c3feb4d918800085dea7f
😎 Deploy Preview https://deploy-preview-23361--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Jun 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.28%. Comparing base (932b001) to head (da5455a).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #23361   +/-   ##
=======================================
  Coverage   93.27%   93.28%           
=======================================
  Files        1037     1037           
  Lines       60537    60537           
  Branches      400      400           
=======================================
+ Hits        56468    56473    +5     
+ Misses       4069     4064    -5     
Flag Coverage Δ
conformance 36.34% <ø> (+<0.01%) ⬆️
e2e 41.57% <ø> (-0.01%) ⬇️
integration 32.80% <ø> (+<0.01%) ⬆️
rust 0.00% <ø> (ø)
unit 92.26% <ø> (ø)
unit-migrate 92.30% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

GirlBossRush and others added 18 commits June 24, 2026 19:53
The sections re-assignment in normalizeOptions is load-bearing for the
Required<Pick<...>> return type, not a no-op. Documented its purpose.

Co-Authored-By: Playpen Agent <[email protected]>
page-two.mdx imports ./_partial.mdx, which must resolve to a sibling in
topic-b/ for Task 5's partial-inlining test to pass.

Co-Authored-By: Playpen Agent <[email protected]>
Move parseFileContentFrontMatter and inlinePartials inside the try block
so malformed YAML frontmatter is caught and handled by the regex fallback
instead of propagating an unhandled exception. Strip leading frontmatter
in the regex fallback path and add a regression test for the contract.

Co-Authored-By: Playpen Agent <[email protected]>
GirlBossRush and others added 13 commits June 24, 2026 19:53
Replace the tool-per-endpoint MCP design with a code-mode server: search over
the live OpenAPI schema + a sandboxed execute/execute_write writing against an
authenticated ak.request() helper. Document local v1 (binding-is-the-boundary)
and the authentik-native OAuth v2 (RBAC-as-authorization, event-log audit).
Reconcile Layer 2 with the shipped ak-admin/ak-dev plugins and the L2->L1/L2->L3
seams.

Co-Authored-By: Playpen Agent <[email protected]>
…epage

Root cause of the build failures: the docs content root is path:'.', which
includes build/. The plugin writes per-page .md into build/, so a second build
(dirty build/) re-ingested them as source -> 'Cannot find module @site/build/*.md'
(hundreds of fatal errors). Exclude build/ and out/ from the content scan.

Also: collapse the per-page 'no route'/'MDX fallback' warnings (dozens of lines
that read as errors) into one summary line; and resolve the root index page to
'/' (was dropped) with applyMdExtension emitting /index.md for the homepage.

Co-Authored-By: Playpen Agent <[email protected]>
@GirlBossRush
GirlBossRush force-pushed the agent-friendly-docs branch 2 times, most recently from 6e322be to 8145451 Compare June 24, 2026 18:00
GirlBossRush and others added 2 commits June 24, 2026 20:35
… feedback)

- overviewPages option: inline index + applications content as an '## Overview'
  section in the root llms.txt instead of listing them as links.
- Drop the scaffold template/ from integrations (ignoreFiles).
- Clean descriptions: strip blockquote '>' markers and trailing '-- <source>'
  attribution that many integration pages use for their intro citation.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@GirlBossRush
GirlBossRush requested a review from a team as a code owner June 24, 2026 18:56
@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-da5455a1391706ddd970965f2f9c63e6610454d0
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-da5455a1391706ddd970965f2f9c63e6610454d0

Afterwards, run the upgrade commands from the latest release notes.

@dominic-r dominic-r left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM once feedback is applied

@github-project-automation github-project-automation Bot moved this from Needs review to In Progress in authentik Core Jun 24, 2026
Address documentation feedback on the generated llms.txt:

- Normalize section headings: top-level docs topics get display labels
  (docs/topics.mjs), and groupLabel title-cases any unmapped slug
  (e.g. "sys-mgmt" -> "System Management").
- Split the glossary out of "Core Concepts" into its own "Glossary"
  section via a new `regroup` option.
- Skip CVE "Reported by" attributions when extracting descriptions so
  the summary prose is used instead of the reporter's name.
- Clean extracted descriptions: drop bullet-list lead blocks, strip
  inline links/emphasis/code to plain text, and keep the first sentence.
- Resolve generated link URLs from the Netlify deploy context
  (DEPLOY_PRIME_URL) in previews instead of hardcoding the production
  subdomain.

Tests and fixtures cover the new extraction, grouping, labeling, and
deploy-preview URL behavior.
@GirlBossRush
GirlBossRush enabled auto-merge (squash) June 24, 2026 20:49
@GirlBossRush
GirlBossRush merged commit 1bd17ab into main Jun 24, 2026
109 checks passed
@GirlBossRush
GirlBossRush deleted the agent-friendly-docs branch June 24, 2026 21:04
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Jun 24, 2026
BeryJu added a commit that referenced this pull request Jun 25, 2026
BeryJu added a commit that referenced this pull request Jun 25, 2026
* Revert "website/docs: Agent Friendly Docs (#23361)"

This reverts commit 1bd17ab.

* bruh

Signed-off-by: Jens Langhammer <[email protected]>

* Reapply "website/docs: Agent Friendly Docs (#23361)"

This reverts commit da68a91.

* idk

Signed-off-by: Jens Langhammer <[email protected]>

* ?

Signed-off-by: Jens Langhammer <[email protected]>

* idk

Signed-off-by: Jens Langhammer <[email protected]>

* also fix icon

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Features or issues related to Docusaurus

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants