/
githubmirror
/
obsidian-plugin-docs
Обзор
Документация
Войти
/
githubmirror
/
obsidian-plugin-docs
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docusaurus.config.js
146 строк
4 KB
Marcus Olsson
Add website link
24 мар 2022, 16:21
Не верифицирован
24 мар 2022, 16:21
dc59a25
Код
Авторство
О чём код?
const lightCodeTheme = require("prism-react-renderer/themes/github"); const darkCodeTheme = require("prism-react-renderer/themes/dracula"); // With JSDoc @type annotations, IDEs can provide config autocompletion /** @type {import('@docusaurus/types').DocusaurusConfig} */ ( module.exports = { title: "Obsidian Plugin Developer Docs", tagline: "Obsidian Plugin Developer Docs", url: "https://marcusolsson.github.io", baseUrl: "/obsidian-plugin-docs/", onBrokenLinks: "throw", onBrokenMarkdownLinks: "warn", organizationName: "marcusolsson", // Usually your GitHub org/user name. projectName: "obsidian-plugin-docs", // Usually your repo name. trailingSlash: false, scripts: [ { src: "https://plausible.io/js/plausible.js", defer: true, "data-domain": "marcus.se.net", }, ], plugins: [ [ "@docusaurus/plugin-client-redirects", { redirects: [ { to: "/api/classes/Plugin_2", from: ["/api/classes/Plugin"], }, { to: "/concepts/plugin-anatomy", from: ["/getting-started/plugin-anatomy"], }, { to: "/advanced-guides/react", from: ["/guides/react"], }, { to: "/advanced-guides/svelte", from: ["/guides/svelte"], }, ], }, ], ], presets: [ [ "@docusaurus/preset-classic", { docs: { sidebarPath: require.resolve("./sidebars.js"), editUrl: "https://github.com/marcusolsson/obsidian-plugin-docs/edit/main/", routeBasePath: "/", remarkPlugins: [ require("mdx-mermaid"), [require("@docusaurus/remark-plugin-npm2yarn"), { sync: true }], ], }, theme: { customCss: require.resolve("./src/css/custom.css"), }, }, ], ], themeConfig: { defaultMode: "dark", navbar: { logo: { alt: "Logo", src: "img/logo.svg", }, title: "Obsidian Plugin Developer Docs", items: [ { href: "https://buymeacoffee.com/marcusolsson", label: "Buy me a coffee", position: "right", }, { href: "https://obsidian.md/community", label: "Community", position: "right", }, { href: "https://github.com/marcusolsson/obsidian-plugin-docs", label: "GitHub", position: "right", }, { href: "https://marcus.se.net", label: "Who am I?", position: "right", }, ], }, footer: { links: [ { title: "Docs", items: [ { label: "Create your first plugin", to: "/getting-started/create-your-first-plugin", }, ], }, { title: "Resources", items: [ { label: "Community", href: "https://obsidian.md/community", }, { label: "Create Your Own Obsidian Plugin", href: "https://www.youtube.com/watch?v=9lA-jaMNS0k", }, { label: "Obsidian API", href: "https://github.com/obsidianmd/obsidian-api", }, ], }, { title: "More", items: [ { label: "GitHub", href: "https://github.com/marcusolsson/obsidian-plugin-docs", }, ], }, ], }, prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme, }, }, } );