config.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. const { description } = require("../../package");
  2. module.exports = {
  3. base: "/anchor/",
  4. /**
  5. * Ref:https://v1.vuepress.vuejs.org/config/#title
  6. */
  7. title: "⚓ Anchor",
  8. /**
  9. * Ref:https://v1.vuepress.vuejs.org/config/#description
  10. */
  11. description: description,
  12. /**
  13. * Extra tags to be injected to the page HTML `<head>`
  14. *
  15. * ref:https://v1.vuepress.vuejs.org/config/#head
  16. */
  17. head: [
  18. [
  19. "link",
  20. {
  21. rel: "icon",
  22. href: "data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⚓ </text></svg>",
  23. },
  24. ],
  25. ["meta", { name: "theme-color", content: "#3eaf7c" }],
  26. ["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
  27. [
  28. "meta",
  29. { name: "apple-mobile-web-app-status-bar-style", content: "black" },
  30. ],
  31. ],
  32. theme: "default-prefers-color-scheme",
  33. /**
  34. * Theme configuration, here is the default theme configuration for VuePress.
  35. *
  36. * ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
  37. */
  38. themeConfig: {
  39. repo: "",
  40. editLinks: false,
  41. docsDir: "",
  42. editLinkText: "",
  43. lastUpdated: false,
  44. sidebarDepth: 2,
  45. sidebar: [
  46. {
  47. collapsable: false,
  48. title: "Getting Started",
  49. children: [
  50. "/getting-started/introduction",
  51. "/getting-started/installation",
  52. ],
  53. },
  54. {
  55. collapsable: false,
  56. title: "Teams",
  57. children: ["/getting-started/projects"],
  58. },
  59. {
  60. collapsable: false,
  61. title: "Tutorials",
  62. children: [
  63. "/tutorials/tutorial-0",
  64. "/tutorials/tutorial-1",
  65. "/tutorials/tutorial-2",
  66. "/tutorials/tutorial-3",
  67. "/tutorials/tutorial-4",
  68. ],
  69. },
  70. {
  71. collapsable: false,
  72. title: "CLI",
  73. children: ["/cli/commands"],
  74. },
  75. {
  76. collapsable: false,
  77. title: "Source Verification",
  78. children: [
  79. "/getting-started/verification",
  80. "/getting-started/publishing",
  81. ],
  82. },
  83. ],
  84. nav: [
  85. { text: "The Anchor Book", link: "https://book.anchor-lang.com" },
  86. { text: "Rust", link: "https://docs.rs/anchor-lang/latest/anchor_lang/" },
  87. {
  88. text: "TypeScript",
  89. link: "https://coral-xyz.github.io/anchor/ts/index.html",
  90. },
  91. { text: "GitHub", link: "https://github.com/coral-xyz/anchor" },
  92. ],
  93. },
  94. /**
  95. * Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
  96. */
  97. plugins: [
  98. "dehydrate",
  99. "@vuepress/plugin-back-to-top",
  100. "@vuepress/plugin-medium-zoom",
  101. "@xiaopanda/vuepress-plugin-code-copy",
  102. ],
  103. };