config.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. ["meta", { name: "theme-color", content: "#3eaf7c" }],
  19. ["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
  20. [
  21. "meta",
  22. { name: "apple-mobile-web-app-status-bar-style", content: "black" },
  23. ],
  24. ],
  25. /**
  26. * Theme configuration, here is the default theme configuration for VuePress.
  27. *
  28. * ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
  29. */
  30. themeConfig: {
  31. repo: "",
  32. editLinks: false,
  33. docsDir: "",
  34. editLinkText: "",
  35. lastUpdated: false,
  36. sidebar: [
  37. {
  38. collapsable: false,
  39. title: "Getting Started",
  40. children: [
  41. "/getting-started/introduction",
  42. "/getting-started/installation",
  43. ],
  44. },
  45. {
  46. collapsable: false,
  47. title: "Tutorials",
  48. children: ["/tutorials/tutorial-0", "/tutorials/tutorial-1"],
  49. },
  50. ],
  51. nav: [{ text: "GitHub", link: "https://github.com/project-serum/anchor" }],
  52. },
  53. /**
  54. * Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
  55. */
  56. plugins: ["@vuepress/plugin-back-to-top", "@vuepress/plugin-medium-zoom"],
  57. };