-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add: Documentation for CoMID templates #20
base: main
Are you sure you want to change the base?
Changes from 15 commits
b7bbcae
b995937
d5f6ccc
9a70845
d2e7ffd
41453a0
b4038e1
b60c154
1a28a31
a05f8fb
f44bd62
9cfeed7
d4963e7
7427ebf
5a9919d
9e820d9
1447a59
c470890
d554494
eac2206
a32b99e
19fcbf4
7cecd10
e312487
d77c838
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,102 +101,8 @@ graph TD | |
Below are the **seven** template files, each highlighting different aspects of CoMID usage. | ||
|
||
### comid-cca-mult-refval.json | ||
``` | ||
{ | ||
"lang": "en-GB", | ||
"tag-identity": { | ||
"id": "43BBE37F-2E61-4B33-AED3-53CFF1428B16", | ||
"version": 0 | ||
}, | ||
"entities": [ | ||
{ | ||
"name": "ACME Ltd.", | ||
"regid": "https://acme.example", | ||
"roles": [ | ||
"tagCreator", | ||
"creator", | ||
"maintainer" | ||
] | ||
} | ||
], | ||
"triples": { | ||
"reference-values": [ | ||
{ | ||
"environment": { | ||
"class": { | ||
"id": { | ||
"type": "psa.impl-id", | ||
"value": "YWNtZS1pbXBsZW1lbnRhdGlvbi1pZC0wMDAwMDAwMDE=" | ||
}, | ||
"vendor": "ACME", | ||
"model": "RoadRunner" | ||
} | ||
}, | ||
"measurements": [ | ||
{ | ||
"key": { | ||
"type": "psa.refval-id", | ||
"value": { | ||
"label": "BL", | ||
"version": "2.1.0", | ||
"signer-id": "rLsRx+TaIXIFUjzkzhokWuGiOa48a/2eeHH35di66Gs=" | ||
} | ||
}, | ||
"value": { | ||
"digests": [ | ||
"sha-256:h0KPxSKAPTEGXnvOPPA/5HUJZjHl4Hu9eg/eYMTPJcc=" | ||
] | ||
} | ||
}, | ||
{ | ||
"key": { | ||
"type": "psa.refval-id", | ||
"value": { | ||
"label": "PRoT", | ||
"version": "1.3.5", | ||
"signer-id": "rLsRx+TaIXIFUjzkzhokWuGiOa48a/2eeHH35di66Gs=" | ||
} | ||
}, | ||
"value": { | ||
"digests": [ | ||
"sha-256:AmOCmYm2/ZVPcrqvL8ZLwuLwHWktTecphuqAj26ZgT8=" | ||
] | ||
} | ||
}, | ||
{ | ||
"key": { | ||
"type": "psa.refval-id", | ||
"value": { | ||
"label": "ARoT", | ||
"version": "0.1.4", | ||
"signer-id": "rLsRx+TaIXIFUjzkzhokWuGiOa48a/2eeHH35di66Gs=" | ||
} | ||
}, | ||
"value": { | ||
"digests": [ | ||
"sha-256:o6XnFfDMV0pzw/m+u2vCTzL/1bZ7OHJEwskJ2neaFHg=" | ||
] | ||
} | ||
}, | ||
{ | ||
"key": { | ||
"type": "cca.platform-config-id", | ||
"value": "cfg v1.0.0" | ||
}, | ||
"value": { | ||
"raw-value": { | ||
"type": "bytes", | ||
"value": "cmF3dmFsdWUKcmF3dmFsdWUK" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
[comid-cca-mult-refval.json](https://github.com/veraison/cocli/blob/0d8fae8210ae527589792de2fba54442302380f7/data/comid/templates/comid-cca-mult-refval.json#L1-L93) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this work as intended? I understand from the GitHub docs you just need to slap the bare permalink URI on a separate line, without any wrapping. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yaa this does not works as intended, i will add bare permalink There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @thomas-fossati sir a also tried bare link but it does not work as intended There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's because you are working on a fork (I think). To work, the permalink must refer to the local repo. Try and test it with a permalink to the same files but in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure @thomas-fossati i will give it a try |
||
|
||
**Key Points** | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I thought I had made this comment in the previous review cycle, but I cannot find it here, so...)
Rather than making verbatim copies of the files (which will eventually go out of sync), it's better to reference the originals here.
GitHub has a "code snippet" functionality that comes in handy: by copying the permalink to the JSON file (and adding the wanted lines range), the file is embedded in the rendered markdown -- which is pretty cool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be a bit more concrete: using the permalink to
comid-cca-mult-refval.json
(including explicit line range)https://github.com/veraison/cocli/blob/0d8fae8210ae527589792de2fba54442302380f7/data/comid/templates/comid-cca-mult-refval.json#L1-L93
will render as:cocli/data/comid/templates/comid-cca-mult-refval.json
Lines 1 to 93 in 0d8fae8