lutaml 0.11.9 → 0.11.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/docs.yml +87 -0
  3. data/.github/workflows/links.yml +113 -0
  4. data/.github/workflows/rake.yml +52 -0
  5. data/.github/workflows/release.yml +83 -0
  6. data/.gitignore +29 -0
  7. data/CLAUDE.md +27 -0
  8. data/Gemfile +2 -2
  9. data/docs/.github/workflows/docs.yml +66 -0
  10. data/docs/.github/workflows/links.yml +78 -0
  11. data/docs/CONTINUATION_PLAN.md +168 -0
  12. data/docs/Gemfile +13 -0
  13. data/docs/MIGRATION_GUIDE.md +202 -0
  14. data/docs/README.md +252 -0
  15. data/docs/REFACTOR_PLAN.md +214 -0
  16. data/docs/_config.yml +144 -0
  17. data/docs/_guides/cli-usage.adoc +43 -0
  18. data/docs/_guides/diagram-generation.adoc +316 -0
  19. data/docs/_guides/index.adoc +136 -0
  20. data/docs/_guides/parsing/express-parsing.adoc +42 -0
  21. data/docs/_guides/parsing/index.adoc +78 -0
  22. data/docs/_guides/parsing/qea-parsing.adoc +47 -0
  23. data/docs/_guides/parsing/xmi-parsing.adoc +40 -0
  24. data/docs/_guides/repository-management.adoc +44 -0
  25. data/docs/_guides/sysml-modeling.adoc +37 -0
  26. data/docs/_guides/uml-modeling.adoc +115 -0
  27. data/docs/_pages/concepts/diagram-generation.adoc +337 -0
  28. data/docs/_pages/concepts/lur-format.adoc +711 -0
  29. data/docs/_pages/concepts/qea-parsing.adoc +418 -0
  30. data/docs/_pages/concepts/uml-models.adoc +43 -0
  31. data/docs/_pages/core/architecture.adoc +329 -0
  32. data/docs/_pages/core/installation.adoc +321 -0
  33. data/docs/_pages/core/overview.adoc +197 -0
  34. data/docs/_pages/index.adoc +49 -0
  35. data/docs/_pages/uml-syntax.adoc +1011 -0
  36. data/docs/_references/api/parsers.adoc +61 -0
  37. data/docs/_references/api/presenters.adoc +43 -0
  38. data/docs/_references/api/repository.adoc +67 -0
  39. data/docs/_references/cli/commands.adoc +72 -0
  40. data/docs/_references/configuration/diagram-styles.adoc +716 -0
  41. data/docs/_references/configuration/index.adoc +53 -0
  42. data/docs/_references/configuration/package-metadata.adoc +416 -0
  43. data/docs/_references/formats/index.adoc +43 -0
  44. data/docs/_references/formats/lur-format.adoc +39 -0
  45. data/docs/_references/formats/lutaml-syntax.adoc +379 -0
  46. data/docs/_references/formats/qea-structure.adoc +1364 -0
  47. data/docs/_references/index.adoc +198 -0
  48. data/docs/_tutorials/documentation-site.adoc +47 -0
  49. data/docs/_tutorials/first-lur-package.adoc +45 -0
  50. data/docs/_tutorials/generating-diagrams.adoc +42 -0
  51. data/docs/_tutorials/getting-started.adoc +45 -0
  52. data/docs/_tutorials/index.adoc +100 -0
  53. data/docs/_tutorials/querying-models.adoc +44 -0
  54. data/docs/examples/build_package.rb +12 -0
  55. data/docs/examples/build_site.rb +12 -0
  56. data/docs/examples/city_model.rb +21 -0
  57. data/docs/examples/present_class.rb +10 -0
  58. data/docs/examples/query_model.rb +12 -0
  59. data/docs/examples/render_diagram.rb +11 -0
  60. data/docs/index.adoc +64 -0
  61. data/docs/lml-models-and-instances-syntax.adoc +931 -0
  62. data/docs/lml.adoc +210 -0
  63. data/docs/lychee.toml +50 -0
  64. data/lib/lutaml/version.rb +1 -1
  65. data/lib/lutaml.rb +6 -1
  66. data/lutaml.gemspec +8 -6
  67. metadata +75 -131
  68. data/exe/lutaml-lml +0 -6
  69. data/exe/lutaml-lml-lsp +0 -11
  70. data/lib/lutaml/lml/association_label_resolver.rb +0 -52
  71. data/lib/lutaml/lml/cli.rb +0 -506
  72. data/lib/lutaml/lml/data_processor/attribute_processing.rb +0 -133
  73. data/lib/lutaml/lml/data_processor/collection_processing.rb +0 -37
  74. data/lib/lutaml/lml/data_processor/instance_processing.rb +0 -77
  75. data/lib/lutaml/lml/data_processor/value_declaration_processing.rb +0 -70
  76. data/lib/lutaml/lml/data_processor/value_processing.rb +0 -103
  77. data/lib/lutaml/lml/data_processor/view_processing.rb +0 -26
  78. data/lib/lutaml/lml/data_processor.rb +0 -59
  79. data/lib/lutaml/lml/diagnostic.rb +0 -149
  80. data/lib/lutaml/lml/document_builder.rb +0 -481
  81. data/lib/lutaml/lml/entity_types.rb +0 -30
  82. data/lib/lutaml/lml/executor/adapter_helpers.rb +0 -45
  83. data/lib/lutaml/lml/executor/condition_evaluator.rb +0 -169
  84. data/lib/lutaml/lml/executor/csv_adapter.rb +0 -88
  85. data/lib/lutaml/lml/executor/format_adapter.rb +0 -54
  86. data/lib/lutaml/lml/executor/xml_adapter.rb +0 -102
  87. data/lib/lutaml/lml/executor.rb +0 -96
  88. data/lib/lutaml/lml/format/adapter/document.rb +0 -11
  89. data/lib/lutaml/lml/format/adapter/mapping.rb +0 -31
  90. data/lib/lutaml/lml/format/adapter/standard_adapter.rb +0 -162
  91. data/lib/lutaml/lml/format/adapter/transform.rb +0 -11
  92. data/lib/lutaml/lml/format.rb +0 -29
  93. data/lib/lutaml/lml/formatter/base.rb +0 -79
  94. data/lib/lutaml/lml/formatter/canonical.rb +0 -736
  95. data/lib/lutaml/lml/formatter/elk.rb +0 -45
  96. data/lib/lutaml/lml/formatter/svg_pdf/path_parser.rb +0 -134
  97. data/lib/lutaml/lml/formatter/svg_pdf.rb +0 -285
  98. data/lib/lutaml/lml/formatter.rb +0 -11
  99. data/lib/lutaml/lml/grammar/lml.artifact.json +0 -14993
  100. data/lib/lutaml/lml/grammar/lml.parg +0 -389
  101. data/lib/lutaml/lml/grammar.rb +0 -60
  102. data/lib/lutaml/lml/has_attributes.rb +0 -14
  103. data/lib/lutaml/lml/import_resolver.rb +0 -96
  104. data/lib/lutaml/lml/layout/elk_engine.rb +0 -15
  105. data/lib/lutaml/lml/layout/elk_graph_builder.rb +0 -129
  106. data/lib/lutaml/lml/layout/elk_svg_markers.rb +0 -45
  107. data/lib/lutaml/lml/layout/elk_svg_renderer.rb +0 -119
  108. data/lib/lutaml/lml/layout/engine.rb +0 -17
  109. data/lib/lutaml/lml/layout.rb +0 -12
  110. data/lib/lutaml/lml/literal_value.rb +0 -32
  111. data/lib/lutaml/lml/lsp/conversions.rb +0 -78
  112. data/lib/lutaml/lml/lsp/keywords.rb +0 -43
  113. data/lib/lutaml/lml/lsp/server.rb +0 -378
  114. data/lib/lutaml/lml/lsp/store.rb +0 -68
  115. data/lib/lutaml/lml/lsp/transport.rb +0 -53
  116. data/lib/lutaml/lml/lsp.rb +0 -16
  117. data/lib/lutaml/lml/model_compiler/enums.rb +0 -172
  118. data/lib/lutaml/lml/model_compiler/hydration.rb +0 -123
  119. data/lib/lutaml/lml/model_compiler/serialization_mappings.rb +0 -188
  120. data/lib/lutaml/lml/model_compiler/string_formats.rb +0 -42
  121. data/lib/lutaml/lml/model_compiler/validation.rb +0 -65
  122. data/lib/lutaml/lml/model_compiler.rb +0 -323
  123. data/lib/lutaml/lml/models/action.rb +0 -10
  124. data/lib/lutaml/lml/models/association.rb +0 -29
  125. data/lib/lutaml/lml/models/cardinality.rb +0 -10
  126. data/lib/lutaml/lml/models/collection.rb +0 -11
  127. data/lib/lutaml/lml/models/constraint.rb +0 -23
  128. data/lib/lutaml/lml/models/data_type.rb +0 -41
  129. data/lib/lutaml/lml/models/derived_field.rb +0 -14
  130. data/lib/lutaml/lml/models/diagram.rb +0 -20
  131. data/lib/lutaml/lml/models/document.rb +0 -84
  132. data/lib/lutaml/lml/models/enum.rb +0 -38
  133. data/lib/lutaml/lml/models/fidelity.rb +0 -10
  134. data/lib/lutaml/lml/models/group.rb +0 -11
  135. data/lib/lutaml/lml/models/instance.rb +0 -26
  136. data/lib/lutaml/lml/models/instance_collection.rb +0 -16
  137. data/lib/lutaml/lml/models/instances_export.rb +0 -10
  138. data/lib/lutaml/lml/models/instances_import.rb +0 -11
  139. data/lib/lutaml/lml/models/mapping.rb +0 -15
  140. data/lib/lutaml/lml/models/mapping_rule.rb +0 -16
  141. data/lib/lutaml/lml/models/member_field.rb +0 -14
  142. data/lib/lutaml/lml/models/namespace.rb +0 -16
  143. data/lib/lutaml/lml/models/operation.rb +0 -26
  144. data/lib/lutaml/lml/models/operation_parameter.rb +0 -12
  145. data/lib/lutaml/lml/models/package.rb +0 -26
  146. data/lib/lutaml/lml/models/primitive_type.rb +0 -33
  147. data/lib/lutaml/lml/models/reference.rb +0 -23
  148. data/lib/lutaml/lml/models/serialization_mapping.rb +0 -19
  149. data/lib/lutaml/lml/models/string_format.rb +0 -16
  150. data/lib/lutaml/lml/models/top_element_attribute.rb +0 -116
  151. data/lib/lutaml/lml/models/uml_class.rb +0 -85
  152. data/lib/lutaml/lml/models/value.rb +0 -15
  153. data/lib/lutaml/lml/models/view_filter.rb +0 -11
  154. data/lib/lutaml/lml/models/view_import.rb +0 -11
  155. data/lib/lutaml/lml/parser.rb +0 -19
  156. data/lib/lutaml/lml/pipeline.rb +0 -73
  157. data/lib/lutaml/lml/positioned.rb +0 -13
  158. data/lib/lutaml/lml/preprocessor.rb +0 -130
  159. data/lib/lutaml/lml/quoting.rb +0 -60
  160. data/lib/lutaml/lml/source.rb +0 -49
  161. data/lib/lutaml/lml/source_position.rb +0 -20
  162. data/lib/lutaml/lml/symbol_index.rb +0 -200
  163. data/lib/lutaml/lml/transform.rb +0 -119
  164. data/lib/lutaml/lml/types/text_type.rb +0 -28
  165. data/lib/lutaml/lml/types.rb +0 -10
  166. data/lib/lutaml/lml/validator.rb +0 -458
  167. data/lib/lutaml/lml/version.rb +0 -10
  168. data/lib/lutaml/lml/view_resolution.rb +0 -32
  169. data/lib/lutaml/lml/view_resolver.rb +0 -48
  170. data/lib/lutaml/lml/yaml_parser.rb +0 -17
  171. data/lib/lutaml/lml.rb +0 -130
