Expand description
Static site generator for Git repositories.
Re-exports§
pub use avatar::render;pub use components::icons::is_markdown;pub use components::icons::is_readme;
Modules§
- avatar
- Avatar generation for author profiles
- components
- Reusable HTML components for page generation
- pages
- Page generation modules for different view types
Structs§
- Blame
Line - Single line of blame output with commit attribution.
- Blame
Result - Blame result with lines and metadata.
- Changed
File - Changed file in commit diff.
- Commit
Diff - Full commit diff with all changed files.
- Commit
Info - Commit metadata.
- Config
- Command line configuration for Gitkyl.
- Diff
Hunk - Diff hunk with header and lines.
- Diff
Line - Single line in a diff hunk.
- File
Entry - File entry in repository tree.
- File
Stats - File statistics for diff.
- File
Tree - In-memory representation of repository directory tree.
- Highlighter
- Syntax highlighting engine with lazy-loaded syntaxes and themes.
- Link
Resolver - Resolves relative links in markdown to static blob/tree pages.
- Markdown
Renderer - Renders markdown to HTML with GitHub Flavored Markdown extensions.
- Paginated
Commits - Paginated commits result with navigation metadata.
- Repo
Info - Repository metadata.
- TagInfo
- Git tag with metadata.
Enums§
- Change
Type - Type of file change in commit.
- Diff
Line Type - Line change in a diff hunk.
- File
Type - File type classification for blob rendering
- Image
Format - Supported image formats for inline display
- Tree
Item - Represents an item in a directory tree view.
Functions§
- analyze_
repository - Analyzes a git repository and extracts metadata.
- blame_
file - Computes blame for a file, attributing each line to its originating commit.
- detect_
file_ type - Detects file type from path and content.
- get_
commit_ by_ oid - Retrieves a single commit by its OID.
- get_
commit_ diff - Computes diff for a commit against its parent.
- get_
last_ commits_ batch - Batch lookup last commits for multiple files in single history walk.
- highlight
- Highlights source code with syntax highlighting.
- is_
binary_ content - Checks if byte content is binary.
- list_
commits - Lists commits for a given reference in reverse chronological order.
- list_
commits_ paginated - Lists commits with pagination support.
- list_
files - Lists all files in repository at given reference.
- list_
tags - Lists all tags in the repository with metadata.
- read_
blob - Reads blob content from repository at given reference and path.
- read_
blob_ by_ oid - Reads blob content directly by object ID.
- write_
css_ assets - Writes all bundled CSS assets to output directory