Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

docs: add migraion pwa support #152

Merged
merged 1 commit into from
Oct 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"devDependencies": {
"@vuepress/plugin-pwa": "^1.5.4",
"node-sass": "^4.13.1",
"sass-loader": "^8.0.2",
"vuepress": "^1.3.0"
Expand Down
22 changes: 22 additions & 0 deletions src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,28 @@ module.exports = {
rel: 'icon',
href: '/logo.png'
}],
['link', { rel: 'manifest', href: '/manifest.json' }],
['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' }
],
[
'link',
{
rel: 'apple-touch-icon',
href: '/images/icons/apple-icon-152x152.png'
}
],
[
'meta',
{
name: 'msapplication-TileImage',
content: '/images/icons/ms-icon-144x144.png'
}
],
['meta', { name: 'msapplication-TileColor', content: '#000000' }],
// localization for china
[
'script',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/.vuepress/public/images/icons/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/.vuepress/public/images/icons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/.vuepress/public/images/icons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/.vuepress/public/images/icons/favicon.ico
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions src/.vuepress/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "Vue.js",
"short_name": "Vue.js",
"start_url": ".",
"display": "standalone",
"background_color": "#3eaf7c",
"description": "Vue.js framework documentation",
"icons": [
{
"src": "images/icons/android-icon-48x48.png",
"sizes": "48x48",
"type": "image/png"
},
{
"src": "images/icons/android-icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "images/icons/android-icon-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "images/icons/apple-icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "images/icons/android-icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
]
}
56 changes: 17 additions & 39 deletions src/.vuepress/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,21 @@
{
"name": "vuejs-org-theme",
"version": "0.1.0-alpha",
"description": "Vuejs.org v2.0 VuePress Theme",
"keywords": [
"documentation",
"generator",
"vue",
"vuepress"
],
"homepage": "https://github.com/vuejs/vuepress/packages/@vuepress/theme-default#readme",
"bugs": {
"url": "https://github.com/vuejs/vuepress/issues"
"devDependencies": {
"@vuepress/plugin-pwa": "^1.5.4",
"node-sass": "^4.13.1",
"sass-loader": "^8.0.2",
"vuepress": "^1.5.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vuepress.git",
"directory": "packages/@vuepress/theme-default"
"scripts": {
"dev": "yarn serve",
"serve": "vuepress dev src",
"build": "vuepress build src"
},
"license": "MIT",
"author": "Ben Hong",
"main": "index.js",
"dependencies": {
"@vuepress/plugin-active-header-links": "^1.3.1",
"@vuepress/plugin-nprogress": "^1.3.1",
"@vuepress/plugin-search": "^1.3.1",
"docsearch.js": "^2.5.2",
"lodash": "^4.17.15",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"vuepress-plugin-container": "^2.0.2",
"vuepress-plugin-smooth-scroll": "^0.0.3"
},
"publishConfig": {
"access": "public"
},
"maintainers": [
{
"name": "Ben Hong",
"email": "ben@bencodezen.io"
}
]
}
"@docsearch/css": "^1.0.0-alpha.27",
"@docsearch/js": "^1.0.0-alpha.27",
"algoliasearch": "^4.4.0",
"axios": "^0.19.1",
"intersection-observer": "^0.11.0",
"showdown": "^1.9.1"
}
}
Loading