feat(daffio, docs): enable rendering of example code output in design docs#4274
feat(daffio, docs): enable rendering of example code output in design docs#4274
Conversation
40580f1 to
f9b8f3e
Compare
apps/daffio/src/app/docs/components/example-viewer/example-components-map.ts
Outdated
Show resolved
Hide resolved
f9b8f3e to
706055a
Compare
ac0dd61 to
9b093a1
Compare
|
TODO:
|
1a4d31e to
14f60d5
Compare
14f60d5 to
2e35d77
Compare
apps/daffio/src/app/docs/design/containers/color-palettes/service/palettes.service.ts
Outdated
Show resolved
Hide resolved
Does this refer to SSR? |
|
There's still a slight render issue of the example previews in SSR but I don't think that should block this PR. I think we should piece this up and merge it. |
|
@griest024 the color palette example is not visible on |
@xelaint good catch, fixed |
|
@griest024 Is there a way to prevent these from being displayed? |
There seem to be 3 options:
|
Can be just remove the switch and case here to just display MAP? |
|
@xelaint yes, that's basically option 1. If you're sure that we'll only ever want to render maps, feel free to go ahead and make that change |
I hate that `async` always returns `null` initially
AI was used to generate some of this code
56fb373 to
92e3d20
Compare
|
@griest024 Done. Can you review? Should be good to merge if all looks good. |
PR Checklist
PR Type
Current behavior
We have no way to render code output inside of markdown content in daff.io.
Fixes: #2903, fixes: #2905
New behavior
We can now render design examples (as well as other examples) in daff.io
Breaking change?
Additional context
This supersedes