Learn how to build pages in your sidebar with Documents.
actions
parameter when a document is created:
treatments
parameter which takes an array of treatments for your Document. Treatments can be used to categorize your Document. Certain treatments will cause your Document to look or behave differently.
"ephemeral"
will cause the Document to appear as a full-screen takeover, and it will not appear in the sidebar of your Space like other Documents. You can use ephemeral Documents to create a more focused experience for your end users.
"ephemeral"
is the only treatment that will change the behavior
of your Document. Other treatments will not affect how your Document behaves,
but can be used for your own purposes to categorize and describe your
Documents in code.<embed>
HTML entity in your markdown and specifying which Block type you want to show using the type
attribute on the entity. Two Block types are currently supported: Embedded Sheet and Embedded Diff.
direction
attribute which specified whether the changes are displayed with the Snapshot as the end state (sheet_to_snapshot
) or the Sheet as the end state (snapshot_to_sheet
). The default value for direction is sheet_to_snapshot
.
direction="sheet_to_snapshot"
if you want to show changes that have been
made since the time the Snapshot was taken, i.e. to review past changes. Use
direction="snapshot_to_sheet"
if to preview the changes that would occur if
you were to revert your Sheet back to the state it was in when the Snapshot
was taken.