添加:ZHub 管理接口文档和客户端使用指南

This commit is contained in:
2025-09-23 21:48:31 +08:00
parent 88011cf20b
commit 5af775e525
35 changed files with 4133 additions and 412 deletions

View File

@@ -6,8 +6,8 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula')
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'ZHub',
tagline: '轻量级消息中间件',
title: 'ZHub - 轻量级消息中间件',
tagline: '高性能、轻量级消息中间件支持发布订阅、RPC调用、延时消息等功能',
favicon: 'img/favicon.ico',
// Set the production url of your site here
@@ -22,8 +22,8 @@ const config = {
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
organizationName: 'zhub', // Usually your GitHub org/user name.
projectName: 'zhub-docs', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
@@ -32,8 +32,8 @@ const config = {
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},
presets: [
@@ -70,7 +70,7 @@ const config = {
navbar: {
title: 'ZHub',
logo: {
alt: 'My Site Logo',
alt: 'ZHub Logo',
src: 'img/logo.svg',
},
items: [
@@ -113,6 +113,18 @@ const config = {
darkTheme: darkCodeTheme,
additionalLanguages: ['java'],
},
metadata: [
{name: 'keywords', content: '消息中间件,消息队列,RPC,发布订阅,微服务,Java,SpringBoot'},
{name: 'description', content: 'ZHub 是一个轻量级、高性能的消息中间件支持发布订阅、RPC调用、延时消息、广播等功能适用于微服务架构'},
{property: 'og:type', content: 'website'},
{property: 'og:title', content: 'ZHub - 轻量级消息中间件'},
{property: 'og:description', content: '高性能、轻量级的消息中间件支持发布订阅、RPC调用、延时消息等功能'},
{property: 'og:image', content: 'https://zhub.dev/img/docusaurus-social-card.jpg'},
{name: 'twitter:card', content: 'summary_large_image'},
{name: 'twitter:title', content: 'ZHub - 轻量级消息中间件'},
{name: 'twitter:description', content: '高性能、轻量级的消息中间件支持发布订阅、RPC调用、延时消息等功能'},
{name: 'twitter:image', content: 'https://zhub.dev/img/docusaurus-social-card.jpg'},
],
}),
}