Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A a11yproject.com
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The A11Y Project
  • a11yproject.com
  • Merge requests
  • !1268

Restructure checklist data

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged EJ Mason requested to merge feat/restructure-checklist-data into main May 06, 2021
  • Overview 9
  • Commits 9
  • Pipelines 0
  • Changes 4

Unblocks some work in #940

Summary

This PR restructures checklist.json data so that each checklist category includes its own preface commentary. This allows us to loop over the checklist data to render each category in the list, resulting in a dryer template file.

Also:

  • includes_checklist.njk has been renamed to _includes/checklist__task.njk.

Before

{
  "content": [
    {
      "title": "Use plain language and avoid figures of speech, idioms, and complicated metaphors.",
      "checkboxId": "use-plain-language",
      "wcag": "3.1.5 Reading Level",
      "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-supplements.html",
      "description": "Write content at <a href='https://datayze.com/readability-analyzer.php'>an 8th grade reading level</a>."
    },
  ]
}

After

{
  "content": {
    "preface": "Content is the most important part of your site.",
    "tasks": [
      {
        "title": "Use plain language and avoid figures of speech, idioms, and complicated metaphors.",
        "checkboxId": "use-plain-language",
        "wcag": "3.1.5 Reading Level",
        "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-supplements.html",
        "description": "Write content at <a href='https://datayze.com/readability-analyzer.php'>an 8th grade reading level</a>."
      },
    ]
  }
}
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feat/restructure-checklist-data