Skip to main content

๐Ÿท๏ธ Version Display

Dynamic version information display with build dates, Git commits, and environment indicators. Perfect for tracking releases, deployments, and development builds.

๐Ÿ”„ Live Version Display

Current version information for this Docusaurus Template:

๐ŸŽจ Display Formats

๐Ÿ“‹ Full Version Information

Shows complete version details including build metadata:

  • โœ… Version number with semantic versioning
  • โœ… Build date and time
  • โœ… Git commit hash
  • โœ… Environment indicator
  • โœ… Custom labels and badges

๐ŸŒ Environment Examples

๐Ÿš€ Production

v1.1.2
Built: 2025-08-24

Stable release with clean version numbers and release indicators.

๐Ÿงช Development

v1.2.0-beta.1
Commit: f4e5d6c

Beta versions with commit hashes and development indicators.

๐ŸŽฏ Custom

2024.08.15
Release Candidate

Custom versioning schemes like date-based or semantic release candidates.

โš™๏ธ Configuration

Basic Usage

import VersionDisplay from '@site/src/components/VersionDisplay';

// Default display (uses version.yml configuration)
<VersionDisplay />

// Custom format
<VersionDisplay format="short" />
<VersionDisplay format="minimal" />

// In navbar (automatic integration)
// Component is available as navbar item

Version Configuration (version.yml)

version: "3.1.2"
buildDate: "2024-08-15"
gitCommit: "a1b2c3d"
environment: "production"
customLabel: "Stable Release"

# Optional display settings
showBuildDate: true
showGitCommit: true
showEnvironment: true
dateFormat: "YYYY-MM-DD"

โšก Integration Features

๐Ÿ”ง Automatic Integration

  • โœ… Build Pipeline: Auto-updated during builds
  • โœ… Git Integration: Automatic commit hash detection
  • โœ… Environment Detection: NODE_ENV aware
  • โœ… Navbar Item: Available in navigation

๐ŸŽจ Display Options

  • โœ… Theme Aware: Adapts to site theme
  • โœ… Responsive: Works on all screen sizes
  • โœ… Accessible: Screen reader friendly
  • โœ… Customizable: Override styles and formats

๐Ÿ’ก Common Use Cases

๐Ÿ“ฑ Application Tracking

  • Mobile app version tracking
  • Web application releases
  • API version management
  • Deployment verification

๐Ÿ“š Documentation Sites

  • Documentation version sync
  • Content release tracking
  • Build verification
  • User support assistance

๐Ÿ”— Related Resources

Learn more about version management and build automation: