thinkshout / thinkwp-starter-theme

Forked for ThinkShout from Timber: a dead-simple theme that you can build anything from
MIT License
1 stars 0 forks source link

Fully automate style guide page #41

Open JulesKhong opened 9 months ago

JulesKhong commented 9 months ago

Description

The blocks are automated onto the page. This task is to look into the theme views/_styleguide_sections/foundation directory, and pass it to the style guide so the Foundation section isn't using an array of file names. Then do the same for views/_styleguide_sections/components. This is done when any file in these directories has its example template displaying in these sections, and a readable file name is added to the styleguide nav with a same page link to each section.

Existing code reference: Foundations in the nav

Foundation example blocks

Components in the nav

Component example blocks

Dev