代码拉取完成,页面将自动刷新
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
import { themes as prismThemes } from 'prism-react-renderer';
const path = require('path')
// const {useColorMode} = require('@docusaurus/theme-common');
// const {colorMode} = useColorMode()
// console.log(colorMode)
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Hyperledger Identus',
tagline: 'Hyperledger Identus Docs',
// url: 'https://docs.atalaprism.io',
url: 'https://hyperledger.github.io/',
baseUrl: '/identus-docs/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'Hyperledger',
projectName: 'identus-docs',
markdown: {
mermaid: true,
},
// Even if you don't use internalization, you can use this field to set useful
// 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'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./documentation/docs/sidebars.js'),
path: './documentation/docs'
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
})
],
/**
* @type {import('redocusaurus').PresetEntry}
*/
[
'redocusaurus',
{
// Plugin Options for loading OpenAPI files
specs: [
{
spec: 'identus-cloud-agent/cloud-agent/service/api/http/cloud-agent-openapi-spec.yaml',
route: '/agent-api/',
}
]
},
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'tutorials',
path: 'identus-cloud-agent/docs/docusaurus',
routeBasePath: 'tutorials',
sidebarPath: require.resolve('./identus-cloud-agent/docs/docusaurus/sidebars.js'),
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'adrs',
path: 'documentation/adrs',
routeBasePath: 'adrs',
sidebarPath: require.resolve('./documentation/adrs/sidebars.js'),
},
],
require.resolve('docusaurus-lunr-search'),
[
'@docusaurus/plugin-content-docs',
{
id: 'identus-edge-agent-sdk-ts',
path: 'identus-edge-agent-sdk-ts/docs',
routeBasePath: 'identus-edge-agent-sdk-ts',
sidebarPath: require.resolve('./identus-edge-agent-sdk-ts/docs/sidebars.js'),
},
]
],
themes: ["docusaurus-theme-openapi-docs", '@docusaurus/theme-mermaid', "docusaurus-theme-redoc"],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
{
navbar: {
logo: {
alt: ' Identus logo',
src: 'img/identus-navbar-light.png',
srcDark: "img/identus-navbar-light.png",
},
items: [
{
type: 'doc',
docId: 'getting-started',
position: 'left',
label: 'Docs',
},
{
to: '/tutorials/',
label: 'Tutorials',
position: 'left',
activeBaseRegex: `/tutorials/`
},
{
to: '/adrs/',
label: 'ADRs',
position: 'left',
activeBaseRegex: `/adrs/`
},
{
to: '/agent-api/',
label: 'Agent API',
activeBaseRegex: `/agent-api/`
},
{
type: 'dropdown',
label: 'SDKs',
position: 'left',
items: [
{
label: 'Edge Agent SDK Swift',
href: 'https://hyperledger.github.io/identus-edge-agent-sdk-swift/documentation/edgeagentsdk/',
},
{
to: '/identus-edge-agent-sdk-ts/sdk',
label: 'Edge Agent SDK Typescript',
activeBaseRegex: `/identus-edge-agent-sdk-ts/sdk`
},
{
label: 'Edge Agent SDK Kotlin Multiplatform',
href: 'https://hyperledger.github.io/identus-edge-agent-sdk-kmp/',
},
],
},
{
label: 'PRISM DID Spec',
href: 'https://github.com/input-output-hk/prism-did-method-spec/blob/main/w3c-spec/PRISM-method.md',
},
],
},
footer: {
copyright: `Hyperledger Identus CC BY 4.0`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
},
};
module.exports = config;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。