Repository navigation
reorg ledger model docs - #1628
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
| import LedgerModelSimpleAssetASSET from '/snippets/daml-docs/ledger-model_SimpleAsset_ASSET.mdx'; | ||
| import LedgerModelSimpleDvPDVP from '/snippets/daml-docs/ledger-model_SimpleDvP_DVP.mdx'; | ||
| import LedgerModelSimpleDvPPROPOSAL from '/snippets/daml-docs/ledger-model_SimpleDvP_PROPOSAL.mdx'; | ||
| import LedgerModelSimpleDvPSCRIPT from '/snippets/daml-docs/ledger-model_SimpleDvP_SCRIPT.mdx'; | ||
| import LedgerModelSimpleDvPACCEPTANDSETTLE from '/snippets/daml-docs/ledger-model_SimpleDvP_ACCEPT_AND_SETTLE.mdx'; | ||
| import LedgerModelSimpleDvPACCEPTTHENSETTLE from '/snippets/daml-docs/ledger-model_SimpleDvP_ACCEPT_THEN_SETTLE.mdx'; |
There was a problem hiding this comment.
These snippets are not checked any more for syntactic correctness. In the old setup, they were extracted from a Daml file that was run through the Daml compiler in CI. How are these snippets supposed to be tested?
There was a problem hiding this comment.
The snippets are copies of the marked sections of SimpleAsset.daml/SimpleDvP.daml, which ledger-model-daml-test still compiles in daml CI. All 15 of the snippets match today, but they aren't registered in cf-docs's snippet manifest, so they won't pick up source changes automatically. I'll register them in a follow-up so they're regenerated from the tested Daml files.
|
|
||
| {/* COPIED_START source="docs-website:docs/replicated/daml/3.5/overview/explanations/ledger-model/ledger-structure.rst" hash="a180a0ec" */} | ||
|
|
||
| ## Running workflow example |
There was a problem hiding this comment.
This section at the same level as the previous doesn't make much sense. I'd suggest to use the following structure:
- Running example
- Templates
- Workflow
where the currently under Running example goes into Templates and the content of Running workflow example goes into Workflow.
|
|
||
| {/* https://lucid.app/lucidchart/fdcc5894-e013-499e-ba85-de16300381a8/edit */} | ||
|
|
||
| <img src="/images/docs_website/dvp-propose-accept-and-settle-action.svg" className="align-center" style={{width: "100.0%"}} alt="The accept-and-settle action on Alice's ProposeSimpleDvP exercised by Bob." /> |
| Those parties are called the **requesters** of the commit. | ||
| In Daml Script, the requesters correspond to the `actAs` parties given to the `submit` commands. | ||
|
|
||
| <Note> |
There was a problem hiding this comment.
It's a bit unfortunate that definition blocks are rendered the same way as a plain note with an exclamation mark. Is there some chance that a custom block type with a different visual representation could be used?
| <LedgerModelSimpleDvPSCRIPT /> | ||
|
|
||
| <LedgerModelSimpleDvPACCEPTANDSETTLE /> |
There was a problem hiding this comment.
These two snippets should be integrated into a single one. Just concatenate both.
andreaslochbihler-da
left a comment
There was a problem hiding this comment.
Thanks @miller-da . This looks very nice. I've left a bunch of mostly mark-up suggestions on the main pages of the ledger model.
@meiersi-da additionally used Claude to compare the new pages against what's in the Daml repo, with the following findings:
-
Typos: “A Fetch action as a Fetch node” (daml #23354 fixes it to “has”). The PR also brings back .rst typos that cf-docs had corrected: “forth” instead of “fourth”, and “looks like” instead of “look like” (twice).
-
Stale link: shared/research.mdx still links to /overview/reference/ledger-model-detailed. It works only through the redirect.
Moreover, the .rst files in the Daml repo have meanwhile been updated for non-unique contract keys. These edits will have to be incorporated into the ledger model docs, but probably only in a subsequent PR.
They haven't because I have yet to address this comment. But if that would help, I could merge the PR and address the comment in a sub-sequent PR. |
Let's just merge this PR as is and I'll use the help of an llm to port my changes to this repo. |
Signed-off-by: miller-da <jpz.miller@pm.me>
8169cf0 to
e67c34b
Compare
Proposed revision of Ledger Model documentation.
Removes deprecated content that had been migrated from RST Sphinx documentation.
Groups Ledger Model documentation into submenu items rather than one super file.