|
1 | | -const { description } = require('../../package') |
| 1 | +/* eslint-disable no-unused-vars */ |
| 2 | +const { description } = require("../../package"); |
| 3 | +const packages = require("./packages"); |
2 | 4 |
|
3 | 5 | module.exports = { |
4 | | - |
5 | | - title: 'OpenUPM', |
| 6 | + title: "OpenUPM", |
6 | 7 | description: description, |
7 | 8 | head: [ |
8 | | - ['meta', { name: 'theme-color', content: '#3eaf7c' }], |
9 | | - ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }], |
10 | | - ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }], |
11 | | - ['link', { rel: "stylesheet", href: "https://use.typekit.net/uwx2pxu.css"}], |
| 9 | + ["meta", { name: "theme-color", content: "#3eaf7c" }], |
| 10 | + ["meta", { name: "apple-mobile-web-app-capable", content: "yes" }], |
| 11 | + [ |
| 12 | + "meta", |
| 13 | + { name: "apple-mobile-web-app-status-bar-style", content: "black" } |
| 14 | + ], |
| 15 | + [ |
| 16 | + "link", |
| 17 | + { rel: "stylesheet", href: "https://use.typekit.net/uwx2pxu.css" } |
| 18 | + ], |
| 19 | + [ |
| 20 | + "link", |
| 21 | + { |
| 22 | + rel: "stylesheet", |
| 23 | + href: |
| 24 | + "https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" |
| 25 | + } |
| 26 | + ] |
12 | 27 | ], |
13 | 28 |
|
14 | 29 | themeConfig: { |
15 | | - repo: 'https://github.com/openupm/openupm', |
| 30 | + repo: "https://github.com/openupm/openupm", |
16 | 31 | editLinks: false, |
17 | | - docsDir: '', |
18 | | - editLinkText: '', |
| 32 | + docsDir: "", |
| 33 | + editLinkText: "", |
19 | 34 | lastUpdated: false, |
20 | | - logo: '/images/openupm-icon-128.png', |
| 35 | + logo: "/images/openupm-icon-128.png", |
21 | 36 | nav: [ |
22 | 37 | { |
23 | | - text: 'Packages', |
24 | | - link: '/packages/' |
| 38 | + text: "Packages", |
| 39 | + link: "/packages/" |
25 | 40 | }, |
26 | 41 | { |
27 | | - text: 'Docs', |
28 | | - link: '/docs/' |
| 42 | + text: "Docs", |
| 43 | + link: "/docs/" |
29 | 44 | }, |
30 | 45 | { |
31 | | - text: 'Donate', |
32 | | - link: '/donate/' |
| 46 | + text: "Donate", |
| 47 | + link: "/donate/" |
33 | 48 | }, |
34 | 49 | { |
35 | | - text: 'Login', |
36 | | - link: '/login/' |
37 | | - }, |
| 50 | + text: "Login", |
| 51 | + link: "/login/" |
| 52 | + } |
38 | 53 | ] |
39 | 54 | }, |
40 | 55 |
|
41 | 56 | /** |
42 | 57 | * Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/ |
43 | 58 | */ |
44 | | - plugins: [ |
45 | | - '@vuepress/plugin-back-to-top', |
46 | | - '@vuepress/plugin-medium-zoom', |
47 | | - ], |
| 59 | + plugins: ["@vuepress/plugin-back-to-top", "@vuepress/plugin-medium-zoom"], |
48 | 60 |
|
49 | 61 | chainWebpack: (config, isServer) => { |
50 | | - config.module.rule('yaml') |
| 62 | + config.module |
| 63 | + .rule("yaml") |
51 | 64 | .test(/\.ya?ml$/) |
52 | | - .use('js-yaml-loader') |
53 | | - .loader('js-yaml-loader') |
| 65 | + .use("js-yaml-loader") |
| 66 | + .loader("js-yaml-loader"); |
54 | 67 | }, |
55 | | -} |
| 68 | + |
| 69 | + async additionalPages() { |
| 70 | + return await packages.additionalPages(); |
| 71 | + } |
| 72 | +}; |
0 commit comments