this repo has no description
1# Content Types
2
3Sitebase is designed to be flexible and work with any `standard.site` data. However, due to the potential complexity of working with app-specific content types like those of leaflet.pub or pckt.blog, currently support is limited for working with them.
4
5As defined in [the lexicon documentation](./lexicons.md), sitebase defines two simple content lexicons: `pub.sitebase.content.html` and `pub.sitebase.content.markdown`.
6
7## Content Type Handling in CLI
8
9The CLI only supports editing documents with sitebase content types:
10
11| Content `$type` | `doc edit` | `doc view` | `doc export` |
12|-----------------|------------|------------|--------------|
13| `pub.sitebase.content.markdown` | Supported | Supported | Supported |
14| `pub.sitebase.content.html` | Supported | Supported | Supported |
15| Other (pckt.blog, etc.) | Blocked | Supported (raw display) | Supported (raw content) |
16
17When `doc edit` encounters a non-sitebase content type:
18
19```
20Error: Cannot edit document with content type "blog.pckt.content.block"
21Sitebase only supports editing documents with pub.sitebase.content.* types.
22Use `doc view` to inspect the document.
23```