|
1 | 1 | == Get Started |
2 | 2 |
|
3 | | -A step-by-step guide to creating your first A2ML manifest, validating |
4 | | -it, and integrating it into your project. |
| 3 | +A step-by-step guide to creating your first A2ML manifest and |
| 4 | +integrating it into your project. |
5 | 5 |
|
6 | 6 | === Prerequisites |
7 | 7 |
|
8 | | -* https://pandoc.org/installing.html[Pandoc] 3.0 or later |
9 | 8 | * Git (for cloning the tooling) |
10 | 9 | * A text editor (VS Code recommended for syntax highlighting) |
11 | 10 |
|
12 | 11 | ''''' |
13 | 12 |
|
14 | | -=== Install pandoc-a2ml |
15 | | - |
16 | | -Clone the pandoc-a2ml repository and note the path to the Lua scripts. |
17 | | -No compilation needed — the reader, writer, and filter are pure Lua. |
18 | | - |
19 | | -[source,bash] |
20 | | ----- |
21 | | -git clone https://github.com/hyperpolymath/pandoc-a2ml.git |
22 | | -cd pandoc-a2ml |
23 | | ----- |
24 | | - |
25 | | -The key files are: - `+a2ml-reader.lua+` — reads `+.a2ml+` files into |
26 | | -Pandoc’s AST - `+a2ml-writer.lua+` — writes Pandoc AST as `+.a2ml+` |
27 | | -output - `+a2ml-filter.lua+` — Lua filter for attestation processing |
28 | | - |
29 | | -You can either add these to your Pandoc data directory |
30 | | -(`+~/.local/share/pandoc/+`) or reference them by path. |
31 | | - |
32 | 13 | === Install the VS Code Extension |
33 | 14 |
|
34 | 15 | For syntax highlighting while editing `+.a2ml+` files: |
@@ -89,29 +70,6 @@ No AI agents currently operate on this repository. |
89 | 70 | @end |
90 | 71 | .... |
91 | 72 |
|
92 | | -=== Validate with Pandoc |
93 | | - |
94 | | -Check that your manifest parses correctly by converting it to HTML: |
95 | | - |
96 | | -[source,bash] |
97 | | ----- |
98 | | -pandoc -f path/to/a2ml-reader.lua 0-AI-MANIFEST.a2ml -o manifest.html |
99 | | ----- |
100 | | - |
101 | | -If the file is well-formed, Pandoc will produce clean HTML output. Open |
102 | | -`+manifest.html+` in a browser to verify the structure. |
103 | | - |
104 | | -For deeper validation using the A2ML filter (checks attestation |
105 | | -structure): |
106 | | - |
107 | | -[source,bash] |
108 | | ----- |
109 | | -pandoc -f path/to/a2ml-reader.lua \ |
110 | | - --lua-filter path/to/a2ml-filter.lua \ |
111 | | - 0-AI-MANIFEST.a2ml \ |
112 | | - -o validated.html |
113 | | ----- |
114 | | - |
115 | 73 | === Add Machine-Readable Metadata |
116 | 74 |
|
117 | 75 | For full Rhodium Standard compliance, create the `+.machine_readable/+` |
@@ -207,7 +165,5 @@ directives and fields |
207 | 165 | * Browse link:examples.html[Examples] for real-world patterns |
208 | 166 | * Explore link:integrations.html[Integrations] for editor and CI tooling |
209 | 167 | * Check out the source repositories: |
210 | | -** https://github.com/hyperpolymath/pandoc-a2ml[pandoc-a2ml] |
211 | 168 | ** https://github.com/hyperpolymath/deed-ecosystem/tree/main/members/tooling/vscode-a2ml[members/tooling/vscode-a2ml/] |
212 | | -** https://github.com/hyperpolymath/tree-sitter-a2ml[tree-sitter-a2ml] |
213 | 169 | ** https://github.com/hyperpolymath/pandoc-k9[pandoc-k9] |
0 commit comments