ocp-doc-checker

command module
v1.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 8 Imported by: 0

README

ocp-doc-checker

A tool to check if OpenShift Container Platform (OCP) documentation URLs are outdated and suggest newer versions.

Tests Nightly Tests Release Binaries Publish Container Image

Key Features

  • Check single OCP documentation URLs or scan entire directories
  • Automatically fix outdated URLs in place
  • Anchor validation — verifies URL fragments exist on the target page
  • JSON output for automation
  • GitHub Action for CI/CD integration
  • Container image for zero-install usage

Quick Start

# Build from source
git clone https://github.com/sebrandon1/ocp-doc-checker.git
cd ocp-doc-checker && make build

# Check a URL
./ocp-doc-checker -url "https://docs.redhat.com/en/documentation/openshift_container_platform/4.17/html-single/disconnected_environments/index#mirroring-image-set-full"

# Scan and fix a directory
./ocp-doc-checker -dir ./docs -fix

# Or use the container image
docker run --rm -v $(pwd):/workspace quay.io/bapalm/ocp-doc-checker:latest -dir /workspace

Guides

Guide Description
CLI Usage Flags, container usage, exit codes, JSON output
GitHub Action Action inputs, outputs, and workflow examples
How It Works URL parsing, anchor validation, supported formats
Batch Mode Batch processing with detailed reports
Slack Integration Approval workflows via Slack

Development

make build            # Build binary
make test             # Run all tests
make test-unit        # Run unit tests only
make lint             # Run linters
make fmt              # Format code
make install          # Install to $GOPATH/bin
make build-image      # Build container image

License

MIT License — see LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL