Module

health.validators.taxonomy

Taxonomy validator - checks tag pages and taxonomy integrity.

Validates:

  • All tags have corresponding tag pages
  • No orphaned tag pages
  • Archive pages generated for sections
  • Pagination works correctly

Classes

TaxonomyValidator
Validates taxonomy system integrity. Checks: - Tag pages generated for all tags - No orphaned tag …
5

Validates taxonomy system integrity.

Checks:

  • Tag pages generated for all tags
  • No orphaned tag pages (tag doesn't exist)
  • Archive pages exist for sections with content
  • Pagination pages are consistent
Inherits from BaseValidator

Methods 1

validate
Run taxonomy validation checks.
2 list[CheckResult]
def validate(self, site: Site, build_context: BuildContext | Any | None = None) -> list[CheckResult]

Run taxonomy validation checks.

Parameters 2
site Site
build_context BuildContext | Any | None
Returns

list[CheckResult]

Internal Methods 4
_check_tag_pages
Check that all tags have corresponding tag pages.
1 list[CheckResult]
def _check_tag_pages(self, site: Site) -> list[CheckResult]

Check that all tags have corresponding tag pages.

Parameters 1
site Site
Returns

list[CheckResult]

_check_archive_pages
Check that sections with content have archive pages.
1 list[CheckResult]
def _check_archive_pages(self, site: Site) -> list[CheckResult]

Check that sections with content have archive pages.

Parameters 1
site Site
Returns

list[CheckResult]

_check_taxonomy_consistency
Check taxonomy data consistency.
1 list[CheckResult]
def _check_taxonomy_consistency(self, site: Site) -> list[CheckResult]

Check taxonomy data consistency.

Parameters 1
site Site
Returns

list[CheckResult]

_check_pagination
Check pagination integrity.
1 list[CheckResult]
def _check_pagination(self, site: Site) -> list[CheckResult]

Check pagination integrity.

Parameters 1
site Site
Returns

list[CheckResult]