Include Schema Documentation #43
Comments
+1 for your implementation proposal of 4 for now. Whatever we do, the resolution will have to somehow end up into the VCL (determine if template selector or content file name). When we |
DO you have a preference for 2 or 3? 2 could look like this: strains:
- name: default
selectors:
- nav
- video |
oh sorry if this was not clear, I think it should be automatic, i.e. no extra config! You can compute this list based on the list of templates in the project folder and fallback to content if the selector is not part of this list. |
Ah, inspecting the available templates is a good idea. We just have to find a way to carry that information forward. |
That was my initial proposal: generate a list in |
The schema documentation right now links to the raw files on GitHub instead of being served through Helix, because the
foo.schema.html
is interpreted as a call toschema_html.htl
, i.e.schema
is the selector.I've been thinking about approaches to solving this including:
As I think configurations (2) and fallbacks (3) complicate things, the most promising options seem to be (1) or (4). One way to implement (4):
schema_html.htl
andschema_html.pre.js
pre.js
add abefore.fetch
extension point that replacesfoo.md
withfoo.schema.md
The text was updated successfully, but these errors were encountered: