anchor/docs/src/.vuepress/config.js

110 lines
2.7 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const { description } = require("../../package");
module.exports = {
base: "/anchor/",
/**
* Refhttps://v1.vuepress.vuejs.org/config/#title
*/
title: "⚓ Anchor",
/**
* Refhttps://v1.vuepress.vuejs.org/config/#description
*/
description: description,
/**
* Extra tags to be injected to the page HTML `<head>`
*
* refhttps://v1.vuepress.vuejs.org/config/#head
*/
head: [
[
"link",
{
rel: "icon",
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>",
},
],
["meta", { name: "theme-color", content: "#3eaf7c" }],
["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
[
"meta",
{ name: "apple-mobile-web-app-status-bar-style", content: "black" },
],
],
theme: "default-prefers-color-scheme",
/**
* Theme configuration, here is the default theme configuration for VuePress.
*
* refhttps://v1.vuepress.vuejs.org/theme/default-theme-config.html
*/
themeConfig: {
repo: "",
editLinks: false,
docsDir: "",
editLinkText: "",
lastUpdated: false,
sidebarDepth: 2,
sidebar: [
{
collapsable: false,
title: "Getting Started",
children: [
"/getting-started/introduction",
"/getting-started/installation",
],
},
{
collapsable: false,
title: "Teams",
children: ["/getting-started/projects"],
},
{
collapsable: false,
title: "Tutorials",
children: [
"/tutorials/tutorial-0",
"/tutorials/tutorial-1",
"/tutorials/tutorial-2",
"/tutorials/tutorial-3",
"/tutorials/tutorial-4",
],
},
{
collapsable: false,
title: "CLI",
children: ["/cli/commands"],
},
{
collapsable: false,
title: "Source Verification",
children: [
"/getting-started/verification",
"/getting-started/publishing",
],
},
],
nav: [
{ text: "The Anchor Book", link: "https://book.anchor-lang.com" },
{ text: "Rust", link: "https://docs.rs/anchor-lang/latest/anchor_lang/" },
{
text: "TypeScript",
link: "https://coral-xyz.github.io/anchor/ts/index.html",
},
{ text: "GitHub", link: "https://github.com/coral-xyz/anchor" },
],
},
/**
* Apply pluginsrefhttps://v1.vuepress.vuejs.org/zh/plugin/
*/
plugins: [
"dehydrate",
"@vuepress/plugin-back-to-top",
"@vuepress/plugin-medium-zoom",
"@xiaopanda/vuepress-plugin-code-copy",
],
};