humanmade / humanmade/wp-pattern-library

Link pattern names to theme pattern partial

Open
#12 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
0
Avg merge
13h 4m
Merged PRs (30d)
6

Description

It would be convenient, and possibly helpful during development, to be able to jump right from the name of the pattern to the relevant file in the repo when browsing a pattern library on GitHub. This should be accomplishable with a relative URL, since the generator action already knows the theme

Image

Hypothetical change,

Markup Before | Markup After
--------- | ------
`mytheme/card-call-to-action` | `[mytheme/card-call-to-action](../../themes/mytheme/patterns/card-call-to-action.php)`

Contributor guide

Open the contributing guide

Research direction

Start by locating the generator action that renders pattern names and inspect how it derives the theme and pattern paths. Update the generated markup so each pattern name links to the corresponding relative PHP partial path shown in the example, then verify the output against the before-and-after markup.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
documentation, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.