Skip to content

style-guide : Publish a style guide

This command will publish our style guide and its child pages so you can review your styling of all common HTML.

  • /style-guide/kitchen-sink
    Popular HTML elements
  • /style-guide/blocks
    A curated selection of page builder blocks
  • /style-guide/patterns
    All block patterns registered in your theme

All pages are made private, so they are only visible to website editors and will not be presented to search engines.

WARNING

Existing content at any of the above paths will be overwritten.

Running the command

By default it will ask for confirmation before overwriting each page but adding --force will instruct the command to automatically overwrite the pages without asking.

bash
wp eighteen73 style-guide

# Suppress overwrite warnings
wp eighteen73 style-guide --force

TIP

If you have an alias set up you can use this to publish content to a live website as follows:

bash
wp @production eighteen73 style-guide