docusaurus.config.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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: 'Discover Nexa Gaming',
  8. tagline: 'Fairplay Is Guaranteed!',
  9. url: 'https://docs.nexa.games',
  10. baseUrl: '/',
  11. onBrokenLinks: 'throw',
  12. onBrokenMarkdownLinks: 'warn',
  13. favicon: 'img/favicon.ico',
  14. // Even if you don't use internalization, you can use this field to set useful
  15. // metadata like html lang. For example, if your site is Chinese, you may want
  16. // to replace "en" with "zh-Hans".
  17. i18n: {
  18. defaultLocale: 'en',
  19. locales: ['en'],
  20. },
  21. presets: [
  22. [
  23. 'classic',
  24. /** @type {import('@docusaurus/preset-classic').Options} */
  25. ({
  26. docs: {
  27. sidebarPath: require.resolve('./sidebars.js'),
  28. routeBasePath: '/',
  29. },
  30. theme: {
  31. customCss: require.resolve('./src/css/custom.css'),
  32. },
  33. }),
  34. ],
  35. ],
  36. themeConfig:
  37. /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
  38. ({
  39. navbar: {
  40. title: 'Start Here',
  41. logo: {
  42. alt: 'Fairplay Is Guaranteed!',
  43. src: 'img/logo.svg',
  44. },
  45. items: [
  46. {
  47. type: 'doc',
  48. docId: 'play/welcome',
  49. position: 'left',
  50. label: 'For Players',
  51. },
  52. {
  53. type: 'doc',
  54. docId: 'maker/welcome',
  55. position: 'left',
  56. label: 'For Gamemakers',
  57. },
  58. {
  59. type: 'doc',
  60. docId: 'bank/welcome',
  61. position: 'left',
  62. label: 'For Bankers',
  63. },
  64. {
  65. type: 'doc',
  66. docId: 'promo/welcome',
  67. position: 'left',
  68. label: 'For Promoters',
  69. },
  70. {
  71. href: 'https://nexa.games/gallery',
  72. label: 'Browse the Games',
  73. position: 'right',
  74. },
  75. ],
  76. },
  77. footer: {
  78. style: 'dark',
  79. links: [
  80. {
  81. title: 'Docs',
  82. items: [
  83. {
  84. label: 'Welcome',
  85. to: '/welcome',
  86. },
  87. ],
  88. },
  89. {
  90. title: 'Community',
  91. items: [
  92. {
  93. label: 'Twitter',
  94. href: 'https://twitter.com/NEXAdotgames',
  95. },
  96. {
  97. label: 'Reddit',
  98. href: 'https://www.reddit.com/r/NexaGames/',
  99. },
  100. ],
  101. },
  102. {
  103. title: 'More',
  104. items: [
  105. {
  106. label: 'Games Gallery',
  107. to: 'https://nexa.games/gallery',
  108. },
  109. {
  110. label: 'GitHub',
  111. href: 'https://repo.hos.im/nyusternie/nexa-games',
  112. },
  113. ],
  114. },
  115. ],
  116. copyright: `Copyright © ${new Date().getFullYear()} Nexa Games DAO.`,
  117. },
  118. prism: {
  119. theme: lightCodeTheme,
  120. darkTheme: darkCodeTheme,
  121. },
  122. }),
  123. };
  124. module.exports = config;