2 Star 0 Fork 0

mirrors_hyperledger/identus-docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docusaurus.config.js 5.45 KB
一键复制 编辑 原始数据 按行查看 历史
// @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;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_hyperledger/identus-docs.git
git@gitee.com:mirrors_hyperledger/identus-docs.git
mirrors_hyperledger
identus-docs
identus-docs
main

搜索帮助