Add /llms.txt endpoint to trust center compliance page
Renders compliance data (frameworks, documents, audits, subprocessors, references, and external links) as a plain-text Markdown document. The endpoint supports all required visibility filters and pagination. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
40
pkg/trust/compliance.md.tmpl
Normal file
40
pkg/trust/compliance.md.tmpl
Normal file
@@ -0,0 +1,40 @@
|
||||
# {{ .OrgName }} — Compliance
|
||||
{{ if .Description }}
|
||||
{{ .Description }}
|
||||
{{ end }}{{ if .Details }}
|
||||
{{ range .Details }}- **{{ .Label }}**: {{ .Value }}
|
||||
{{ end }}{{ end }}{{ if .Frameworks }}
|
||||
## Compliance Frameworks
|
||||
|
||||
{{ range .Frameworks }}- {{ .Name }}{{ if .Description }}: {{ .Description }}{{ end }}
|
||||
{{ end }}{{ end }}{{ if .Documents }}
|
||||
## Documents
|
||||
|
||||
| Title | Type |
|
||||
|-------|------|
|
||||
{{ range .Documents }}| {{ .Title }} | {{ .Type }} |
|
||||
{{ end }}{{ end }}{{ if .Audits }}
|
||||
## Audits
|
||||
|
||||
| Name | Framework | Valid From | Valid Until |
|
||||
|------|-----------|------------|-------------|
|
||||
{{ range .Audits }}| {{ .Name }} | {{ .Framework }} | {{ .ValidFrom }} | {{ .ValidUntil }} |
|
||||
{{ end }}{{ end }}{{ if .Vendors }}
|
||||
## Subprocessors
|
||||
|
||||
| Name | Category | Countries | Website |
|
||||
|------|----------|-----------|---------|
|
||||
{{ range .Vendors }}| {{ .Name }} | {{ .Category }} | {{ .Countries }} | {{ .Website }} |
|
||||
{{ end }}{{ end }}{{ if .References }}
|
||||
## References
|
||||
|
||||
| Name | Description | Website |
|
||||
|------|-------------|---------|
|
||||
{{ range .References }}| {{ .Name }} | {{ .Description }} | {{ .Website }} |
|
||||
{{ end }}{{ end }}{{ if .ExternalLinks }}
|
||||
## External Links
|
||||
|
||||
| Name | URL |
|
||||
|------|-----|
|
||||
{{ range .ExternalLinks }}| {{ .Name }} | {{ .URL }} |
|
||||
{{ end }}{{ end }}
|
||||
Reference in New Issue
Block a user