Skip to content

docs(guardrails): replace hook placeholders with mkdocstrings directives#872

Merged
apetraru-uipath merged 1 commit into
mainfrom
docs/guardrails
May 22, 2026
Merged

docs(guardrails): replace hook placeholders with mkdocstrings directives#872
apetraru-uipath merged 1 commit into
mainfrom
docs/guardrails

Conversation

@apetraru-uipath
Copy link
Copy Markdown
Contributor

What changed?

  • Replaced <!-- ENUM --> placeholder comments in docs/guardrails.md with ::: mkdocstrings directives pointing to the source enum classes (PIIDetectionEntityType, HarmfulContentEntityType, IntellectualPropertyEntityType) in uipath-python
  • Deleted docs/hooks/enum_lists.py — the MkDocs build hook used to expand those placeholders is not supported by the docs site

The enum value tables are now rendered from the class docstrings via mkdocstrings, keeping documentation in sync with the code automatically.

How has this been tested?

Rendered locally via mkdocs serve from packages/uipath/ in uipath-python. The three entity type sections display a markdown table of values correctly.

Are there any breaking changes?

  • Under Feature Flag
  • None
  • DB migrations required
  • API removals or changes
  • Other

…ves, remove hook file

The <!-- ENUM --> hook approach is not supported by the docs site.
Replace each placeholder with a ::: mkdocstrings directive pointing to the
source enum class; the class docstring contains the values table so rendering
stays automatic without a build hook.

Delete docs/hooks/enum_lists.py.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@apetraru-uipath apetraru-uipath merged commit 9417e9f into main May 22, 2026
76 of 77 checks passed
@apetraru-uipath apetraru-uipath deleted the docs/guardrails branch May 22, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants