A tool to check if OpenShift Container Platform (OCP) documentation URLs are outdated and suggest newer versions.
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
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