Raxol.Docs.InteractiveTutorial.Loader (Raxol v0.3.0)

View Source

Handles loading and parsing of tutorials from markdown files.

Summary

Functions

Extracts YAML front matter from markdown content.

Loads a single tutorial from a markdown file.

Loads all tutorials from the specified directory.

Parses YAML front matter into a Tutorial struct.

Parses a single step from markdown content.

Parses markdown content into a list of Step structs.

Functions

extract_front_matter(content)

Extracts YAML front matter from markdown content.

load_tutorial(file_path)

Loads a single tutorial from a markdown file.

load_tutorials_from_markdown(dir_path)

Loads all tutorials from the specified directory.

parse_front_matter(front_matter)

Parses YAML front matter into a Tutorial struct.

parse_step(step_content)

Parses a single step from markdown content.

parse_steps(markdown)

Parses markdown content into a list of Step structs.