Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sphinx extension that automatically documents Open Policy Agent Rego policies

License

NotificationsYou must be signed in to change notification settings

zenitysec/sphinx-rego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A sphinx extension that automatically documents Open Policy Agent Rego policies using therego_metadoc property.

Maintained byZenity.

Example

Seeexample/ dir for a documented usage example.

Sphinx Docs

Prerequisites

Installation:

Install with PIP

pip3 install sphinx-rego

Add to Sphinxconf.py

extensions+= ["sphinxrego.ext"]

Usage Example:

.. rego::   :policy: policies/**/*.rego   :norecursive:   :nocustom:

Arguments:

policy: glob pathname to search for .rego policies withrego_metadoc property

norecursive: whether to use glob recursive option

norecursive: whether to include custom properties


[8]ページ先頭

©2009-2025 Movatter.jp