2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

docs(1731): remove GA & allow deploy previews (#1732)

This commit is contained in:
Jeff Sagal
2022-12-16 11:21:58 -08:00
committed by GitHub
parent 709905da27
commit c886fcfc67
4 changed files with 10 additions and 13 deletions
-6
View File
@@ -1,12 +1,6 @@
const isDeployPreview = require('./isDeployPreview')
module.exports = [
[
'@vuepress/google-analytics',
{
ga: isDeployPreview ? '' : 'UA-12818324-8',
},
],
[
'@vuepress/pwa',
{
@@ -27,6 +27,15 @@ async function getContributors() {
* @return {Promise<*[]|ProfileNode[]|postcss.ChildNode[]|Array<parser.Node>|[]>}
*/
async function getSponsors() {
/**
* Deploy previews don't have access to secrets.
* Return early since we don't have a token.
*/
if (process.env['DEPLOY_PREVIEW']) {
console.log('Skipping sponsors because this is a deploy preview.')
return []
}
const query = `
{
user(login: "sagalbot") {
+1 -2
View File
@@ -5,13 +5,12 @@
"scripts": {
"serve": "vuepress dev",
"build": "vuepress build",
"build:preview": "cross-env DEPLOY_PREVIEW=true vuepress build"
"build:preview": "cross-env DEPLOY_PREVIEW=1 vuepress build"
},
"devDependencies": {
"@octokit/graphql": "^4.3.1",
"@popperjs/core": "^2.1.0",
"@vuepress/plugin-active-header-links": "^1.4.0",
"@vuepress/plugin-google-analytics": "^1.4.0",
"@vuepress/plugin-nprogress": "^1.4.0",
"@vuepress/plugin-pwa": "^1.4.0",
"@vuepress/plugin-register-components": "^1.4.0",
-5
View File
@@ -1113,11 +1113,6 @@
dependencies:
lodash.debounce "^4.0.8"
"@vuepress/plugin-google-analytics@^1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@vuepress/plugin-google-analytics/-/plugin-google-analytics-1.4.0.tgz#0243da6ff80e47b1d41d0227cb8bcb040ebba90f"
integrity sha512-Q3jTyNovy81vlqfCQ5MewYU2K/brn0DfhAlJJnelXdbYH7XRe1IA3hZCcQQO73rzIMA/HxIsMBWevs8jTQF3QA==
"@vuepress/plugin-last-updated@^1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@vuepress/plugin-last-updated/-/plugin-last-updated-1.4.0.tgz#1657eee410ff5a7431b2a8e88d19e7e44bdc3951"