Purpose
This section contains step-by-step tutorials to help you learn Ceradoc through hands-on examples. Each tutorial builds on previous concepts and includes runnable code.
Overview
Tutorials are organized by skill level and topic:
-
Basic Parsing - Parse your first AsciiDoc document
-
Document Modeling - Work with the document model
-
Serialization - Serialize models to AsciiDoc
-
Round-tripping - Preserve semantics through parse cycles
-
HTML Conversion - Convert HTML to AsciiDoc
Tutorial Structure
Each tutorial follows this structure:
-
Purpose - What you’ll learn
-
Prerequisites - What you should know first
-
Examples - Step-by-step runnable code
-
Exercises - Practice what you learned
-
Next Steps - What to learn next
Learning Path
We recommend this order for learning Ceradoc:
-
Basic Parsing - Start here if you’re new
-
Document Modeling - Understand the model
-
Serialization - Generate AsciiDoc output
-
Round-tripping - Learn about preservation
-
HTML Conversion - Advanced conversion
Example Code
All code examples in tutorials are runnable. You can execute them by:
# Save to a file (e.g., tutorial.rb)
# Then run with: ruby tutorial.rb
require 'ceradoc'
# Paste the example code hereRelated Documentation
-
Core Pages - Conceptual documentation
-
Guides - Task-oriented guides
-
References - Technical specifications