site: fix site on mobile (#597)

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
Bobby DeSimone 2020-04-09 10:56:39 -07:00 committed by GitHub
parent 8111a3d1b5
commit ad56322c7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 233 additions and 2324 deletions

View file

@ -1,52 +1,3 @@
const path = require("path");
// Theme API.
module.exports = (options, ctx) => ({
alias() {
const { themeConfig, siteConfig } = ctx;
// resolve algolia
const isAlgoliaSearch =
themeConfig.algolia ||
Object.keys((siteConfig.locales && themeConfig.locales) || {}).some(
base => themeConfig.locales[base].algolia
);
return {
"@AlgoliaSearchBox": isAlgoliaSearch
? path.resolve(__dirname, "components/AlgoliaSearchBox.vue")
: path.resolve(__dirname, "noopModule.js")
};
},
plugins: [
["@vuepress/active-header-links", options.activeHeaderLinks],
"@vuepress/search",
"@vuepress/plugin-nprogress",
[
"container",
{
type: "tip",
defaultTitle: {
"/zh/": "提示"
}
}
],
[
"container",
{
type: "warning",
defaultTitle: {
"/zh/": "注意"
}
}
],
[
"container",
{
type: "danger",
defaultTitle: {
"/zh/": "警告"
}
}
]
]
});
module.exports = {
extend: '@vuepress/theme-default'
}