// @ts-check // Note: type annotations allow type checking and IDEs autocompletion /** @type {import('@docusaurus/types').Config} */ const config = { title: 'Dragonfly', tagline: 'An Open-source P2P-based Image and File Distribution System', url: 'https://d7y.io', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', organizationName: 'dragonflyoss', // Usually your GitHub org/user name. projectName: 'd7y.io', // Usually your repo name. clientModules: [require.resolve('./src/clientModules.js')], presets: [ [ 'classic', { docs: { sidebarPath: require.resolve('./sidebars/docs.js'), editUrl: function ({ locale, docPath }) { return `https://github.com/dragonflyoss/d7y.io/edit/main/docs/${docPath}`; }, showLastUpdateAuthor: true, showLastUpdateTime: true, includeCurrentVersion: true, }, blog: { showReadingTime: true, editUrl: 'https://github.com/dragonflyoss/d7y.io/tree/main/', blogSidebarTitle: 'All posts', blogSidebarCount: 'ALL', }, theme: { customCss: require.resolve('./src/css/custom.css'), }, gtag: { trackingID: 'G-TZ94NZD7TN', anonymizeIP: false, }, }, ], ], themeConfig: { metadata: [ { name: 'keywords', content: 'dragonfly, nydus, cncf, p2p, cloud-native, registry, containers, docker-image, accelerate-image', }, ], algolia: { apiKey: '3ea338c2dd7e413e35e4075a48707fcb', appId: '50KU9JDRGZ', indexName: 'd7y.io', contextualSearch: true, algoliaOptions: { hitsPerPage: 10, }, }, colorMode: { defaultMode: 'light', disableSwitch: true, }, navbar: { title: 'Dragonfly', logo: { alt: 'Dragonfly', src: 'img/logo.svg', }, items: [ { to: 'docs/next/', label: 'Documentation', position: 'left', }, { to: 'blog', label: 'Blog', position: 'left', }, { to: 'videos/sessions/en/2024-03-23', activeBasePath: 'videos', label: 'Video', position: 'left', }, { label: 'Community', position: 'left', href: 'https://github.com/dragonflyoss/dragonfly#community', }, { label: 'Nydus', position: 'left', href: 'https://nydus.dev/', }, { type: 'docsVersionDropdown', position: 'right', }, { href: 'https://github.com/dragonflyoss/dragonfly', className: 'header-github-link', position: 'right', }, ], }, footer: { links: [ { items: [ { html: ` dragonfly `, }, ], }, { items: [ { html: ` `, }, ], }, { items: [ { html: ` youtube icon `, }, { html: ` github icon `, }, { html: ` linkedin icon `, }, ], }, ], copyright: `
© Dragonfly Authors ${new Date().getFullYear()} | Documentation Distributed under CC-BY-4.0

© ${new Date().getFullYear()} The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Usage page. `, }, }, plugins: [ [ '@docusaurus/plugin-content-docs', { id: 'videos', path: 'videos', routeBasePath: 'videos', include: ['**/*.md'], sidebarPath: require.resolve('./sidebars/videos.js'), showLastUpdateAuthor: true, showLastUpdateTime: true, }, ], ], }; module.exports = config;