-
Notifications
You must be signed in to change notification settings - Fork 7
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
Templates, compound blocks & muliti-section blocks support #68
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dylandepass
changed the title
Multi section blocks
Templates, Compound Blocks & Muliti-section blocks support
Sep 6, 2023
dylandepass
changed the title
Templates, Compound Blocks & Muliti-section blocks support
Templates, compound blocks & muliti-section blocks support
Sep 6, 2023
Codecov Report
@@ Coverage Diff @@
## main #68 +/- ##
==========================================
+ Coverage 97.80% 98.30% +0.49%
==========================================
Files 27 30 +3
Lines 3467 4308 +841
==========================================
+ Hits 3391 4235 +844
+ Misses 76 73 -3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more 📢 Have feedback on the report? Share it here. |
rofe
approved these changes
Sep 7, 2023
🎉 This PR is included in version 1.5.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support for Templates, compound and multi-section blocks
Templates
Templates are a way to group an entire document into a single element in the sidekick library
To mark a document as a template you would set
type
totemplate
in default library metadata.Supporting
metadata
in a template is also a required feature for template support. To add ametadata
table to the template you can use the newPage metadata
block.When the template is copied a
metadata
table will be added along with the content to the clipboard.Multi Section blocks
Multi section blocks are a way to group multiple sections into a single item in the sidekick library. Some block implementations require multiple sections of content (tabs).
To use multi section blocks the first section should contain
library metadata
that has ainclude next
key and the value should be set to the number of subsequent sections that should be included in the item in the sidekick library.Fixes #28, #64, #65, #66, #67