Skip to content

winderai/internal-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

internal-link

A CLI tool that analyzes markdown files and suggests internal linking opportunities using BM25 algorithm.

Features

  • Recursive markdown file scanning
  • Smart internal link suggestions using BM25 algorithm
  • Lexical and semantic analysis for high-quality linking
  • Fast performance with caching
  • Dry-run mode with scoring insights
  • Configurable scoring threshold

Installation

go install github.com/yourusername/internal-link/cmd/internal-link@latest

Usage

# Analyze all markdown files in a directory
internal-link analyze /path/to/markdown/folder

# Analyze a single file against all others
internal-link analyze --file single.md /path/to/markdown/folder

# Dry run mode
internal-link analyze --dry-run /path/to/markdown/folder

# Set custom threshold
internal-link analyze --threshold 0.5 /path/to/markdown/folder

Development

Requirements:

  • Go 1.21 or higher

Setup:

git clone https://github.com/yourusername/internal-link
cd internal-link
go mod download

Run tests:

go test ./...

License

MIT

About

POC internal linking opportuity tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages