mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-02 04:49:22 -06:00
Merge pull request #34 from cypress-io/docs/config
updated sitemap generator & deployment
This commit is contained in:
@@ -98,10 +98,9 @@ node_sass:
|
||||
precision: 5
|
||||
sourceComments: false
|
||||
|
||||
## https://github.com/hexojs/hexo-generator-sitemap
|
||||
## https://github.com/ludoviclefevre/hexo-generator-seo-friendly-sitemap
|
||||
sitemap:
|
||||
path: sitemap.xml
|
||||
template: ./sitemap_template.xml
|
||||
|
||||
## https://github.com/mamboer/hexo-filter-cleanup
|
||||
hfc_useref:
|
||||
@@ -144,6 +143,6 @@ hfc_favicons:
|
||||
## Docs: https://hexo.io/docs/deployment.html
|
||||
deploy:
|
||||
type: git
|
||||
repo: https://github.com/cypress-io/cypress-documentation
|
||||
repo: git@github.com:cypress-io/cypress-monorepo
|
||||
branch: gh-pages
|
||||
message: '[skip ci] deploying docs'
|
||||
|
||||
@@ -4,7 +4,7 @@ const clean = require('gulp-clean')
|
||||
const runSequence = require('run-sequence')
|
||||
|
||||
const revisionOpts = {
|
||||
dontGlobal: ['.ico', 'sitemap.xml', 'logo.png'],
|
||||
dontGlobal: ['.ico', 'sitemap.xml', 'sitemap.xsl', 'logo.png'],
|
||||
dontRenameFile: ['.html', 'CNAME'],
|
||||
dontUpdateReference: ['.html'],
|
||||
dontSearchFile: ['.js'],
|
||||
@@ -46,6 +46,6 @@ gulp.task('cname', () => {
|
||||
return gulp.src('CNAME').pipe(gulp.dest('public'))
|
||||
})
|
||||
|
||||
gulp.task('prep', (cb) => {
|
||||
gulp.task('prep:build', (cb) => {
|
||||
runSequence('clean:js', 'revision', 'clean:public', 'copyTmpToPublic', 'clean:tmp', 'cname', cb)
|
||||
})
|
||||
|
||||
@@ -6,12 +6,15 @@
|
||||
"version": "3.3.1"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run clean && hexo generate && npm run prep-build",
|
||||
"clean": "hexo clean",
|
||||
"clean-deps": "rm -rf node_modules",
|
||||
"clean-all": "npm run clean && npm run clean-deps",
|
||||
"clean-deps": "rm -rf node_modules",
|
||||
"convert": "node ./cy_scripts/convert.js",
|
||||
"deploy": "npm run build && hexo deploy",
|
||||
"build-prod": "hexo clean && hexo generate && gulp prep",
|
||||
"prep-build": "gulp prep:build",
|
||||
"prep-start": "gulp prep:start",
|
||||
"start": "hexo server --port 2222",
|
||||
"watch-dev": "hexo server --port 2222"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -34,7 +37,7 @@
|
||||
"hexo-generator-archive": "^0.1.4",
|
||||
"hexo-generator-category": "^0.1.3",
|
||||
"hexo-generator-index": "^0.2.0",
|
||||
"hexo-generator-sitemap": "^1.1.2",
|
||||
"hexo-generator-seo-friendly-sitemap": "0.0.20",
|
||||
"hexo-renderer-marked": "^0.2.10",
|
||||
"hexo-renderer-scss": "^1.0.2",
|
||||
"hexo-server": "^0.2.0",
|
||||
|
||||
Reference in New Issue
Block a user