const { description } = require('../../package')
module.exports = {
title: 'Yuescript',
description: description,
head: [
['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' }],
['meta', { property: 'og:title', content: 'Yuescript' }],
['meta', { property: 'og:description', content: description }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:image', content: '/image/yuescript.png' }],
['meta', { property: 'og:image:secure_url', content: '/image/yuescript.png' }],
['meta', { property: 'og:image:type', content: 'image/png' }],
['meta', { property: 'og:image:width', content: '1200' }],
['meta', { property: 'og:image:height', content: '1200' }],
['link', { rel: 'icon', href: '/image/favicon/favicon-16x16.png', sizes: '16x16', type: 'image/png' }],
['link', { rel: 'icon', href: '/image/favicon/favicon-32x32.png', sizes: '32x32', type: 'image/png' }],
['link', { rel: 'apple-touch-icon', href: '/image/favicon/apple-touch-icon-180x180.png', sizes: '180x180', type: 'image/png' }],
['link', { rel: 'android-chrome', href: '/image/favicon/android-chrome-192x192.png', sizes: '192x192', type: 'image/png' }],
['link', { rel: 'android-chrome', href: '/image/favicon/android-chrome-512x512.png', sizes: '512x512', type: 'image/png' }],
['script', {}, `window.global = window;`],
['script', {}, `
var Module = {
onRuntimeInitialized: function() {
window.yue = Module;
window.Vue.$data.readonly = false;
window.Vue.$data.info = Module.version();
}
};
`],
['script', {}, `
var Module = {
onRuntimeInitialized: function() {
window.yue = Module;
}
};
`],
['script', { src: '/js/yuescript.js' }],
],
themeConfig: {
repo: '',
editLinks: false,
docsDir: '',
editLinkText: '',
lastUpdated: false,
nav: [
{
text: 'Document',
link: '/doc/'
},
{
text: 'Try yue!',
link: '/try/',
},
{
text: 'Github',
link: 'https://github.com/pigpigyyy/Yuescript'
}
],
},
plugins: [
'@vuepress/plugin-back-to-top',
'@vuepress/plugin-medium-zoom',
'~plugins/vue-js-modal.js',
]
}