Skip to content

PythonWoods/zenzic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

158 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Zenzic

ci-status zenzic-audit zenzic-score REUSE 3.x compliant PyPI Version Python Versions License

Deterministic audit of documentation structures with bidirectional traceability.
Tiered code governance, frozen security contracts, and RE2-backed deterministic scanning.


โšก Try it now โ€” Zero Installation

Got a folder of Markdown files? Run an instant security and link audit using uv:

uvx zenzic check all ./your-folder

Zenzic identifies your engine via its configuration files or defaults to Standalone Mode for plain Markdown folders โ€” providing immediate protection for links, credentials, and file integrity.


๐Ÿš€ Quick Start

pip install zenzic
cd my-docs-repo
zenzic init       # Establish the workspace boundary (creates .zenzic.toml)
zenzic check all  # Audit the current directory

๐Ÿง  Core Pillars

  • Pure, deterministic engine: identical inputs produce identical findings and exits.
  • Tiered code model: Core, Structure, and Governance findings grouped by tier.
  • Frozen contracts for integrators: FROZEN_CODES, NON_SUPPRESSIBLE_CODES, and PLUGIN_FORBIDDEN_EXITS provide stable enforcement surfaces for CI and plugins.
  • Inspect-first workflow: use zenzic inspect codes to validate live code semantics before touching docs or release notes.

๐Ÿ“– Full docs โ†’ ยท ๐Ÿ… Badges ยท ๐Ÿ”„ CI/CD guide


โš™๏ธ Commands Overview

Command Purpose
zenzic init Scaffold workspace configuration (.zenzic.toml)
zenzic check all [PATH] Full documentation audit โ€” links, credentials, orphans
zenzic score [--fail-under N] [--stamp] Compute the Documentation Quality Score (0โ€“100)
zenzic diff [--base PATH] Detect debt regression against a saved baseline
zenzic guard scan [PATH] Defense-in-Depth credential pre-gate (fatal on security findings: exit 2)
zenzic inspect codes Query live error-code semantics and suppressibility

๐Ÿš€ CI/CD Ready: Use the Official Zenzic Action to run Zenzic in GitHub Actions โ€” findings surface directly in Code Scanning, PR annotations, and the Security tab.

- uses: PythonWoods/zenzic-action@v1
  with:
    format: sarif
    upload-sarif: "true"

GitHub Code Scanning showing Zenzic findings


๐Ÿ”Œ Multi-Engine Support

Engine Adapter Highlights
Docusaurus DocusaurusAdapter Versioned docs, @site/ alias, Ghost Route detection
MkDocs MkDocsAdapter i18n suffix + folder modes, fallback_to_default
Zensical ZensicalAdapter Transparent Proxy bridges mkdocs.yml
Any folder StandaloneAdapter File integrity checks โ€” orphan detection disabled without a nav contract

See the Adapter API for the plugin interface. Third-party adapters install via the zenzic.adapters entry-point group.


โš™๏ธ Configuration

Zero-config by default. See the Configuration Guide for the full .zenzic.toml schema and pyproject.toml embedding.

zenzic init        # Generate .zenzic.toml with auto-detected values

๐Ÿ”„ CI/CD Integration

- uses: PythonWoods/zenzic-action@v1
  with:
    format: sarif
    upload-sarif: "true"

For zero-install uvx integration and regression gates, see the CI/CD guide.


๐Ÿ“ฆ Installation

# Zero-install, one-shot audit (recommended for CI and exploration)
uvx zenzic check all ./docs

# Global CLI tool
uv tool install zenzic

# Pinned dev dependency
uv add --dev zenzic

# pip
pip install zenzic

๐Ÿ“– Documentation

Area URL Audience
๐Ÿ‘ค User Guide zenzic.dev/docs Install, configure, CI/CD, finding codes
๐Ÿ”ง Developer Portal zenzic.dev/developers Adapters, ADRs, CLI architecture, mutation testing
๐Ÿ›ก๏ธ Security Engineering Ledger ยท SECURITY.md Security reviewer

๐Ÿค Contributing

  1. Open an issue to discuss the change.
  2. Read the Contributing Guide.
  3. Every PR must pass just verify and include SPDX headers on new files.

See also: Code of Conduct ยท Security Policy

๐Ÿ“Ž Citing

A CITATION.cff is present at the root. Click "Cite this repository" on GitHub for APA or BibTeX output.

๐Ÿ“„ License

Apache-2.0 โ€” see LICENSE.


PythonWoods

Engineered with precision by PythonWoods in Italy ๐Ÿ‡ฎ๐Ÿ‡น
"Building the Standard for Technical Document Integrity."

Documentation ยท GitHub ยท Blog

About

๐Ÿ›ก๏ธ Static analyzer for documentation governance. Audits broken links, credentials, brand compliance & i18n parity. Engine-agnostic โ€” works with MkDocs, Docusaurus, Zensical, and any Docs-as-Code setup.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors