PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.4
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.4
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 3.4.2 All 202 releases
← All changes | includes/Core/Scripts.php +24 -0 4.9.3 → 4.9.4 View file →
@@ -53,8 +53,10 @@
53 53 $assets->register( 'betterdocs-category-archive-header', 'public/css/archive-header.css' );
54 54 $assets->register( 'betterdocs-category-archive-doc-list', 'public/css/archive-doc-list.css' );
55 55 $assets->register( 'betterdocs-article-summary', 'public/css/article-summary.css' );
56 56 $assets->register( 'betterdocs-author', 'public/css/author.css' );
57 + $assets->register( 'betterdocs-ai-actions', 'public/css/ai-actions.css' );
58 + $assets->register( 'betterdocs-listen', 'public/css/listen.css' );
57 59
58 60 $assets->register( 'betterdocs-category-grid', 'public/css/category-grid.css', [ 'simplebar' ] );
59 61 $assets->register( 'betterdocs-category-box', 'public/css/category-box.css' );
60 62 $assets->register( 'betterdocs-category-grid-list', 'public/css/category-grid-list.css' );
@@ -103,8 +105,30 @@
103 105 'copy_text' => __( 'Copied', 'betterdocs' ),
104 106 'sticky_toc_offset' => $this->settings->get( 'sticky_toc_offset' ),
105 107 'summary_nonce' => wp_create_nonce( 'betterdocs_article_summary_nonce' ),
106 108 'summary_error' => __( 'Failed to generate doc summary. Please try again.', 'betterdocs' ),
109 + // Namespaced so the AI Actions strings do not collide as the feature
110 + // grows. Nothing URL-shaped belongs here: init() runs with no $post,
111 + // so every per-doc URL lives on the rendered data-bd-* attributes.
112 + 'ai_actions' => [
113 + 'i18n' => [
114 + 'copy' => __( 'Copy page', 'betterdocs' ),
115 + 'copying' => __( 'Copying…', 'betterdocs' ),
116 + 'copied' => __( 'Copied', 'betterdocs' ),
117 + 'copy_failed' => __( 'Copy failed', 'betterdocs' ),
118 + 'copy_error' => __( 'Could not copy this page. Please try again.', 'betterdocs' )
119 + ]
120 + ],
121 + // Same shape and the same reasoning: namespaced, and with nothing
122 + // per-doc in it. Core\Listen owns the contents, because the rates and
123 + // the two content selectors are filterable and the filters have to
124 + // reach the script.
125 + //
126 + // Guarded: this runs on `init` at 1 and Plugin::initialize() — which
127 + // builds the property — is the `init` callback at 0, so the ordering
128 + // holds today. It is one priority of slack, and a fatal if it ever
129 + // changes.
130 + 'listen' => isset( betterdocs()->listen ) ? betterdocs()->listen->localize() : [],
107 131 'print' => [
108 132 'logo' => $print_logo ? esc_url( $print_logo ) : '',
109 133 'footer' => $print_footer ? wp_kses_post( $print_footer ) : ''
110 134 ]