Skip to content

Improve docs tooling (manifest parser and linter) #12426

Closed

Description

@chrisvanpatten

There are a lot of ways we can improve docs tooling to make the docs team more efficient and make our docs better.

Manifest parser

We need a new docs manifest parser/generator! Here's what I'd like to see:

  1. It should use toc.json as the source of truth, with manifest.json being built as a totally separate/machine-generated artefact.
  2. In turn, that means that manifest.json should pull page titles from the markdown, rather than needing to set it in multiple places
  3. It should be possible to generate documentation (e.g. the data docs) separately from generating the manifest, and this should mean we don't need to generate an intermediate root-manifest.json anymore
  4. toc.json should be extended to provide a wildcard option, so auto-generated docs don't need to be explicitly listed inside the file, and can be included in the correct place inside the handbook outline

Linting

I'd also like to propose the addition of a markdown linter. This is partly to aid the parser, for example to ensure that all docs have an h1 title, but also to improve the consistency of our markdown formatting (consistent heading syntax, line breaks, wrapping, etc.). Right now it varies pretty wildly and having a consistent format would be super valuable.

markdownlint and remark-link seem like the leading candidates. Does anyone have an opinion or experience on either of these?

To be clear I don't want to lint grammar/spelling, just the markdown syntax.

Activity

  1. added
    [Type] Enhancement
    [Type] Developer Documentation
    [Type] Build Tooling
    [Type] Code Quality
    on Nov 29, 2018
  2. changed the title [-]New docs tooling[/-] [+]Improve docs tooling (manifest parser and linter)[/+] on Nov 29, 2018
  3. chrisvanpatten commented on Dec 20, 2018

    @chrisvanpatten
    ContributorAuthor

    A lot of this has been done. Right now the two missing pieces are wildcard placeholders inside toc.json, and markdown linting.

    Pending any strong opinions I think markdownlint and remark-lint. Both seem powerful and reasonably well-maintained. Anyone see anything in either package that makes it the better choice?

  4. ajitbohra commented on Dec 20, 2018

    @ajitbohra
    Member

    remark-lint looks good to me with all the plugins to generate toc, process links

  5. chrisvanpatten commented on Dec 21, 2018

    @chrisvanpatten
    ContributorAuthor

    Remark definitely seems a little more pluggable and customisable. I might work on a POC over the weekend 👍

  6. gziolo commented on Dec 22, 2018

    @gziolo
    Member

    Nice, that would be awesome to have it included in the workflow. Lint all the things :)

  7. added a commit that references this issue on Jan 24, 2020
    971dd16
  8. added
    [Status] In Progress
    on Jan 24, 2020
  9. added 2 commits that reference this issue on Jan 27, 2020
    fdc0820
    36fd62b
  10. added a commit that references this issue on Jan 30, 2020
    ea705dd
  11. added a commit that references this issue on Feb 10, 2020
    0a3009e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Status] In Progress[Type] Build Tooling[Type] Code Quality[Type] Developer Documentation[Type] Enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions