Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 2.39 KB

File metadata and controls

64 lines (48 loc) · 2.39 KB

Embedding Instructions

This folder is a runnable guide to <embed-code> instructions. The positive examples show supported features, and the negative examples show failures users should expect when an instruction is malformed or stale.

Run the positive examples from the repository root:

go run ./main.go -mode=check -config-path=showcase/embedding/embed-code.yml

Feature Examples

Instruction Shape

Line, Range, And Glob Matching

Fragments

Rendered Content And Documents

Negative Examples

The negative examples are intentionally broken and should fail. Use them to recognize common diagnostics:

go run ./main.go -mode=check -config-path=showcase/embedding/negative/processing-errors.yml
go run ./main.go -mode=check -config-path=showcase/embedding/negative/stale.yml

The cases live in negative/docs.