DocsPress keeps docs in three levels: products, collections and articles. Two more kinds of items, shared articles and links, let one sidebar point to things that live elsewhere.
Products
A product is the top level. Each product has its own home page, its own sidebar and its own search results. Readers move between products with the product switcher at the top of the sidebar. When the site has one product, the switcher shows only that product.
The docs home at /docs/ lists every product.
Collections
A collection groups articles inside a product. In the sidebar a collection is a heading, and its articles are listed under it. The sidebar has two levels only, so a collection never holds another collection.
Articles
An article is one page of help, written in the block editor. Its address follows its place: /docs/product/collection/article/. When you move an article to another collection, its address changes with it.
The order in Docs > All docs is the order in the sidebar, and the order of the Previous and Next links under each article.
Shared articles
A shared article is written once and listed in several products. Use it for a page that is the same everywhere, such as licensing or account settings.
- Editing a shared article changes it in every product.
- In each product, the shared article can have its own title.
- A reader who opens a shared article from a product sees that product’s sidebar, breadcrumbs and search.
To set one up, see Show one article in several products.
Links
A link is a sidebar item that opens an address instead of an article. Use it for a changelog, a GitHub page or a contact form. A link to another site opens in a new tab and shows an arrow icon. Previous and Next skip links.
To add one, see Add a link to the sidebar.
Categories
Docs > Categories groups products on the docs home. Products without a category come first, then each category with its products. Categories do not change the sidebar or article addresses.
Leave a Reply