Files
clover/docs/.vuepress/config.js
Oleg Kalachev ea5151db51 Add markdown-it-attrs plugin for custom headers anchors
Syntax: # Header {#header-id}
2022-04-12 02:00:30 +04:00

62 lines
1.3 KiB
JavaScript
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 sidebar = require('./sidebar');
module.exports = {
// site config
lang: 'en-US',
title: 'Clover',
description: 'Clover Drone Kit',
// theme and its config
theme: '@vuepress/theme-default',
themeConfig: {
logo: 'https://vuejs.org/images/logo.png',
// sidebar: markdownFiles
sidebar: {
'/ru/': sidebar.readSummary("./ru/SUMMARY.md"),
'/en/': sidebar.readSummary("./en/SUMMARY.md"),
},
sidebarDepth: 0,
locales: {
'/en/': { selectLanguageName: 'English' },
'/ru/': {
selectLanguageName: 'Русский',
tip: 'СОВЕТ',
warning: 'ВНИМАНИЕ',
danger: 'ОПАСНО',
toggleDarkMode: 'Переключить темную тему'
},
},
toggleSidebar: true,
repo: 'CopterExpress/clover',
docsBranch: 'master',
docsDir: 'docs',
lastUpdated: false,
contributors: false
},
locales: {
'/en/': {
lang: 'en',
title: 'Clover',
description: 'Clover Drone Kit'
},
'/ru/': {
lang: 'ru',
title: 'Клевер',
description: 'Конструктор квадрокоптера «Клевер»'
}
},
markdown: {
code: {
lineNumbers: false
},
linkify: true,
},
extendsMarkdown(md) {
md.use(require('markdown-it-attrs')); // to use custom headers anchors
},
plugins: [
'@vuepress/plugin-search',
'vuepress-plugin-copy-code2',
require('./rich-quotes')
]
}