Logo James Ray's Blog
  • Home
  • About
  • Accomplishments
  • Projects
  • Experiences
  • Posts
  • Notes
  • Photography
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo
  • Categories
  • Aromatic
  • Astrophotography
  • Automation
  • Aws
  • Backend
  • Blog
  • Burley
  • Cavendish
  • Cognito
  • Day in the Life
  • DevOps
  • Documentation
  • Dogwood
  • Frontend
  • Hugo
  • Jenkins
  • Latakia
  • Life
  • Loose Cut
  • Mochajs
  • Moon
  • No-Code
  • Perique
  • Pine Trees
  • Projects
  • Red Virginia
  • Ribbon Cut
  • Security
  • Snow
  • Terraform
  • Toenail Moon
  • Turkish
  • Vuejs
Hero Image
Hugo Include Code Shortcode: Seamlessly Embed Source Files in Documentation

When writing technical documentation, one of the biggest challenges is keeping code examples synchronized with your actual implementation. Copy-pasting code leads to outdated examples, while manual maintenance is error-prone and time-consuming. Today, I’ll show you how to build a Hugo shortcode that automatically includes source code files directly from your project, complete with syntax highlighting, line selection, and professional GitHub-style formatting. Why Build an Include Code Shortcode? Most documentation approaches have significant drawbacks:

Monday, August 18, 2025 Read
Hero Image
Building a Local PlantUML Extension for Hugo: No External Dependencies Required

When writing technical documentation, diagrams are essential for explaining complex architectures and workflows. PlantUML is a fantastic tool for creating diagrams from simple text descriptions, but most Hugo implementations rely on external web services or require manual diagram generation. Today, I’ll show you how to build a complete Hugo extension that processes PlantUML diagrams locally using Hugo shortcodes—no external dependencies, no source file modifications, just seamless integration. Why Build a Local PlantUML Extension? Most Hugo PlantUML solutions have significant limitations:

Sunday, August 10, 2025 Read
Navigation
  • About
  • Accomplishments
  • Projects
  • Experiences
Contact me:
  • james@rayprogramming.com
  • (812)955-0729

Stay up to date with email notification


By entering your email address, you agree to receive the newsletter of this website.

Toha Theme Logo Toha
© 2025 Copyright.
Powered by Hugo Logo