docusaurus.config.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. // @ts-check
  2. // Note: type annotations allow type checking and IDEs autocompletion
  3. const lightCodeTheme = require('prism-react-renderer/themes/github');
  4. const darkCodeTheme = require('prism-react-renderer/themes/dracula');
  5. /** @type {import('@docusaurus/types').Config} */
  6. const config = {
  7. title: 'APECS Docs',
  8. tagline: 'Everything you need to BUIDL',
  9. url: 'https://docs.apecs.dev',
  10. baseUrl: '/',
  11. onBrokenLinks: 'throw',
  12. onBrokenMarkdownLinks: 'warn',
  13. favicon: 'img/favicon.ico',
  14. // GitHub pages deployment config.
  15. // If you aren't using GitHub pages, you don't need these.
  16. organizationName: 'facebook', // Usually your GitHub org/user name.
  17. projectName: 'docusaurus', // Usually your repo name.
  18. // Even if you don't use internalization, you can use this field to set useful
  19. // metadata like html lang. For example, if your site is Chinese, you may want
  20. // to replace "en" with "zh-Hans".
  21. i18n: {
  22. defaultLocale: 'en',
  23. locales: ['en'],
  24. },
  25. presets: [
  26. [
  27. 'classic',
  28. /** @type {import('@docusaurus/preset-classic').Options} */
  29. ({
  30. docs: {
  31. sidebarPath: require.resolve('./sidebars.js'),
  32. // Please change this to your repo.
  33. // Remove this to remove the "edit this page" links.
  34. editUrl:
  35. 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
  36. },
  37. blog: false,
  38. theme: {
  39. customCss: require.resolve('./src/css/custom.css'),
  40. },
  41. }),
  42. ],
  43. ],
  44. themeConfig:
  45. /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
  46. ({
  47. navbar: {
  48. title: 'APECS Docs',
  49. logo: {
  50. alt: 'APECS Dev Logo',
  51. src: 'img/logo.svg',
  52. },
  53. items: [
  54. {
  55. type: 'doc',
  56. docId: 'intro',
  57. position: 'left',
  58. label: 'Tutorial',
  59. },
  60. // {to: '/blog', label: 'Blog', position: 'left'},
  61. {
  62. href: 'https://github.com/facebook/docusaurus',
  63. label: 'GitHub',
  64. position: 'right',
  65. },
  66. ],
  67. },
  68. footer: {
  69. style: 'dark',
  70. links: [
  71. {
  72. title: 'Docs',
  73. items: [
  74. {
  75. label: 'Tutorial',
  76. to: '/docs/intro',
  77. },
  78. ],
  79. },
  80. {
  81. title: 'Community',
  82. items: [
  83. {
  84. label: 'Stack Overflow',
  85. href: 'https://stackoverflow.com/questions/tagged/docusaurus',
  86. },
  87. {
  88. label: 'Discord',
  89. href: 'https://discordapp.com/invite/docusaurus',
  90. },
  91. {
  92. label: 'Twitter',
  93. href: 'https://twitter.com/docusaurus',
  94. },
  95. ],
  96. },
  97. {
  98. title: 'More',
  99. items: [
  100. // {
  101. // label: 'Blog',
  102. // to: '/blog',
  103. // },
  104. {
  105. label: 'GitHub',
  106. href: 'https://github.com/facebook/docusaurus',
  107. },
  108. ],
  109. },
  110. ],
  111. copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
  112. },
  113. prism: {
  114. theme: lightCodeTheme,
  115. darkTheme: darkCodeTheme,
  116. },
  117. }),
  118. };
  119. module.exports = config;