docusaurus.config.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. to: "contributing",
  50. label: "Contributing to Agave",
  51. position: "left",
  52. },
  53. {
  54. label: "More",
  55. position: "left",
  56. items: [
  57. { label: "Proposals", to: "proposals" },
  58. {
  59. href: "https://spl.solana.com",
  60. label: "Solana Program Library",
  61. },
  62. ],
  63. },
  64. {
  65. href: "https://solana.com/discord",
  66. // label: "Discord",
  67. className: "header-link-icon header-discord-link",
  68. "aria-label": "Solana Tech Discord",
  69. position: "right",
  70. },
  71. {
  72. href: "https://github.com/anza-xyz/agave/",
  73. // label: "GitHub",
  74. className: "header-link-icon header-github-link",
  75. "aria-label": "GitHub repository",
  76. position: "right",
  77. },
  78. ],
  79. },
  80. algolia: {
  81. // This API key is "search-only" and safe to be published
  82. apiKey: "011e01358301f5023b02da5db6af7f4d",
  83. appId: "FQ12ISJR4B",
  84. indexName: "solana",
  85. contextualSearch: true,
  86. },
  87. footer: {
  88. style: "dark",
  89. links: [
  90. {
  91. title: "Documentation",
  92. items: [
  93. {
  94. label: "Developers »",
  95. href: "https://solana.com/developers",
  96. },
  97. {
  98. label: "Running a Validator",
  99. to: "operations",
  100. },
  101. {
  102. label: "Command Line",
  103. to: "cli",
  104. },
  105. {
  106. label: "Architecture",
  107. to: "architecture",
  108. },
  109. ],
  110. },
  111. {
  112. title: "Community",
  113. items: [
  114. {
  115. label: "Stack Exchange »",
  116. href: "https://solana.stackexchange.com/",
  117. },
  118. {
  119. label: "GitHub »",
  120. href: "https://github.com/anza-xyz/agave",
  121. },
  122. {
  123. label: "Discord »",
  124. href: "https://solana.com/discord",
  125. },
  126. {
  127. label: "Twitter »",
  128. href: "https://solana.com/twitter",
  129. },
  130. {
  131. label: "Forum »",
  132. href: "https://forum.solana.com",
  133. },
  134. ],
  135. },
  136. {
  137. title: "Resources",
  138. items: [
  139. {
  140. label: "Terminology »",
  141. href: "https://solana.com/docs/terminology",
  142. },
  143. {
  144. label: "Proposals",
  145. to: "proposals",
  146. },
  147. {
  148. href: "https://spl.solana.com",
  149. label: "Solana Program Library »",
  150. },
  151. ],
  152. },
  153. ],
  154. copyright: `Copyright © ${new Date().getFullYear()} Anza`,
  155. },
  156. },
  157. presets: [
  158. [
  159. "@docusaurus/preset-classic",
  160. {
  161. docs: {
  162. path: "src",
  163. breadcrumbs: true,
  164. routeBasePath: "/",
  165. sidebarPath: require.resolve("./sidebars.js"),
  166. remarkPlugins: [math],
  167. rehypePlugins: [katex],
  168. },
  169. theme: {
  170. customCss: require.resolve("./src/css/custom.css"),
  171. },
  172. // Google Analytics are only active in prod
  173. // gtag: {
  174. // this GA code is safe to be published
  175. // trackingID: "",
  176. // anonymizeIP: true,
  177. // },
  178. },
  179. ],
  180. ],
  181. };