- Issue created by @brianperry
- Status changed to Active
about 1 year ago 2:36pm 1 November 2023 - πΊπΈUnited States brianperry
This is over the top ambitious, but I'd love to use something like the web containers API https://webcontainers.io/guides/quickstart for interactive examples. It is what Svelte used for their Learn Svelte docs: https://learn.svelte.dev/tutorial/welcome-to-svelte
- πΊπΈUnited States brianperry
I spent some time going through the WebContainers tutorial. Really wild what is possible just within a browser environment - installing node packages, running a server, a fully interactive terminal and live code reload.
I took a quick pass at adapting the tutorial to make a request using the JsonApiClient: https://github.com/backlineint/webcontainers-tutorial Still a lot of work to make that something truly consumable, but think it shows a lot of promise.
As far as what would be next, I think it is trying to come up with a way to include these types of examples in a docs site of some kind. Would it be possible to do this in Docusaurus or Astro Starlight, or would this require us to roll our own somehow.
Also worth pondering if this is still overkill at the end of the day :)
- πΊπΈUnited States brianperry
Given that our examples aren't all that complicated, I wonder if we could just use the different live code components provided by a popular docs project.
Docusaurus: https://docusaurus.io/docs/markdown-features/code-blocks#interactive-cod...
Astro: https://astro-live-code.mattjennin.gs/The Docusaurus one is a little flashier, but it is based on React Live, which it seems would limit ourselves to React examples. That alone might make Astro Live Code a better option - it supports any language that Astro supports.
- Assigned to brianperry
- πΊπΈUnited States brianperry
Seem to be in the docs headspace at the moment, so assigning this one.
I spent some time going through the WebContainers tutorial. Really wild what is possible just within a browser environment - installing node packages, running a server, a fully interactive terminal and live code reload.
Ooh exciting! Would there also be a Drupal install in there? Is that practical?
Also worth pondering if this is still overkill at the end of the day :)
Maybe, but I think it is still worth doing.
Starlight seems like a good option to me!
- πΊπΈUnited States brianperry
> Ooh exciting! Would there also be a Drupal install in there? Is that practical?
Not sure if it is possible. But it likely wouldn't be practical just due to the time it would take to boot.
- πΊπΈUnited States brianperry
Merging to see if we can get the current state of the new docs deployed. Fingers crossed :)
- Issue was unassigned.
- Status changed to Fixed
8 months ago 2:42pm 22 March 2024 - πΊπΈUnited States brianperry
I don't consider them complete, but we have deployed an initial version of these new docs. I am going to mark this issue as fixed, and then create more specific issues for remaining docs issue.
Automatically closed - issue fixed for 2 weeks with no activity.