| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- // @ts-check
- const lightCodeTheme = require('prism-react-renderer/themes/github');
- const darkCodeTheme = require('prism-react-renderer/themes/dracula');
- /** @type {import('@docusaurus/types').Config} */
- const config = {
- title: 'swagger-jsdoc Official Documentation',
- tagline:
- 'Generates swagger/openapi specification based on jsDoc comments and YAML files.',
- url: 'https://github.com/Surnet/swagger-jsdoc',
- baseUrl: '/',
- onBrokenLinks: 'throw',
- onBrokenMarkdownLinks: 'warn',
- favicon: 'img/favicon.ico',
- organizationName: 'Surnet',
- projectName: 'swagger-jsdoc',
- i18n: {
- defaultLocale: 'en',
- locales: ['en'],
- },
- presets: [
- [
- 'classic',
- /** @type {import('@docusaurus/preset-classic').Options} */
- ({
- docs: {
- sidebarPath: require.resolve('./sidebars.js'),
- editUrl:
- 'https://github.com/Surnet/swagger-jsdoc/tree/master/docusaurus',
- },
- theme: {
- customCss: require.resolve('./src/css/custom.css'),
- },
- }),
- ],
- ],
- themeConfig:
- /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
- ({
- navbar: {
- title: 'swagger-jsdoc',
- // logo: {
- // alt: 'My Site Logo',
- // src: 'img/logo.svg',
- // },
- items: [
- {
- type: 'doc',
- docId: 'intro',
- position: 'left',
- label: 'Tutorial',
- },
- {
- href: 'https://github.com/Surnet/swagger-jsdoc',
- label: 'GitHub',
- position: 'right',
- },
- {
- type: 'docsVersionDropdown',
- },
- ],
- },
- footer: {
- style: 'dark',
- links: [
- {
- title: 'Docs',
- items: [
- {
- label: 'Tutorial',
- to: '/docs/intro',
- },
- ],
- },
- ],
- copyright: `Copyright © ${new Date().getFullYear()} swagger-jsdoc, Inc. Built with Docusaurus.`,
- },
- prism: {
- theme: lightCodeTheme,
- darkTheme: darkCodeTheme,
- },
- }),
- };
- module.exports = config;
|