PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.5
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.5
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 All 203 releases
betterdocs / react-src / gutenberg / blocks / reading-time / src / index.js

index.js in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/gutenberg/blocks/reading-time/src/index.js

38 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from "@wordpress/i18n";
2 import { registerBlockType } from "@wordpress/blocks";
3
4 // Lower-case, matching the file on disk: macOS resolves "./Edit" anyway, a
5 // case-sensitive filesystem does not.
6 import Edit from "./edit";
7 import attributes from "./attributes";
8 import icon from "./icon";
9
10
11 registerBlockType("betterdocs/reading-time", {
12 title: __("Reading Time, Listen and AI Action", "betterdocs"),
13 description: __(
14 'The single-doc meta row: estimated reading time, a Listen button that reads the doc aloud, and a "Copy page" button that hands it to an AI assistant. Each part has its own switch.',
15 "betterdocs",
16 ),
17 category: "betterdocs",
18 attributes,
19 icon,
20 keywords: [
21 __("better docs", "betterdocs"),
22 __("reading time", "betterdocs"),
23 __("time", "betterdocs"),
24 __("ai", "betterdocs"),
25 __("markdown", "betterdocs"),
26 __("copy page", "betterdocs"),
27 __("listen", "betterdocs"),
28 __("audio", "betterdocs"),
29 __("text to speech", "betterdocs"),
30 __("accessibility", "betterdocs"),
31 ],
32 edit: Edit,
33 save: () => null,
34 example: {
35 viewportWidth: 1200,
36 },
37 });
38