Skip to content

djspiewak/codecommit.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codecommit.com

Static blog built with Laika and syntect.

Dependencies

  • Rust toolchain (stable)
  • Scala CLI with JVM 22+ (required for Java FFM)

Build

# Build the syntax highlighter (Rust FFI library)
cargo build --release --manifest-path highlighter/Cargo.toml

# Build the site (outputs to _site/)
scala-cli run build.scala

Serve locally

scala-cli run build.scala -- serve        # http://localhost:4242
scala-cli run build.scala -- serve 8080   # custom port

Note that this does not monitor for source changes, it only serves _site/. You'll need to run scala-cli run build.scala in order to update for any changes, including to the markdown. You might be able to approximate ~ behavior here with the watch flag: scala-cli run build.scala -w (but this might not pick up the markdown)

Adding a blog post

  1. Create src/blog/<category>/<slug>.md (categories: scala, java, ruby, eclipse, etc.)

  2. Add frontmatter and content:

{%
laika.title = "Your Post Title"
laika.metadata.date = "2026-01-15"
%}

# Your Post Title

Post content in markdown...
  1. Commit and push

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors