Created on 18 October 2023, about 1 year ago
Updated 9 April 2024, 8 months ago

Problem/Motivation

For 1.x we should have a documentation strategy beyond publishing our API docs.

How do we want to handle supplemental documentation? Docusaurus? Typedoc plugins? Some use of drupal.org documentation?

Steps to reproduce

Proposed resolution

Possible Drupal.org documentation:
* Examples of common features (link to API docs where possible?)
* Show both TS and JS examples?
* With framework examples - with Next.js, with Astro, etc. Live sandboxes could be useful here.

Other tasks:
* Update Decoupled Router Client readme

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States brianperry

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @brianperry
  • Status changed to Active about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States brianperry
  • πŸ‡ΊπŸ‡ΈUnited States brianperry
  • πŸ‡ΊπŸ‡ΈUnited States brianperry
  • πŸ‡ΊπŸ‡Έ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.

  • Merge request !76Documentation β†’ (Merged) created by brianperry
  • Pipeline finished with Success
    9 months ago
    Total: 191s
    #105070
  • Pipeline finished with Failed
    9 months ago
    Total: 171s
    #105260
  • Pipeline finished with Failed
    9 months ago
    Total: 171s
    #105274
  • Pipeline finished with Failed
    9 months ago
    Total: 170s
    #105387
  • Pipeline finished with Failed
    9 months ago
    Total: 199s
    #106083
  • Pipeline finished with Failed
    9 months ago
    Total: 229s
    #106334
  • Pipeline finished with Failed
    9 months ago
    Total: 170s
    #107532
  • Pipeline finished with Failed
    9 months ago
    Total: 200s
    #108553
  • Pipeline finished with Failed
    9 months ago
    Total: 232s
    #109093
  • Pipeline finished with Failed
    9 months ago
    Total: 170s
    #109302
  • Pipeline finished with Failed
    9 months ago
    Total: 169s
    #109661
  • Pipeline finished with Failed
    9 months ago
    Total: 169s
    #110679
  • Pipeline finished with Failed
    9 months ago
    Total: 170s
    #111967
  • Pipeline finished with Failed
    9 months ago
    Total: 80s
    #112291
  • Pipeline finished with Failed
    9 months ago
    Total: 169s
    #114249
  • Pipeline finished with Failed
    9 months ago
    Total: 260s
    #115603
  • Pipeline finished with Failed
    8 months ago
    Total: 259s
    #120872
  • Pipeline finished with Failed
    8 months ago
    Total: 294s
    #121656
  • Pipeline finished with Failed
    8 months ago
    Total: 260s
    #121840
  • Pipeline finished with Success
    8 months ago
    Total: 220s
    #123656
  • Pipeline finished with Success
    8 months ago
    Total: 222s
    #123669
  • Pipeline finished with Success
    8 months ago
    Total: 222s
    #123675
  • πŸ‡ΊπŸ‡ΈUnited States brianperry

    Merging to see if we can get the current state of the new docs deployed. Fingers crossed :)

  • Merge request !84Add base path β†’ (Merged) created by brianperry
  • Pipeline finished with Success
    8 months ago
    Total: 241s
    #123858
  • Pipeline finished with Success
    8 months ago
    Total: 220s
    #123860
  • Issue was unassigned.
  • Status changed to Fixed 8 months ago
  • πŸ‡ΊπŸ‡Έ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.

  • Merge request !87Docs: Get resource updates β†’ (Merged) created by brianperry
  • Pipeline finished with Success
    8 months ago
    Total: 260s
    #129615
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024