LuxaDocs — User Guide
A complete walkthrough of LuxaDocs: writing docs, organizing them, and configuring every setting.
1. Core concepts
LuxaDocs adds three things to your site:
- Docs — a custom post type (like Posts, but dedicated to documentation). Write and manage them under LuxaDocs → All Docs / Add New, using the normal WordPress editor.
- Categories — group docs into sections (e.g. “Getting Started”, “API Reference”). Categories can be nested.
- Tags — free-form labels for cross-cutting topics, independent of category structure.
Everything else — the Documentation page, the single doc layout, search, the Table of Contents — is generated automatically from your docs and categories.
2. Writing and organizing docs
Creating a doc
Go to LuxaDocs → Add New. A doc works exactly like a WordPress Post:
- Title and content — write normally. Add a Featured Image if you want a thumbnail on the Documentation page grid.
- Category — assign one or more categories in the sidebar. A doc without a category still works, but won’t appear grouped under any category section.
- Tags — optional, free-form.
- Excerpt — shown as the card summary on the Documentation page listing if set.
- Attachments — see below.
Sections and the Table of Contents
Structure your doc’s content with Heading 2 and Heading 3 blocks (or H2–H6, depending on the “TOC Supported Heading Tag” setting — see §7). LuxaDocs automatically:
- Assigns each heading a unique, URL-safe anchor id.
- Builds a clickable Table of Contents from those headings.
- (Optional) Wraps each top-level H2 section with the signature “postmark” numbered marker.
If you’ve manually set a custom anchor on a heading (e.g. the block editor’s Advanced → HTML Anchor field), LuxaDocs respects it instead of generating its own.
Escaping a shortcode inside a doc
If you want to show a shortcode as literal text in your doc’s content (for example, documenting the shortcode itself) instead of having it run, wrap it in double brackets:
[luxadocs_docs]
This displays as [luxadocs_docs] on the page instead of executing it — the standard WordPress shortcode-escaping syntax.
Attachments
If Attachments is enabled (Settings → Layout → Single Doc → Attachments), an Attachments box appears on the doc edit screen (in the sidebar, alongside Category/Tags). Click Add Attachment to pick one or more files from the Media Library — they’re listed at the bottom of the doc for readers to download.
Reordering docs
Docs support the standard WordPress Menu Order field (in Quick Edit, or via a page-ordering plugin). Set Order Docs By → Menu Order (the default — see §6) to control the Documentation page and category listings by this order.
3. The Documentation page
LuxaDocs automatically creates and maintains a page called “Documentation”, holding your built-in doc listing. You’ll find it under Pages in wp-admin, but you shouldn’t edit its content directly — it exists only to hold the [luxadocs_home] shortcode, and LuxaDocs manages its title and slug for you based on your settings.
This page shows:
- A live search box (if enabled).
- Your categories, each with its doc count and an “Explore More” link.
- A grid/list of your docs.
Its URL follows the LuxaDocs Root Slug setting (docs by default — see §5), and its title follows Documentation Page Title.
4. The single doc page
Each doc gets its own page, combining:
- Breadcrumb (Home → Category → Doc Title).
- Title, last-updated date, and estimated reading time.
- Table of Contents — either a sticky sidebar (3-column layout) or a collapsible block above the content (1-column layout), depending on TOC Position.
- The doc’s content, with postmark section markers (optional).
- Tags, if any.
- A Yes/No “Was this doc helpful?” feedback widget.
- Attachments, if any.
- Previous/Next doc navigation.
- Related Docs — other docs sharing a category.
- A category list.
- A “Powered by LuxaDocs” credit (on by default — see §7 to turn it off).
Every one of these is individually toggleable in Settings → Layout → Single Doc.
5. Settings — General
LuxaDocs → Settings → General
| Setting | What it does |
|---|---|
| Built-in Documentation Page | Master on/off switch for the auto-created “Documentation” page. Turn off if you’d rather build your own listing page using the [luxadocs_docs]/[luxadocs_categories]/[luxadocs_search] shortcodes (see §9). |
| Enable Category Hierarchy Slug | On (default): category archives live at root-slug/category-slug/, and docs live one level deeper at root-slug/category-slug/doc-slug/. Off: falls back to a flat URL structure (using the Custom Category Slug and Single Docs Permalink below) to avoid URL collisions. |
| Documentation Page Title | The <h1> and page title shown on the Documentation page. |
| LuxaDocs Root Slug | The base URL segment for your whole docs section (default docs, i.e. yoursite.com/docs/). Changing this also moves the Documentation page’s own URL to match. |
| Custom Category Slug | Only used when Category Hierarchy Slug is off. Category archives then live at root-slug/this-slug/category-slug/. |
| Custom Tag Slug | The URL segment for tag archives. |
| Single Docs Permalink | Only used when Category Hierarchy Slug is off. Single docs then live at this-slug/doc-slug/. Keep it different from the Custom Category Slug to avoid a URL clash. |
| Content Wrapper Extra Class | Add your active theme’s own content class (e.g. entry-content, prose) so your theme’s own typography CSS (headings, paragraphs, links) applies to LuxaDocs content too. |
Changed your permalink settings? LuxaDocs flushes rewrite rules automatically when you save Settings, so new URLs work immediately — no need to visit Settings → Permalinks yourself.
6. Settings — Layout → Documentation Page
LuxaDocs → Settings → Layout → Documentation Page
General
| Setting | What it does |
|---|---|
| Number Of Columns | Grid columns for the doc cards. |
| Number Of Docs | How many docs to show per page. |
| Doc Count | Show/hide the “N Docs” count next to each category. |
| Count Text / Count Text Singular | The word used after the number — e.g. “Docs” for 5, “Doc” for 1 (grammatically correct singular/plural). |
| Explore More Button / Explore More Button Text | Show/hide, and label, the link to a category’s full archive. |
Search
| Setting | What it does |
|---|---|
| Live Search | Enable AJAX-powered instant results as the visitor types, instead of a full page reload on submit. |
| Minimum Character Limit For Search Result | How many characters before live search starts querying. |
| Search Placeholder / Search Button Text | Text shown in the search box. |
| Search Not Found Text | Message shown when a search returns no results. |
Order By
| Setting | What it does |
|---|---|
| Order Docs By | Menu Order, Title, Date, or Last Modified. |
| Order | Ascending or Descending. |
7. Settings — Layout → Single Doc
LuxaDocs → Settings → Layout → Single Doc
General
| Setting | What it does |
|---|---|
| Single Doc Display Mode | Plugin Template (default) — LuxaDocs’ own dedicated page template; works identically on every theme, but width/columns are controlled by LuxaDocs, not your theme. Theme Template — injects the doc body into your active theme’s own template via the_content(); no theme edits needed, and your theme’s own typography/width apply automatically. If using Theme Template with TOC Position set to “Sidebar”, consider switching TOC Position to “In Content” if your theme’s content column is narrow. |
| Doc Title | Show/hide the <h1> title. |
| Section Postmark Markers | The numbered circle marker before each H2 section — the theme’s signature look. Turn off for plainer headings. |
| Sidebar Category List | Show/hide the category tree in the left rail (Sidebar TOC position only). |
| Print Icon | Show/hide a print button. |
| Tags | Show/hide the doc’s tags. |
| Last Update Time | Show/hide “Last updated on …”. |
| Navigation | Show/hide Previous/Next doc links. |
| Comment | Enable WordPress’ native comments on docs (off by default — LuxaDocs’ own Yes/No feedback widget is the default feedback mechanism, independent of this setting). |
| Show “Powered by LuxaDocs” | Show/hide the credit link. |
| Reaction Prompt Text / Reaction Thanks Text | Text shown before and after a reader clicks Yes/No on the feedback widget. |
| Estimated Reading Time | Show/hide the “N min read” indicator. |
TOC
| Setting | What it does |
|---|---|
| Table of Contents | Master on/off switch. |
| TOC Position | Sidebar (3-column) — search + category tree on the left, a sticky TOC on the right. In Content (1-column) — a single column, TOC shown as a sticky block above the doc; best for narrower theme content areas. |
| TOC Title | Heading text above the TOC list. |
| TOC Hierarchy | Indent sub-headings under their parent heading in the list. |
| TOC List Number | Show numbered list markers. |
| Collapsed by Default (In Content mode) | Whether the “In Content” TOC starts collapsed. Only applies in that position — the sidebar TOC is always fully expanded. |
| TOC Supported Heading Tag | Which heading levels build the TOC (H2/H3 through H2–H6). |
| Anchor Scroll Offset | Pixels of space left above a heading when a TOC link scrolls to it — handy if your theme has a sticky header. |
Breadcrumb
| Setting | What it does |
|---|---|
| Breadcrumb | Show/hide the breadcrumb trail. |
| Enable Breadcrumb Home Text | Show/hide the “Home” link. |
| Breadcrumb Home Text / Breadcrumb Home URL | Its label and destination. |
| Category on Breadcrumb | Include the doc’s category in the trail. |
| Title on Breadcrumb | Include the doc’s own title as the final crumb. |
Email Feedback
| Setting | What it does |
|---|---|
| Enable Email Feedback | When a reader answers the Yes/No feedback widget, email the answer (doc title, Yes/No, and a link) to the address below. |
| Send Feedback To | Destination email address (defaults to your site’s admin email). Also used as the address behind the “Contact support” link shown in the Documentation page / category archive footer. |
Attachments
| Setting | What it does |
|---|---|
| Enable Attachments | Show/hide a doc’s attached files at the bottom of the page. |
Related Docs
| Setting | What it does |
|---|---|
| Enable Related Docs | Show/hide a “Related Docs” block (other docs sharing a category). |
| Number of Related Docs | How many to show. |
| Related Docs Title | Section heading text. |
8. Settings — Customize
LuxaDocs → Settings → Customize
| Setting | What it does |
|---|---|
| Accent Color | Links, buttons, and highlight elements. |
| Background Color | Page background. |
| Text Color | Body text color. |
These apply across the Documentation page, category/tag archives, and single docs.
9. Shortcodes
Use these to place doc content anywhere outside the built-in Documentation page — a custom landing page, a sidebar widget area (via a Shortcode block/widget), or your own hand-built listing.
[luxadocs_docs] — a grid of docs
[luxadocs_docs]
[luxadocs_docs category="getting-started"]
[luxadocs_docs number="6" columns="2"]
| Attribute | Default | Description |
|---|---|---|
category | (none) | Category slug to filter by. Omit to show docs from all categories. |
number | Settings → Number Of Docs | How many docs to show. |
columns | Settings → Number Of Columns | Grid columns. |
[luxadocs_search] — a search box
[luxadocs_search]
No attributes — placeholder text, button label, and live-search behavior all follow Settings → Layout → Documentation Page → Search.
[luxadocs_categories] — a list of categories
[luxadocs_categories]
No attributes — lists every doc category with a link to its archive, and its doc count if Doc Count is enabled in Settings.
[luxadocs_home]also exists, but is internal — it’s what powers the auto-created Documentation page and isn’t meant to be added by hand.
10. Import / Export settings
Go to LuxaDocs → Settings → Import / Export.
- Export Settings — a read-only box showing your current settings as JSON. Select and copy it to back up your configuration or move it to another site.
- Import Settings — paste a previously exported JSON block into the text box and click Import to apply it.
This only affects Settings — it does not import or export your actual Docs/Categories/Tags content.
The Shortcodes tab next to Import/Export is a quick on-screen reference for the shortcodes covered in §9 above.
Questions not answered here? Check the FAQ, or see the Changelog for recent changes.
Was this doc helpful?
Powered by LuxaDocs