Skip to content

Documentation/Tutorial issues/enhancements #6185

@rosswintle

Description

@rosswintle

I just chatted to Tammie at WordCamp London where she encouraged me to open an issue.

Overview of issue

The docs seem incomplete and confusing for developers coming to the handbook to work out how to create a custom block for the first time.

Background

I confess that I've never actually created a block. Rather then use one of the existing scaffolds/boilerplates I decided I'd try starting by writing a simple plugin that used ES5 JS to create a simple block.

I thought I'd find the information I needed to do this in the Handbook. But I quickly ran into dead ends and realised that the handbook does not currently help someone do this (perhaps this is a not what the handbook is intended for?)

(Some) specific issues

  1. I see no reference to or documentation of the enqueue_block_editor_assets and enqueue_block_assets hooks
  2. This page sells itself as a tutorial, but it really isn't
  3. The page linked above links to the Extensibility page which then links to the Tutorial, sending you round in a loop.
  4. The footer next/prev (or possibly the sidebar nav) is broken in some places (e.g. at the bottom of this page, "Templates" does not exist in the sidebar nav on the left
  5. There seems to be a PHP register_block_type function that is shown on this page but that doesn't seem to be in the block API (because it's probably not part of the block API as such) or in the reference section

Questions/what next?

I decided to open this rather than to dive into creating PRs because I'm not sure just going and adding/changing a load of stuff at this point is the right thing to do.

Questions then:

  1. Is this handbook under review or being updated by someone else at the point? Does someone else have responsibility for updating the handbook? Or if I made a bunch of PRs are they likely to be accepted?
  2. Is it worth doing this NOW or should I wait until the APIs are settled. If I updated the "tutorial" now would it soon be out of date?
  3. Is the Handbook even the right place for a tutorial, or are you happy with the community writing tutorials on their own sites and linking the handbook off to them?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions