133 lines
2.3 KiB
JavaScript
Raw Normal View History

module.exports = [
[
"@mr-hope/vuepress-plugin-sitemap",
{
hostname: "https://tachiyomi.org",
},
],
[
"@vuepress/last-updated",
{
transformer: (timestamp, lang) => {
const moment = require("moment");
moment.locale(lang);
return moment(timestamp).fromNow();
},
},
],
[
"vuepress-plugin-robots",
{
host: "https://tachiyomi.org",
allowAll: true,
sitemap: "/sitemap.xml",
},
],
["@vuepress/back-to-top"],
2020-08-15 11:36:22 +02:00
[
"@vuepress/google-analytics",
2020-08-15 11:36:22 +02:00
{
ga: "UA-148212082-1",
2020-08-15 11:36:22 +02:00
},
],
["vuepress-plugin-dehydrate"],
[
"@vuepress/active-header-links",
{
sidebarLinkSelector: ".sidebar-link",
headerAnchorSelector: ".header-anchor",
},
],
[
"@vuepress/pwa",
{
serviceWorker: false,
},
],
[
"vuepress-plugin-clean-urls",
{
normalSuffix: "/",
},
],
[
"vuepress-plugin-zooming",
{
2020-09-22 06:14:45 +02:00
selector: ".theme-default-content img.zoomable",
delay: 1000,
options: {
bgColor: "black",
bgOpacity: "0.8",
},
},
],
["vuepress-plugin-element-ui"],
2020-09-27 13:25:32 +02:00
[
"vuepress-plugin-container",
{
type: "c-tip",
before: (info) => `<div class="custom-block c-tip"><h4 class="c-title">${info}</h4>`,
after: "</div>",
defaultTitle: "",
},
],
[
"vuepress-plugin-container",
{
type: "c-warning",
before: (info) => `<div class="custom-block c-warning"><h4 class="c-title">${info}</h4>`,
after: "</div>",
defaultTitle: "",
},
],
[
"vuepress-plugin-container",
{
type: "c-danger",
before: (info) => `<div class="custom-block c-danger"><h4 class="c-title">${info}</h4>`,
after: "</div>",
defaultTitle: "",
},
],
[
"vuepress-plugin-container",
{
type: "expander",
2020-08-15 11:36:22 +02:00
before: (info) => `<details class="expander"><summary class="expansion">${info}</summary>`,
after: "</details>",
},
],
[
"vuepress-plugin-container",
{
type: "guide",
before: (info) => `<div class="guide"><p class="title">${info}</p>`,
after: "</div>",
},
],
[
"vuepress-plugin-container",
{
type: "videolink",
before: "<div class='videolink'>",
after: "</div>",
},
],
[
"vuepress-plugin-container",
{
type: "guide-empty",
before: "<div class='guide g-empty'>",
after: "</div>",
},
],
[
"vuepress-plugin-container",
{
type: "note",
before: "<div class='note'><p>",
after: "</div></p>",
},
],
];