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 / admin / api-docs / index.js

index.js in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/admin/api-docs/index.js

34 lines 1.7 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 React from "react";
3
4 import LockedPreview from "../analytics/components/modules/LockedPreview";
5 import ApiDocsMock from "./ApiDocsMock";
6 import "../analytics/scss/dashboard.scss";
7 import "./api-docs-teaser.scss";
8
9 /**
10 * Free's API Docs screen — a locked teaser for the Pro feature, built on the
11 * same `LockedPreview` shell the Analytics modules use so both upsells read as
12 * one design. Free only registers this route when Pro does not ship API Docs
13 * (see `betterdocs_admin.has_api_docs`); once Pro is active its real screen
14 * takes the `betterdocs-api-docs` route instead.
15 */
16 export default function ApiDocsTeaser() {
17 return (
18 <div className="betterdocs-dashboard-body betterdocs-dashboard-container bd-apit-wrapper">
19 <LockedPreview
20 title={ __( "API Documentation is a Pro feature", "betterdocs" ) }
21 subtitle={ __( "Upload an OpenAPI or Postman file — or point BetterDocs at its URL — and every endpoint becomes a real doc inside your knowledge base, searchable, styled like the rest of your docs, and re-synced whenever the spec changes.", "betterdocs" ) }
22 bullets={ [
23 __( "OpenAPI 3.x, Swagger 2.0 & Postman collections", "betterdocs" ),
24 __( "Every endpoint generated as a native, searchable doc", "betterdocs" ),
25 __( "Built-in \"Try it\" console with live request samples", "betterdocs" ),
26 __( "Re-sync from a URL to keep docs matching your API", "betterdocs" )
27 ] }
28 >
29 <ApiDocsMock />
30 </LockedPreview>
31 </div>
32 );
33 }
34