DocsPress

Documentation plugin for WordPress

Write your first article

Updated
On this page

An article lives in a collection, and a collection lives in a product. On a new site you create all three in a few minutes.

1. Create a product

A product is the thing you document, such as your plugin, theme or app. Each product gets its own docs home, sidebar and search.

  1. Go to Docs > All docs.
  2. Click Create your first product. If you already have products, click Add new and select New product.
  3. Enter the product name, for example Ghost Kit.
  4. Click Create.

The product is published right away, and its page opens in the manager.

2. Add a collection

A collection is a group of articles. Readers see it as a heading in the sidebar, with its articles under it.

  1. Click Collection at the top of the product.
  2. Enter a name, for example Get started.
  3. Click Create.

3. Add the article

  1. Click New article at the top of the product. A title field opens in the first collection.
  2. Enter the article title and press Enter. The article is saved as a draft.
  3. In the notice that appears, click Edit. The block editor opens.
  4. Write the article with blocks, as you would write a page.
  5. Click Publish.

The article appears on your site at /docs/product/collection/article/, for example /docs/ghost-kit/get-started/installation/.

To add an article to a collection other than the first one, open the collection’s Add menu and select New article.

Return to the manager

When you opened the article from All docs, the back button in the editor’s top left corner takes you to the same product in the manager.

Name the article in the sidebar

A long title can be too wide for the sidebar. In the editor’s sidebar, open DocsPress Options and enter a shorter name in Nav Title. The sidebar shows the short name, and the article keeps its full title.

Next, learn how products, collections and articles work.

Was this page helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *