docusaurus.config.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. const math = require("remark-math");
  2. const katex = require("rehype-katex");
  3. module.exports = {
  4. title: "Agave",
  5. tagline:
  6. "Agave is an open source project implementing a new, high-performance, permissionless blockchain.",
  7. url: "https://docs.anza.xyz",
  8. baseUrl: "/",
  9. favicon: "img/favicon.ico",
  10. organizationName: "anza-xyz", // Usually your GitHub org/user name.
  11. projectName: "agave", // Usually your repo name.
  12. onBrokenLinks: "throw",
  13. stylesheets: [
  14. {
  15. href: "/katex/katex.min.css",
  16. type: "text/css",
  17. integrity:
  18. "sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X",
  19. crossorigin: "anonymous",
  20. },
  21. ],
  22. themeConfig: {
  23. prism: {
  24. additionalLanguages: ["rust"],
  25. },
  26. navbar: {
  27. logo: {
  28. alt: "Anza Logo",
  29. src: "img/logo-horizontal.svg",
  30. srcDark: "img/logo-horizontal-dark.svg",
  31. },
  32. items: [
  33. {
  34. to: "cli",
  35. label: "CLI",
  36. position: "left",
  37. },
  38. {
  39. to: "architecture",
  40. label: "Architecture",
  41. position: "left",
  42. },
  43. {
  44. to: "operations",
  45. label: "Operating a Validator",
  46. position: "left",
  47. },
  48. {
  49. label: "More",
  50. position: "left",
  51. items: [
  52. { label: "Proposals", to: "proposals" },
  53. {
  54. href: "https://spl.solana.com",
  55. label: "Solana Program Library",
  56. },
  57. ],
  58. },
  59. {
  60. href: "https://solana.com/discord",
  61. // label: "Discord",
  62. className: "header-link-icon header-discord-link",
  63. "aria-label": "Solana Tech Discord",
  64. position: "right",
  65. },
  66. {
  67. href: "https://github.com/anza-xyz/agave/",
  68. // label: "GitHub",
  69. className: "header-link-icon header-github-link",
  70. "aria-label": "GitHub repository",
  71. position: "right",
  72. },
  73. ],
  74. },
  75. algolia: {
  76. // This API key is "search-only" and safe to be published
  77. apiKey: "011e01358301f5023b02da5db6af7f4d",
  78. appId: "FQ12ISJR4B",
  79. indexName: "solana",
  80. contextualSearch: true,
  81. },
  82. footer: {
  83. style: "dark",
  84. links: [
  85. {
  86. title: "Documentation",
  87. items: [
  88. {
  89. label: "Developers »",
  90. href: "https://solana.com/developers",
  91. },
  92. {
  93. label: "Running a Validator",
  94. to: "operations",
  95. },
  96. {
  97. label: "Command Line",
  98. to: "cli",
  99. },
  100. {
  101. label: "Architecture",
  102. to: "architecture",
  103. },
  104. ],
  105. },
  106. {
  107. title: "Community",
  108. items: [
  109. {
  110. label: "Stack Exchange »",
  111. href: "https://solana.stackexchange.com/",
  112. },
  113. {
  114. label: "GitHub »",
  115. href: "https://github.com/anza-xyz/agave",
  116. },
  117. {
  118. label: "Discord »",
  119. href: "https://solana.com/discord",
  120. },
  121. {
  122. label: "Twitter »",
  123. href: "https://solana.com/twitter",
  124. },
  125. {
  126. label: "Forum »",
  127. href: "https://forum.solana.com",
  128. },
  129. ],
  130. },
  131. {
  132. title: "Resources",
  133. items: [
  134. {
  135. label: "Terminology »",
  136. href: "https://solana.com/docs/terminology",
  137. },
  138. {
  139. label: "Proposals",
  140. to: "proposals",
  141. },
  142. {
  143. href: "https://spl.solana.com",
  144. label: "Solana Program Library »",
  145. },
  146. ],
  147. },
  148. ],
  149. copyright: `Copyright © ${new Date().getFullYear()} Anza`,
  150. },
  151. },
  152. presets: [
  153. [
  154. "@docusaurus/preset-classic",
  155. {
  156. docs: {
  157. path: "src",
  158. breadcrumbs: true,
  159. routeBasePath: "/",
  160. sidebarPath: require.resolve("./sidebars.js"),
  161. remarkPlugins: [math],
  162. rehypePlugins: [katex],
  163. },
  164. theme: {
  165. customCss: require.resolve("./src/css/custom.css"),
  166. },
  167. // Google Analytics are only active in prod
  168. // gtag: {
  169. // this GA code is safe to be published
  170. // trackingID: "",
  171. // anonymizeIP: true,
  172. // },
  173. },
  174. ],
  175. ],
  176. };