This Page is the acceptance surface for the DocsPress theme and all fifteen DocsPress Blocks. Switch Global Style variations and light/dark mode while checking native color, typography, spacing, border, dimensions, interactions, and content controls.
Audience Paths
Choose a starting point
Where are your docs today?
Independent documentation roots can meet readers at the state of their repository.
Colorful Code
name: Sync docson: push: paths: ["docs/**"]steps: - uses: Automattic/docspress@COMMIT_SHA
Markdown in.WordPress out.
- "status": "draft"+ "status": "publish"+ "modified": "2026-07-27T07:40:00Z"
-
Line 3
The published status is the value retained by Copy.
-
Line 4
The modification time comes from the live response.
Code Tabs
npm install docspress
pnpm add docspress
yarn add docspress
bun add docspress
console.log('DocsPress');
<?php echo 'DocsPress';
print('DocsPress')
{ "name": "DocsPress" }
Callouts
Collapsible and open
Readers can hide this longer explanation.
Collapsible and closed
This content begins hidden and remains keyboard accessible.
Flow
-
Template
Choose
fulloremptyfor the starting content. -
Deploy target
Select the host that matches the project environment.
-
Install dependencies
Let the package manager finish, then verify the generated site.
Diagram
Documentation publishing flow
Runnable request lifecycle
API Request / Response
/wp-json/
Accept application/json
{
"name": "DocsPress",
"namespaces": ["wp/v2"]
}/wp-json/wp/v2/pages
Content-Type application/jsonAuthorization Bearer $WP_ACCESS_TOKEN{
"title": "API reference",
"status": "draft"
}
{
"id": 43,
"status": "draft"
}/wp-json/wp/v2/pages/43
Content-Type application/x-www-form-urlencodedtitle=REST+API+Reference
Updated page 43: REST API Reference/wp-json/wp/v2/pages/43
Content-Type application/json{ "status": "publish" }
{ "id": 43, "status": "publish" }/wp-json/wp/v2/pages/43?force=true
Authorization Bearer $WP_ACCESS_TOKEN
Fields / Schema
Publish options
-
sitestring required -
WordPress site domain or numeric site ID.
-
statusenum -
Publication status for synchronized Pages.
-
dryRunboolean -
Preview reconciliation without writing changes.
-
legacyModeboolean deprecated -
Use the pre-block-theme publishing pipeline.
No fields match this filter.
Terminal Session
npm run packageLint passed
Tests passed
Action bundle rebuilt
wp option get docspress_playground_runtime --format=jsonLive Code Playground
Result
The generated Pages match the repository tree.
WordPress already matches the current commit.
Three new Pages are waiting for editorial approval.
The access token cannot create Pages on this site.
File Tree
-
.claude/-
skills/
-
-
docs/-
index.md -
publish-existing-docs/ -
create-docs-with-ai/ -
reference/-
kitchen-sink.md
-
-
-
plugins/-
docspress-blocks/
-
-
theme/ -
package.json
-
index.md -
guides/-
continuous-sync.md
-
-
reference/-
gutenberg-blocks/-
index.md -
api-request.md -
fields.md
-
-
-
troubleshooting.md
Prompt
Interactive Troubleshooter
Choose the right publishing workflow
Do you already have Markdown documentation?
Is the repository connected to WordPress?
Connect the publishing target
Run the DocsPress installer, add the WordPress access token, and verify the repository connection before publishing.
Publish the documentation
Run the sync command, review the proposed changes, and verify the rendered documentation on WordPress.
Generate a documentation starter
Generate a small documentation tree from the source, then review every example against the implementation before publishing.
This answer needs a valid destination.
Edit the block and connect this answer to another question or outcome.
Every DocsPress documentation block, semantic variant, and meaningful option is represented on this Page. Hero and Audience Paths are the design-focused landing blocks.
Playground runtime
This inventory is generated from the running WordPress installation.
| Component | Type | Version | Status |
|---|---|---|---|
| WordPress | Core | 7.0.2 | Running |
| DocsPress | Theme | 0.9.17 | Active |
| Akismet Anti-spam: Spam Protection | Plugin | 5.7 | Active |
| DocsPress Blocks | Plugin | 0.9.12 | Active |
| Jetpack | Plugin | 16.1-a.3 | Active |