@blockbite/docs 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +32 -0
- package/public/docs/screenshots/desi.png +0 -0
- package/public/docs/screenshots/design-framework/design-tokens/colors.png +0 -0
- package/public/docs/screenshots/design-framework/design-tokens/fonts-sizes-1.png +0 -0
- package/public/docs/screenshots/design-framework/design-tokens/fonts-sizes.png +0 -0
- package/public/docs/screenshots/design-framework/design-tokens/headings.png +0 -0
- package/public/docs/screenshots/design-framework/design-tokens.png +0 -0
- package/public/docs/screenshots/mistral/api-keys.png +0 -0
- package/public/docs/screenshots/mistral/create-key-popup.png +0 -0
- package/public/docs/screenshots/mistral/create-key.png +0 -0
- package/public/docs/screenshots/nextjs/rest-api-with-inner-html.png +0 -0
- package/public/docs/screenshots/settings/ai/add-api-key.png +0 -0
- package/public/docs/screenshots/settings/ai/dynamic-template-prompt-example.png +0 -0
- package/public/docs/screenshots/settings/ai/load-defaults-button.png +0 -0
- package/public/docs/screenshots/settings/assets-and-tailwind.png +0 -0
- package/public/docs/screenshots/settings/cdn-libraries-picker-open.png +0 -0
- package/public/docs/screenshots/settings/cdn-libraries-picker.png +0 -0
- package/public/docs/screenshots/settings/nextjs.png +0 -0
- package/public/docs/screenshots/settings/optimze-and-security.png +0 -0
- package/public/docs/screenshots/settings/projects.png +0 -0
- package/public/docs/screenshots/settings/user-roles.png +0 -0
- package/public/docs/screenshots/sidebar/toggle-blockbite-options.png +0 -0
- package/public/docs/screenshots/tailwind/ui-editor/responsive-classes.png +0 -0
- package/public/docs/screenshots/tailwind/ui-editor/search-autocomplete.png +0 -0
- package/public/docs/screenshots/tailwind/ui-editor/start.png +0 -0
- package/public/docs/screenshots/tailwind/ui-editor/tailwind-class-input.png +0 -0
- package/src/01-introduction/01-installation.mdx +57 -0
- package/src/01-introduction/02-getting-started.mdx +45 -0
- package/src/01-introduction/03-contributing.mdx +9 -0
- package/src/01-introduction/04-quick-learn.mdx +37 -0
- package/src/02-core-concepts/01-introduction.mdx +17 -0
- package/src/02-core-concepts/02-tailwind-css.mdx +51 -0
- package/src/02-core-concepts/03-design-panel-basics.mdx +22 -0
- package/src/02-core-concepts/04-code-editor-livepreview.mdx +22 -0
- package/src/02-core-concepts/05-deprecating-presets.mdx +22 -0
- package/src/02-core-concepts/06-dynamic-templates.mdx +21 -0
- package/src/02-core-concepts/07-fills.mdx +21 -0
- package/src/02-core-concepts/08-cdn-libraries.mdx +36 -0
- package/src/03-design-framework/01-introduction.mdx +17 -0
- package/src/03-design-framework/02-design-tokens.mdx +35 -0
- package/src/03-design-framework/03-schema-v1.mdx +18 -0
- package/src/03-design-framework/04-svgs.mdx +16 -0
- package/src/03-design-framework/05-bite-components.mdx +18 -0
- package/src/03-design-framework/06-block-patterns.mdx +16 -0
- package/src/03-design-framework/07-namespaces.mdx +17 -0
- package/src/04-ai-studio/01-introduction.mdx +33 -0
- package/src/04-ai-studio/02-mistral.mdx +38 -0
- package/src/04-ai-studio/03-openrouter.mdx +15 -0
- package/src/04-ai-studio/04-prompting.mdx +19 -0
- package/src/04-ai-studio/05-examples.mdx +20 -0
- package/src/05-dynamic-content/01-creating-dynamic-fields.mdx +15 -0
- package/src/05-dynamic-content/02-dynamic-templates.mdx +18 -0
- package/src/05-dynamic-content/03-the-dynamic-template-block.mdx +16 -0
- package/src/06-atom-blocks/01-button.mdx +13 -0
- package/src/06-atom-blocks/02-group.mdx +11 -0
- package/src/06-atom-blocks/03-frame.mdx +11 -0
- package/src/06-atom-blocks/04-icon.mdx +11 -0
- package/src/06-atom-blocks/05-shape.mdx +11 -0
- package/src/06-atom-blocks/06-richtext-auto.mdx +11 -0
- package/src/06-atom-blocks/07-richtext-group.mdx +11 -0
- package/src/07-addons/01-figma.mdx +11 -0
- package/src/07-addons/02-responsive-compiler.mdx +15 -0
- package/src/08-experimental/01-purge-optimize.mdx +26 -0
- package/src/08-experimental/02-nextjs.mdx +26 -0
- package/src/09-more/01-usefull-links.mdx +13 -0
- package/src/10-advanced-guides/01-creating-bites.mdx +9 -0
- package/src/10-advanced-guides/02-platform-sync.mdx +27 -0
- package/src/11-cli/01-command-reference.mdx +144 -0
- package/src/doc-home.mdx +73 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Mistral"
|
|
3
|
+
description: "Using Mistral models inside AI Studio flows."
|
|
4
|
+
tags: ["ai", "mistral"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Mistral
|
|
8
|
+
|
|
9
|
+
Mistral can be used for fast generation tasks and iterative content shaping.
|
|
10
|
+
|
|
11
|
+
Creating a Mistral key takes a few steps in the Mistral console, then you paste that key into Blockbite AI settings. Follow this sequence once per environment.
|
|
12
|
+
|
|
13
|
+
## 1. Open API Keys in Mistral AI Studio
|
|
14
|
+
|
|
15
|
+
Go to AI Studio and open the `API Keys` area from the left navigation.
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
## 2. Create a new key
|
|
20
|
+
|
|
21
|
+
From the API keys page, click `Create new key`, then set a key name and optional expiration.
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+

|
|
25
|
+
|
|
26
|
+
- `Key name`: Friendly label to identify the key usage.
|
|
27
|
+
- `Expiration`: Optional auto-expiry date for key rotation.
|
|
28
|
+
- `Create new key`: Generates the key value (copy it immediately).
|
|
29
|
+
|
|
30
|
+
## 3. Connect the key in Blockbite
|
|
31
|
+
|
|
32
|
+
Paste the generated key into `Blockbite Settings > AI > API Keys`, then click `Connect` to enable Mistral in integrations.
|
|
33
|
+
|
|
34
|
+
## Tips
|
|
35
|
+
|
|
36
|
+
- Keep prompts scoped to one transformation per request.
|
|
37
|
+
- Provide expected output format explicitly.
|
|
38
|
+
- Validate generated structure before applying to production blocks.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "OpenRouter"
|
|
3
|
+
description: "Configure and use OpenRouter as an AI provider in AI Studio."
|
|
4
|
+
tags: ["ai", "openrouter"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# OpenRouter
|
|
8
|
+
|
|
9
|
+
OpenRouter provides access to multiple model backends through one interface.
|
|
10
|
+
|
|
11
|
+
## Good practice
|
|
12
|
+
|
|
13
|
+
- Select model based on latency, cost, and task complexity.
|
|
14
|
+
- Keep provider settings versioned per environment.
|
|
15
|
+
- Add fallback model strategy for critical workflows.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Prompting"
|
|
3
|
+
description: "Prompt structures that produce reliable Blockbite outputs."
|
|
4
|
+
tags: ["ai", "prompting"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Prompting
|
|
8
|
+
|
|
9
|
+
Reliable prompts are explicit, constrained, and testable.
|
|
10
|
+
|
|
11
|
+
## Template
|
|
12
|
+
|
|
13
|
+
1. Task objective
|
|
14
|
+
2. Input context
|
|
15
|
+
3. Output format
|
|
16
|
+
4. Constraints
|
|
17
|
+
5. Acceptance criteria
|
|
18
|
+
|
|
19
|
+
Prefer short prompts with strict output schemas over long narrative prompts.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Examples"
|
|
3
|
+
description: "Reference prompt examples for common AI Studio tasks."
|
|
4
|
+
tags: ["ai", "examples"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Examples
|
|
8
|
+
|
|
9
|
+
## Dynamic template prompt example (UI)
|
|
10
|
+
|
|
11
|
+
This example shows how the AI template editor is configured for a dynamic-template flow. The active tab defines the output stack, and the system template locks the generation constraints.
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
- `Liquid / Alpine / HTML / TailwindCss`: Sets the expected output stack.
|
|
16
|
+
- `JavaScript`: Alternative mode when JS output is required.
|
|
17
|
+
- `PLATFORM`: Chooses the provider (shown: `Mistral`).
|
|
18
|
+
- `MODEL`: Chooses the model variant (shown: `ministral-8b-2512`).
|
|
19
|
+
- `SYSTEM TEMPLATE`: Instruction block that defines hard constraints and output rules.
|
|
20
|
+
- `Update`: Saves the edited template prompt.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Creating Dynamic Fields"
|
|
3
|
+
description: "Define dynamic fields for reusable, data-driven blocks."
|
|
4
|
+
tags: ["dynamic", "fields"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Creating Dynamic Fields
|
|
8
|
+
|
|
9
|
+
Dynamic fields map external or runtime values into block content.
|
|
10
|
+
|
|
11
|
+
## Field design tips
|
|
12
|
+
|
|
13
|
+
- Use stable field keys.
|
|
14
|
+
- Define type and fallback for each field.
|
|
15
|
+
- Keep field names semantic (`heroTitle`, `ctaUrl`).
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Dynamic Templates"
|
|
3
|
+
description: "Template patterns built on top of dynamic fields."
|
|
4
|
+
tags: ["dynamic", "templates"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Dynamic Templates
|
|
8
|
+
|
|
9
|
+
Dynamic templates combine fixed layout with field-driven content.
|
|
10
|
+
|
|
11
|
+
## Build sequence
|
|
12
|
+
|
|
13
|
+
1. Create fields.
|
|
14
|
+
2. Bind fields to template nodes.
|
|
15
|
+
3. Define defaults and empty states.
|
|
16
|
+
4. Validate in the template block preview.
|
|
17
|
+
|
|
18
|
+
See also: [Core Concepts: Dynamic Templates](/docs/core-concepts/dynamic-templates)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Dynamic Template Block"
|
|
3
|
+
description: "Use Dynamic Template Block in real page compositions."
|
|
4
|
+
tags: ["dynamic", "block"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Dynamic Template Block
|
|
8
|
+
|
|
9
|
+
Dynamic Template Block is the runtime wrapper that renders template + data.
|
|
10
|
+
|
|
11
|
+
## Runtime checklist
|
|
12
|
+
|
|
13
|
+
- Required fields are present.
|
|
14
|
+
- Fallbacks are configured.
|
|
15
|
+
- Empty states are user-safe.
|
|
16
|
+
- Render output matches schema constraints.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Button"
|
|
3
|
+
description: "Atomic button block usage and variant guidance."
|
|
4
|
+
tags: ["atom", "button"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Button
|
|
8
|
+
|
|
9
|
+
Use `button` for primary and secondary actions.
|
|
10
|
+
|
|
11
|
+
- Keep action text explicit.
|
|
12
|
+
- Support disabled/loading states.
|
|
13
|
+
- Prefer token-based variants.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Group"
|
|
3
|
+
description: "Group block for layout and hierarchy composition."
|
|
4
|
+
tags: ["atom", "group"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Group
|
|
8
|
+
|
|
9
|
+
`group` clusters related atoms into one layout container.
|
|
10
|
+
|
|
11
|
+
Use it to control alignment, spacing, and shared semantics.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Frame"
|
|
3
|
+
description: "Frame block as a structural wrapper for regions and sections."
|
|
4
|
+
tags: ["atom", "frame"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Frame
|
|
8
|
+
|
|
9
|
+
`frame` defines structural boundaries for content areas.
|
|
10
|
+
|
|
11
|
+
Use frames for section-level layout, visual grouping, and responsive bounds.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Shape"
|
|
3
|
+
description: "Use shape atoms for decorative and structural geometry."
|
|
4
|
+
tags: ["atom", "shape"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Shape
|
|
8
|
+
|
|
9
|
+
`shape` supports basic geometric elements for decoration or layout scaffolding.
|
|
10
|
+
|
|
11
|
+
Prefer reusable shape tokens over one-off custom vectors.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Richtext Auto"
|
|
3
|
+
description: "Auto-formatting rich text atom with safe defaults."
|
|
4
|
+
tags: ["atom", "richtext"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Richtext Auto
|
|
8
|
+
|
|
9
|
+
`richtext auto` adapts content formatting using configured typography tokens.
|
|
10
|
+
|
|
11
|
+
Use for authored content where formatting should remain controlled.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Richtext Group"
|
|
3
|
+
description: "Compose multiple rich text nodes as one reusable text unit."
|
|
4
|
+
tags: ["atom", "richtext"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Richtext Group
|
|
8
|
+
|
|
9
|
+
`richtext group` combines heading/body/meta text into one structured unit.
|
|
10
|
+
|
|
11
|
+
Define clear field bindings for each child text node.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Figma"
|
|
3
|
+
description: "Figma addon integration and synchronization basics."
|
|
4
|
+
tags: ["addons", "figma"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Figma
|
|
8
|
+
|
|
9
|
+
The Figma addon connects design assets and structure into Blockbite workflows.
|
|
10
|
+
|
|
11
|
+
Use it to reduce manual translation between design and implementation.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Responsive Compiler"
|
|
3
|
+
description: "Compile responsive behavior from design intent to block output."
|
|
4
|
+
tags: ["addons", "responsive"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Responsive Compiler
|
|
8
|
+
|
|
9
|
+
Responsive Compiler converts breakpoint intent into consistent responsive rules.
|
|
10
|
+
|
|
11
|
+
## Validation points
|
|
12
|
+
|
|
13
|
+
- Breakpoint coverage is complete.
|
|
14
|
+
- Layout shifts are intentional.
|
|
15
|
+
- Text and media remain readable at all sizes.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Purge Optimize"
|
|
3
|
+
description: "Experimental optimization flow for reducing output size."
|
|
4
|
+
tags: ["experimental", "optimize"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Purge Optimize
|
|
8
|
+
|
|
9
|
+
`purge optimize` is experimental and may change without notice.
|
|
10
|
+
|
|
11
|
+
Use it to reduce generated output by removing unused styles and fragments.
|
|
12
|
+
|
|
13
|
+
Validate thoroughly before production rollout.
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
## Controls in Optimization & Security
|
|
18
|
+
|
|
19
|
+
This tab combines build optimization and runtime safety toggles. Use it carefully, especially when enabling less restrictive template rendering.
|
|
20
|
+
|
|
21
|
+
- `Minify Js`: Minifies exported JavaScript files.
|
|
22
|
+
- `Minify Css`: Minifies exported CSS files.
|
|
23
|
+
- `Hide default pattern categories`: Unregisters default WordPress pattern categories.
|
|
24
|
+
- `Allow unfiltered dynamic templates`: Bypasses HTML sanitization for dynamic templates (recommended only for trusted authors).
|
|
25
|
+
- Purge warning panel: Highlights backup requirements and risk before purge operations.
|
|
26
|
+
- `I have backed up my database and uploads/blockbite folder`: Explicit confirmation toggle before purge-related actions.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Nextjs"
|
|
3
|
+
description: "Experimental Next.js integration notes."
|
|
4
|
+
tags: ["experimental", "nextjs"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Nextjs
|
|
8
|
+
|
|
9
|
+
This integration path is experimental and focused on exposing Blockbite data to external Next.js applications. The settings below control the REST endpoints used by your frontend.
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
## Controls in the NextJs tab
|
|
14
|
+
|
|
15
|
+
- `Enable Next.js REST routes`: Turns the Next.js endpoint set on or off.
|
|
16
|
+
- `NEXT HOME ENDPOINT`: Base endpoint for homepage content.
|
|
17
|
+
- `NEXT ITEM ENDPOINT`: Fetch a single page/post by slug and type.
|
|
18
|
+
- `NEXT ITEMS ENDPOINT`: Fetch a collection by content type.
|
|
19
|
+
- `NEXT SEARCH ENDPOINT`: Search endpoint with `query` and `limit` parameters.
|
|
20
|
+
- `NEXT CONFIG ENDPOINT`: Returns integration/configuration data for the Next.js consumer.
|
|
21
|
+
|
|
22
|
+
## API response example
|
|
23
|
+
|
|
24
|
+
The response contains page metadata and an array of Blockbite blocks. Each block can include `blockName`, `id`, and `innerHTML`, which you can render in your Next.js app.
|
|
25
|
+
|
|
26
|
+

|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Usefull Links"
|
|
3
|
+
description: "Handy links for platform docs and integrations."
|
|
4
|
+
tags: ["links", "resources"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Usefull Links
|
|
8
|
+
|
|
9
|
+
- [Tailwind CSS Documentation](https://tailwindcss.com/docs)
|
|
10
|
+
- [Next.js Documentation](https://nextjs.org/docs)
|
|
11
|
+
- [MDN Web Docs](https://developer.mozilla.org/)
|
|
12
|
+
- [OpenRouter Docs](https://openrouter.ai/docs)
|
|
13
|
+
- [Mistral Documentation](https://docs.mistral.ai/)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Platform Sync"
|
|
3
|
+
description: "Connect your project and export it to the Blockbite platform."
|
|
4
|
+
tags: ["platform", "sync", "projects"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Platform Sync
|
|
8
|
+
|
|
9
|
+
Platform Sync links your WordPress installation to your Blockbite account so you can push project updates. Configure this once per site/environment.
|
|
10
|
+
|
|
11
|
+
## Project setup tab
|
|
12
|
+
|
|
13
|
+
Open `Blockbite Settings > Projects` and connect your project.
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
- `PROJECT TOKEN`: Secret token from your Blockbite account.
|
|
18
|
+
- Visibility icon in token field: Show or hide the token while editing.
|
|
19
|
+
- `Connect`: Validates and stores the project connection.
|
|
20
|
+
- `Download figma media on page save`: Downloads referenced Figma assets into the WordPress media library during save.
|
|
21
|
+
|
|
22
|
+
## Export to platform
|
|
23
|
+
|
|
24
|
+
After connecting, use export to push the project to Blockbite.
|
|
25
|
+
|
|
26
|
+
- `Export Project`: Sends your current project to the Blockbite platform.
|
|
27
|
+
- Export notice: Dynamic content sources are not exported.
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "CLI Commands"
|
|
3
|
+
description: "WP-CLI command reference for using the Blockbite plugin."
|
|
4
|
+
tags: ["cli", "wp-cli", "plugin"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# CLI Commands
|
|
8
|
+
|
|
9
|
+
This page lists the plugin usage commands for Blockbite via WP-CLI.
|
|
10
|
+
|
|
11
|
+
## Base command aliases
|
|
12
|
+
|
|
13
|
+
Both prefixes are supported:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
wp bb ...
|
|
17
|
+
wp blockbite ...
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## All registered command roots
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
wp bb nodes
|
|
24
|
+
wp bb compile
|
|
25
|
+
wp bb changes
|
|
26
|
+
wp bb dev <on|off|status|watch>
|
|
27
|
+
wp bb cdn <list|add|remove|set|clear>
|
|
28
|
+
wp blockbite migrate-namespaces
|
|
29
|
+
wp blockbite figma nodes
|
|
30
|
+
wp blockbite compiler
|
|
31
|
+
wp blockbite changes
|
|
32
|
+
wp blockbite dev <on|off|status|watch>
|
|
33
|
+
wp blockbite cdn <list|add|remove|set|clear>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Examples:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
wp bb nodes --all
|
|
40
|
+
wp blockbite figma nodes --all
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Nodes sync commands
|
|
44
|
+
|
|
45
|
+
Main command:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
wp bb nodes --all
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Namespace-scoped sync:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
wp bb nodes --namespaces=[clients,services]
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Create-only bootstrap mode:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
wp bb nodes --namespaces=[clients,services] --create
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Sync with dynamic fields:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
wp bb nodes --namespaces=[clients,services] --fields
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Force rebuild fields (requires `--fields`):
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
wp bb nodes --namespaces=[clients,services] --fields --fields-force
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Sync bite patterns:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
wp bb nodes --namespaces=[clients,services] --bite-patterns
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Sync fields + bite patterns:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
wp bb nodes --namespaces=[clients,services] --fields --bite-patterns
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Changes commands
|
|
88
|
+
|
|
89
|
+
Generate JSON changesets between exports:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
wp bb changes
|
|
93
|
+
wp bb changes --pull=false
|
|
94
|
+
wp bb changes --from=20260220-211333 --to=20260221-082527
|
|
95
|
+
wp bb changes --time=20260221-082527
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Frontend dev mode commands
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
wp bb dev on
|
|
102
|
+
wp bb dev status
|
|
103
|
+
wp bb dev watch
|
|
104
|
+
wp bb dev watch --interval=500
|
|
105
|
+
wp bb dev watch --once
|
|
106
|
+
wp bb dev off
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## CDN library commands
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
wp bb cdn list
|
|
113
|
+
wp bb cdn list --format=json
|
|
114
|
+
wp bb cdn list --format=ids
|
|
115
|
+
wp bb cdn add --ids=swiper_element,alpine_core
|
|
116
|
+
wp bb cdn remove --ids=swiper_element
|
|
117
|
+
wp bb cdn set --ids=swiper_element,alpine_core,gsap_core,gsap_scrolltrigger
|
|
118
|
+
wp bb cdn clear
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Namespace migration command
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
wp blockbite migrate-namespaces
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Legacy commands (disabled)
|
|
128
|
+
|
|
129
|
+
These still exist as aliases but return an error and instruct you to use `bb nodes`:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
wp bb compile
|
|
133
|
+
wp blockbite compiler
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## With DDEV
|
|
137
|
+
|
|
138
|
+
Prefix any command with DDEV:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
ddev wp --path=/var/www/html bb nodes --namespaces=[clients,services]
|
|
142
|
+
ddev wp --path=/var/www/html bb dev watch
|
|
143
|
+
ddev wp --path=/var/www/html bb cdn list
|
|
144
|
+
```
|
package/src/doc-home.mdx
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Blockbite Documentation
|
|
2
|
+
|
|
3
|
+
This documentation is organized by feature area. Start with Core Concepts, then move into Design Framework and Dynamic Content.
|
|
4
|
+
|
|
5
|
+
## Core Concepts
|
|
6
|
+
|
|
7
|
+
- [Introduction](/docs/core-concepts/introduction)
|
|
8
|
+
- [Tailwind & Visual Editor](/docs/core-concepts/tailwind-css)
|
|
9
|
+
- [Design Panel Basics](/docs/core-concepts/design-panel-basics)
|
|
10
|
+
- [Code Editor & Live Preview](/docs/core-concepts/code-editor-livepreview)
|
|
11
|
+
- [Deprecating Presets](/docs/core-concepts/deprecating-presets)
|
|
12
|
+
- [Dynamic Templates](/docs/core-concepts/dynamic-templates)
|
|
13
|
+
- [Fills](/docs/core-concepts/fills)
|
|
14
|
+
- [CDN Libraries](/docs/core-concepts/cdn-libraries)
|
|
15
|
+
|
|
16
|
+
## Design Framework
|
|
17
|
+
|
|
18
|
+
- [Introduction](/docs/design-framework/introduction)
|
|
19
|
+
- [Design Tokens](/docs/design-framework/design-tokens)
|
|
20
|
+
- [Schema (v1)](/docs/design-framework/schema-v1)
|
|
21
|
+
- [Svgs](/docs/design-framework/svgs)
|
|
22
|
+
- [Bite Components](/docs/design-framework/bite-components)
|
|
23
|
+
- [Block Patterns](/docs/design-framework/block-patterns)
|
|
24
|
+
- [Namespaces](/docs/design-framework/namespaces)
|
|
25
|
+
|
|
26
|
+
## Ai Studio
|
|
27
|
+
|
|
28
|
+
- [Introduction](/docs/ai-studio/introduction)
|
|
29
|
+
- [Mistral](/docs/ai-studio/mistral)
|
|
30
|
+
- [OpenRouter](/docs/ai-studio/openrouter)
|
|
31
|
+
- [Prompting](/docs/ai-studio/prompting)
|
|
32
|
+
- [Examples](/docs/ai-studio/examples)
|
|
33
|
+
|
|
34
|
+
## Dynamic Content
|
|
35
|
+
|
|
36
|
+
- [Creating Dynamic Fields](/docs/dynamic-content/creating-dynamic-fields)
|
|
37
|
+
- [Dynamic Templates](/docs/dynamic-content/dynamic-templates)
|
|
38
|
+
- [Dynamic Template Block](/docs/dynamic-content/the-dynamic-template-block)
|
|
39
|
+
|
|
40
|
+
## Atom Blocks
|
|
41
|
+
|
|
42
|
+
- [Button](/docs/atom-blocks/button)
|
|
43
|
+
- [Group](/docs/atom-blocks/group)
|
|
44
|
+
- [Frame](/docs/atom-blocks/frame)
|
|
45
|
+
- [Icon](/docs/atom-blocks/icon)
|
|
46
|
+
- [Shape](/docs/atom-blocks/shape)
|
|
47
|
+
- [Richtext Auto](/docs/atom-blocks/richtext-auto)
|
|
48
|
+
- [Richtext Group](/docs/atom-blocks/richtext-group)
|
|
49
|
+
|
|
50
|
+
## Addons
|
|
51
|
+
|
|
52
|
+
- [Figma](/docs/addons/figma)
|
|
53
|
+
- [Responsive Compiler](/docs/addons/responsive-compiler)
|
|
54
|
+
|
|
55
|
+
## Experimental
|
|
56
|
+
|
|
57
|
+
- [Purge Optimize](/docs/experimental/purge-optimize)
|
|
58
|
+
- [Nextjs](/docs/experimental/nextjs)
|
|
59
|
+
|
|
60
|
+
## More
|
|
61
|
+
|
|
62
|
+
- [Usefull Links](/docs/more/usefull-links)
|
|
63
|
+
|
|
64
|
+
## CLI
|
|
65
|
+
|
|
66
|
+
- [Command Reference](/docs/cli/command-reference)
|
|
67
|
+
|
|
68
|
+
## Introduction
|
|
69
|
+
|
|
70
|
+
- [Installation](/docs/introduction/installation)
|
|
71
|
+
- [Getting Started](/docs/introduction/getting-started)
|
|
72
|
+
- [Contributing](/docs/introduction/contributing)
|
|
73
|
+
- [Quick Learn](/docs/introduction/quick-learn)
|