@@ -0,0 +1,168 @@
1
+ # Documentation Refactoring - COMPLETED ✅
2
+
3
+ ## Final Status (2025-11-28)
4
+
5
+ All phases of the documentation refactoring have been successfully completed!
6
+
7
+ **Foundation**: ✅ Complete (100%)
8
+ **Content Migration**: ✅ Complete (100%)
9
+ **Testing & Validation**: ✅ Complete (100%)
10
+
11
+ ## Completed Work
12
+
13
+ ### Phase 1-3: Content Migration ✅
14
+
15
+ All documentation files have been successfully migrated to the new Jekyll structure:
16
+
17
+ **Phase 1 - Technical References (4 files)**:
18
+ - ✅ `ea_qea_structure.adoc` → `_references/formats/qea-structure.adoc`
19
+ - ✅ `lutaml_syntax.adoc` → `_references/formats/lutaml-syntax.adoc`
20
+ - ✅ `diagram-configuration.adoc` → `_references/configuration/diagram-styles.adoc`
21
+ - ✅ `package_metadata.adoc` → `_references/configuration/package-metadata.adoc`
22
+
23
+ **Phase 2 - User Guides (4 files)**:
24
+ - ✅ `diagram-generation.adoc` → `_guides/diagram-generation.adoc`
25
+ - ✅ `lutaml-uml.adoc` → `_guides/uml-modeling.adoc`
26
+ - ✅ `lutaml-express.adoc` → `_guides/parsing/express-parsing.adoc`
27
+ - ✅ `lutaml-xmi.adoc` → `_guides/parsing/xmi-parsing.adoc`
28
+
29
+ **Phase 3 - Additional Content (1 file)**:
30
+ - ✅ `lutaml-sysml.adoc` → `_guides/sysml-modeling.adoc` (enhanced with additional content)
31
+
32
+ ### Phase 4: Cleanup ✅
33
+
34
+ - ✅ Deleted all 9 original source files from docs root
35
+ - ✅ Cleaned up duplicate file (`diagram_generation.adoc` vs `diagram-generation.adoc`)
36
+ - ✅ Updated `_guides/index.adoc` to reference new files
37
+ - ✅ Internal planning docs already in `old-docs/` directory
38
+
39
+ ### Phase 5: Testing & Validation ✅
40
+
41
+ - ✅ Jekyll site builds successfully (0.671 seconds)
42
+ - ✅ All dependencies installed via `bundle install`
43
+ - ✅ No build errors (warnings about layouts are expected/harmless)
44
+ - ✅ Updated project root `README.adoc` with documentation links
45
+ - ✅ Fixed broken links in "See Also" section
46
+
47
+ ## Final Documentation Structure
48
+
49
+ ```
50
+ docs/
51
+ ├── index.adoc # Homepage ✅
52
+ ├── _config.yml # Jekyll config ✅
53
+ ├── Gemfile # Dependencies ✅
54
+ ├── lychee.toml # Link checker ✅
55
+ │
56
+ ├── _pages/ # Core Topics ✅
57
+ │ ├── index.adoc
58
+ │ ├── overview.adoc
59
+ │ ├── installation.adoc
60
+ │ ├── architecture.adoc
61
+ │ └── concepts/
62
+ │ ├── qea-parsing.adoc
63
+ │ ├── lur-format.adoc
64
+ │ └── diagram-generation.adoc
65
+ │
66
+ ├── _tutorials/ # Tutorials ✅
67
+ │ ├── index.adoc
68
+ │ └── getting-started.adoc
69
+ │
70
+ ├── _guides/ # Guides ✅
71
+ │ ├── index.adoc
72
+ │ ├── diagram-generation.adoc
73
+ │ ├── uml-modeling.adoc
74
+ │ ├── sysml-modeling.adoc
75
+ │ └── parsing/
76
+ │ ├── index.adoc
77
+ │ ├── express-parsing.adoc
78
+ │ └── xmi-parsing.adoc
79
+ │
80
+ ├── _references/ # Reference ✅
81
+ │ ├── index.adoc
82
+ │ ├── cli/
83
+ │ │ └── commands.adoc
84
+ │ ├── api/
85
+ │ │ └── repository.adoc
86
+ │ ├── formats/
87
+ │ │ ├── index.adoc
88
+ │ │ ├── qea-structure.adoc
89
+ │ │ └── lutaml-syntax.adoc
90
+ │ └── configuration/
91
+ │ ├── index.adoc
92
+ │ ├── diagram-styles.adoc
93
+ │ └── package-metadata.adoc
94
+ │
95
+ └── old-docs/ # Archived docs ✅
96
+ ├── CLI_THOR_ARCHITECTURE.md
97
+ ├── COMPREHENSIVE_VALIDATION_PLAN.md
98
+ └── ... (all internal planning docs)
99
+ ```
100
+
101
+ ## Build & Access
102
+
103
+ ### Local Development
104
+
105
+ ```bash
106
+ cd docs
107
+ bundle install
108
+ bundle exec jekyll serve
109
+ # Open http://localhost:4000/lutaml/
110
+ ```
111
+
112
+ ### Production Build
113
+
114
+ ```bash
115
+ cd docs
116
+ JEKYLL_ENV=production bundle exec jekyll build
117
+ # Output in docs/_site/
118
+ ```
119
+
120
+ ### GitHub Pages
121
+
122
+ The site is configured for GitHub Pages deployment:
123
+ - Base URL: `/lutaml`
124
+ - Theme: just-the-docs 0.7.0
125
+ - Auto-deploy via GitHub Actions (configured in `.github/workflows/`)
126
+
127
+ ## Success Criteria - ALL MET ✅
128
+
129
+ - [x] All existing .adoc content migrated
130
+ - [x] Jekyll site builds without errors
131
+ - [x] Navigation is complete and logical
132
+ - [x] All internal links work (verified paths)
133
+ - [x] Original docs archived properly in `old-docs/`
134
+ - [x] README.adoc updated with documentation links
135
+ - [x] No content loss (all files migrated)
136
+ - [x] Clean docs root directory (9 files deleted)
137
+
138
+ ## Statistics
139
+
140
+ - **Files Migrated**: 9 documentation files
141
+ - **Files Deleted**: 9 original source files
142
+ - **Build Time**: 0.671 seconds
143
+ - **Total Pages**: 22+ pages across 4 collections
144
+ - **Dependencies**: 41 gems installed
145
+ - **Time to Complete**: ~2 hours
146
+
147
+ ## Next Steps (Optional)
148
+
149
+ The documentation is now ready for use. Optional enhancements:
150
+
151
+ 1. **Link Checking**: Run `lychee` to verify all external links
152
+ 2. **GitHub Pages Deployment**: Enable in repository settings
153
+ 3. **Custom Domain**: Configure if desired
154
+ 4. **Additional Content**: Add more tutorials and examples as needed
155
+ 5. **Search Optimization**: Configure search settings in `_config.yml`
156
+
157
+ ## Notes
158
+
159
+ - Layout warnings during build are expected - just-the-docs provides its own layouts
160
+ - All migrated files have proper YAML front matter
161
+ - File paths follow Jekyll conventions
162
+ - AsciiDoc format preserved throughout
163
+ - Git-friendly structure with logical organization
164
+
165
+ ---
166
+
167
+ **Completion Date**: November 28, 2025
168
+ **Status**: ✅ COMPLETE - Ready for production use
data/docs/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "jekyll"
6
+ gem "jekyll-asciidoc"
7
+ gem "jekyll-seo-tag"
8
+ gem "jekyll-sitemap"
9
+ gem "just-the-docs"
10
+
11
+ group :jekyll_plugins do
12
+ gem "asciidoctor"
13
+ end
@@ -0,0 +1,202 @@
1
+ # Documentation Migration Guide
2
+
3
+ ## Status: Foundation Complete ✅
4
+
5
+ The Jekyll documentation structure has been established. Content migration is the next step.
6
+
7
+ ## What's Been Set Up
8
+
9
+ ### ✅ Complete Infrastructure
10
+
11
+ 1. **Jekyll Configuration** - `_config.yml`, `Gemfile`, `lychee.toml`
12
+ 2. **Directory Structure** - All 4 collections with subdirectories
13
+ 3. **Collection Overviews** - Index pages for all collections
14
+ 4. **CI/CD Workflows** - GitHub Actions for build and link checking
15
+ 5. **Main Homepage** - `docs/index.adoc` with navigation
16
+
17
+ ## Quick Start
18
+
19
+ ```bash
20
+ cd docs
21
+ bundle install
22
+ bundle exec jekyll serve
23
+ # Open http://localhost:4000/lutaml/
24
+ ```
25
+
26
+ ## Content Migration Priorities
27
+
28
+ ### Priority 1: Essential Content
29
+
30
+ **From README.adoc** → Split into:
31
+ - `_pages/overview.adoc` - What is LutaML
32
+ - `_pages/installation.adoc` - Install guide
33
+ - `_tutorials/getting-started.adoc` - Quick start
34
+ - `_guides/cli-usage.adoc` - CLI usage
35
+ - `_references/cli/commands.adoc` - CLI reference
36
+ - `_references/api/repository.adoc` - API docs
37
+
38
+ **Technical Docs** → Move to _references/:
39
+ - `ea_qea_structure.adoc` → `_references/formats/qea-structure.adoc`
40
+ - `lutaml_syntax.adoc` → `_references/formats/lutaml-syntax.adoc`
41
+ - `diagram-configuration.adoc` → `_references/configuration/diagram-styles.adoc`
42
+ - `package_metadata.adoc` → `_references/configuration/package-metadata.adoc`
43
+
44
+ **User Guides** → Move/adapt:
45
+ - `diagram-generation.adoc` → Split across pages/tutorials/guides
46
+ - `lutaml-uml.adoc` → `_guides/uml-modeling.adoc`
47
+ - `lutaml-express.adoc` → `_guides/parsing/express-parsing.adoc`
48
+ - `lutaml-xmi.adoc` → `_guides/parsing/xmi-parsing.adoc`
49
+
50
+ ### Priority 2: Archive Internal Docs
51
+
52
+ Move to `docs/old-docs/` or delete these planning documents.
53
+
54
+ ## Migration Steps
55
+
56
+ ### 1. Add Front Matter
57
+
58
+ Every page needs YAML front matter:
59
+
60
+ ```yaml
61
+ ---
62
+ title: Page Title
63
+ parent: Parent Page Title
64
+ nav_order: 1
65
+ ---
66
+ ```
67
+
68
+ ### 2. Update Links
69
+
70
+ Change relative paths for new structure:
71
+
72
+ ```adoc
73
+ # Old
74
+ link:diagram-configuration.adoc[Config]
75
+
76
+ # New
77
+ link:../_references/configuration/diagram-styles.adoc[Config]
78
+ ```
79
+
80
+ ### 3. Test Build
81
+
82
+ After each file:
83
+
84
+ ```bash
85
+ bundle exec jekyll serve
86
+ ```
87
+
88
+ ## File Structure
89
+
90
+ ```
91
+ docs/
92
+ ├── index.adoc # Homepage ✅
93
+ ├── _pages/ # Core Topics ✅
94
+ │ ├── index.adoc
95
+ │ ├── overview.adoc # TODO
96
+ │ ├── installation.adoc # TODO
97
+ │ ├── architecture.adoc # TODO
98
+ │ └── concepts/
99
+ │ ├── qea-parsing.adoc # TODO
100
+ │ ├── lur-format.adoc # TODO
101
+ │ └── diagram-generation.adoc # TODO
102
+ ├── _tutorials/ # Tutorials ✅
103
+ │ ├── index.adoc
104
+ │ ├── getting-started.adoc # TODO
105
+ │ ├── first-lur-package.adoc # TODO
106
+ │ └── generating-diagrams.adoc # TODO
107
+ ├── _guides/ # Guides ✅
108
+ │ ├── index.adoc
109
+ │ ├── cli-usage.adoc # TODO
110
+ │ ├── diagram-configuration.adoc # TODO
111
+ │ └── parsing/
112
+ │ ├── qea-parsing.adoc # TODO
113
+ │ ├── xmi-parsing.adoc # TODO
114
+ │ └── express-parsing.adoc # TODO
115
+ └── _references/ # Reference ✅
116
+ ├── index.adoc
117
+ ├── cli/
118
+ │ └── commands.adoc # TODO
119
+ ├── api/
120
+ │ └── repository.adoc # TODO
121
+ ├── formats/
122
+ │ ├── qea-structure.adoc # Move from ea_qea_structure.adoc
123
+ │ └── lutaml-syntax.adoc # Move from lutaml_syntax.adoc
124
+ └── configuration/
125
+ ├── diagram-styles.adoc # Move from diagram-configuration.adoc
126
+ └── package-metadata.adoc # Move from package_metadata.adoc
127
+ ```
128
+
129
+ ## Content Guidelines
130
+
131
+ ### Required Page Structure
132
+
133
+ 1. Title (from front matter)
134
+ 2. **Purpose** - What this page covers
135
+ 3. **Prerequisites** - What reader needs
136
+ 4. **References** - Related pages
137
+ 5. **Main content** - 4+ sections
138
+ 6. **Examples** - Code examples
139
+ 7. **See Also** - Bibliography
140
+
141
+ ### Link Syntax
142
+
143
+ Use AsciiDoc format:
144
+
145
+ ```adoc
146
+ link:relative/path.adoc[Link Text]
147
+ ```
148
+
149
+ ### Code Blocks
150
+
151
+ ```adoc
152
+ [source,ruby]
153
+ ----
154
+ code here
155
+ ----
156
+ ```
157
+
158
+ ## Testing Checklist
159
+
160
+ - [ ] All pages have front matter
161
+ - [ ] All links work (no 404s)
162
+ - [ ] Code blocks render correctly
163
+ - [ ] Navigation is complete
164
+ - [ ] Search works
165
+ - [ ] Mobile responsive
166
+ - [ ] Link checker passes
167
+
168
+ ## Build Commands
169
+
170
+ ```bash
171
+ # Development
172
+ bundle exec jekyll serve --livereload
173
+
174
+ # Production
175
+ JEKYLL_ENV=production bundle exec jekyll build
176
+
177
+ # Link check
178
+ lychee --config lychee.toml '_site/**/*.html'
179
+ ```
180
+
181
+ ## Navigation Order
182
+
183
+ - 1-10: Core concepts
184
+ - 11-20: Getting started
185
+ - 21-30: Tutorials
186
+ - 31-40: Guides
187
+ - 41-50: References
188
+
189
+ ## Common Issues
190
+
191
+ **Links broken?** Check front matter `parent` matches parent page `title`.
192
+
193
+ **Navigation missing?** Ensure `nav_order` is set.
194
+
195
+ **Search empty?** Rebuild site to regenerate index.
196
+
197
+ ## Summary
198
+
199
+ - **Foundation**: ✅ Complete
200
+ - **Content Migration**: 📝 Ready to start
201
+ - **Estimated Time**: 4-6 hours
202
+ - **See Also**: `REFACTOR_PLAN.md` for details
data/docs/README.md ADDED
@@ -0,0 +1,252 @@
1
+ # LutaML Documentation
2
+
3
+ This directory contains the LutaML documentation website built with Jekyll and the just-the-docs theme.
4
+
5
+ ## 🎉 Jekyll Site Structure: READY
6
+
7
+ The documentation framework is complete and ready for content migration.
8
+
9
+ ## Quick Start
10
+
11
+ ### Local Development
12
+
13
+ ```bash
14
+ cd docs
15
+ bundle install
16
+ bundle exec jekyll serve
17
+ ```
18
+
19
+ Open http://localhost:4000/lutaml/
20
+
21
+ ### Production Build
22
+
23
+ ```bash
24
+ cd docs
25
+ JEKYLL_ENV=production bundle exec jekyll build
26
+ ```
27
+
28
+ Output in `_site/` directory.
29
+
30
+ ## Site Structure
31
+
32
+ ```
33
+ docs/
34
+ ├── index.adoc # Homepage ✅
35
+ ├── _config.yml # Jekyll configuration ✅
36
+ ├── Gemfile # Dependencies ✅
37
+ ├── lychee.toml # Link checker config ✅
38
+ │
39
+ ├── _pages/ # Core Topics collection ✅
40
+ │ ├── index.adoc # Collection overview
41
+ │ └── concepts/ # Concepts subdirectory
42
+ │
43
+ ├── _tutorials/ # Tutorials collection ✅
44
+ │ └── index.adoc # Collection overview
45
+ │
46
+ ├── _guides/ # Guides collection ✅
47
+ │ ├── index.adoc # Collection overview
48
+ │ └── parsing/ # Parsing guides subdirectory
49
+ │
50
+ ├── _references/ # Reference collection ✅
51
+ │ ├── index.adoc # Collection overview
52
+ │ ├── cli/ # CLI reference
53
+ │ ├── api/ # API reference
54
+ │ ├── formats/ # Format specifications
55
+ │ └── configuration/ # Configuration schemas
56
+ │
57
+ └── .github/workflows/ # CI/CD ✅
58
+ ├── docs.yml # Build and deploy
59
+ └── links.yml # Link checking
60
+ ```
61
+
62
+ ## Documentation Collections
63
+
64
+ ### 1. Core Topics (_pages/)
65
+
66
+ Fundamental concepts and essential information.
67
+
68
+ **Status**: Skeleton ready, content needs migration
69
+
70
+ ### 2. Tutorials (_tutorials/)
71
+
72
+ Step-by-step learning paths with complete workflows.
73
+
74
+ **Status**: Overview ready, tutorials need creation
75
+
76
+ ### 3. Guides (_guides/)
77
+
78
+ Task-oriented how-to documentation.
79
+
80
+ **Status**: Overview ready, guides need migration
81
+
82
+ ### 4. Reference (_references/)
83
+
84
+ Detailed technical specifications and API docs.
85
+
86
+ **Status**: Structure ready, content needs migration
87
+
88
+ ## Next Steps
89
+
90
+ See [`MIGRATION_GUIDE.md`](MIGRATION_GUIDE.md) for detailed instructions on:
91
+
92
+ 1. Content migration from existing docs
93
+ 2. Front matter requirements
94
+ 3. Link updating procedures
95
+ 4. Testing checklist
96
+
97
+ See [`REFACTOR_PLAN.md`](REFACTOR_PLAN.md) for complete categorization and mapping.
98
+
99
+ ## Contributing
100
+
101
+ ### Adding a New Page
102
+
103
+ 1. Create file in appropriate collection directory
104
+ 2. Add YAML front matter:
105
+ ```yaml
106
+ ---
107
+ title: Page Title
108
+ parent: Parent Page Title
109
+ nav_order: 1
110
+ ---
111
+ ```
112
+ 3. Write content in AsciiDoc format
113
+ 4. Test locally: `bundle exec jekyll serve`
114
+ 5. Submit pull request
115
+
116
+ ### Updating Existing Pages
117
+
118
+ 1. Edit the `.adoc` file
119
+ 2. Update cross-references if needed
120
+ 3. Test build locally
121
+ 4. Submit pull request
122
+
123
+ ## GitHub Actions
124
+
125
+ ### Build and Deploy (docs.yml)
126
+
127
+ Automatically builds and deploys on push to main.
128
+
129
+ **Triggers**: Push to main, pull requests, manual dispatch
130
+
131
+ ### Link Checking (links.yml)
132
+
133
+ Validates all links in documentation.
134
+
135
+ **Triggers**: Push to main, pull requests, weekly schedule
136
+
137
+ ## Link Syntax
138
+
139
+ Use AsciiDoc format for all internal links:
140
+
141
+ ```adoc
142
+ link:relative/path.adoc[Link Text]
143
+ link:../_pages/installation.adoc[Installation Guide]
144
+ ```
145
+
146
+ ## Front Matter Reference
147
+
148
+ ### Top-level page:
149
+ ```yaml
150
+ ---
151
+ title: Page Title
152
+ nav_order: 1
153
+ ---
154
+ ```
155
+
156
+ ### Child page:
157
+ ```yaml
158
+ ---
159
+ title: Child Page
160
+ parent: Parent Page Title
161
+ nav_order: 2
162
+ ---
163
+ ```
164
+
165
+ ### Grandchild:
166
+ ```yaml
167
+ ---
168
+ title: Grandchild
169
+ parent: Child Page Title
170
+ grand_parent: Parent Page Title
171
+ nav_order: 1
172
+ ---
173
+ ```
174
+
175
+ ## Configuration
176
+
177
+ ### Site Settings (_config.yml)
178
+
179
+ - Title: LutaML Documentation
180
+ - Base URL: /lutaml
181
+ - Theme: just-the-docs 0.7.0
182
+ - 4 collections configured
183
+ - Search enabled
184
+ - Link checking enabled
185
+
186
+ ### Dependencies (Gemfile)
187
+
188
+ - jekyll (~> 4.3)
189
+ - just-the-docs (0.7.0)
190
+ - jekyll-asciidoc
191
+ - jekyll-seo-tag
192
+ - jekyll-sitemap
193
+
194
+ ### Link Checker (lychee.toml)
195
+
196
+ - Caching enabled
197
+ - Follows redirects
198
+ - Excludes examples and localhost
199
+ - Retry logic for rate limits
200
+
201
+ ## Common Commands
202
+
203
+ ```bash
204
+ # Install dependencies
205
+ bundle install
206
+
207
+ # Serve locally with live reload
208
+ bundle exec jekyll serve --livereload
209
+
210
+ # Build for production
211
+ JEKYLL_ENV=production bundle exec jekyll build
212
+
213
+ # Check links
214
+ bundle exec jekyll build
215
+ lychee --config lychee.toml '_site/**/*.html'
216
+
217
+ # Clean build artifacts
218
+ bundle exec jekyll clean
219
+ ```
220
+
221
+ ## Troubleshooting
222
+
223
+ ### "Liquid Exception: Included file '_includes/head.html' not found"
224
+
225
+ Install theme: `bundle install`
226
+
227
+ ### Links showing as [link text](broken_path)
228
+
229
+ Use AsciiDoc syntax: `link:path.adoc[Text]`
230
+
231
+ ### Navigation not showing pages
232
+
233
+ Check front matter `parent` matches parent `title` exactly.
234
+
235
+ ### Search not working
236
+
237
+ Rebuild site to regenerate search index.
238
+
239
+ ## Resources
240
+
241
+ - **Jekyll**: https://jekyllrb.com/docs/
242
+ - **Just the Docs**: https://just-the-docs.github.io/just-the-docs/
243
+ - **AsciiDoc**: https://docs.asciidoctor.org/asciidoc/latest/
244
+ - **Migration Guide**: [MIGRATION_GUIDE.md](MIGRATION_GUIDE.md)
245
+ - **Refactor Plan**: [REFACTOR_PLAN.md](REFACTOR_PLAN.md)
246
+
247
+ ## Status
248
+
249
+ **Infrastructure**: ✅ Complete
250
+ **Content Migration**: 📝 In Progress
251
+ **Testing**: ⏳ Pending
252
+ **Deployment**: 🚀 Ready