Prepare release

This commit is contained in:
benweet 2014-09-02 23:19:42 +01:00
parent f4e4dc1dfd
commit 00cfbea6f5
12 changed files with 122 additions and 103 deletions

View File

@ -10,7 +10,7 @@ var less = require('gulp-less');
var inject = require('gulp-inject'); var inject = require('gulp-inject');
var replace = require('gulp-replace'); var replace = require('gulp-replace');
var bump = require('gulp-bump'); var bump = require('gulp-bump');
var git = require('gulp-git'); var childProcess = require('child_process');
var runSequence = require('run-sequence'); var runSequence = require('run-sequence');
var es = require('event-stream'); var es = require('event-stream');
var fs = require('fs'); var fs = require('fs');
@ -215,7 +215,7 @@ gulp.task('cache-manifest', function() {
}); });
gulp.task('cache-manifest-stackedit-io', function() { gulp.task('cache-manifest-stackedit-io', function() {
return makeCacheManifest('./public-stackedit.io/', '//cdn.stackedit.io/' + getVersion() + '/'); return makeCacheManifest('./public-stackedit.io/', '//stackedit.s3.amazonaws.com/' + getVersion() + '/');
}); });
gulp.task('clean', [ gulp.task('clean', [
@ -252,19 +252,34 @@ gulp.task('bump-patch', bumpTask('patch'));
gulp.task('bump-minor', bumpTask('minor')); gulp.task('bump-minor', bumpTask('minor'));
gulp.task('bump-major', bumpTask('major')); gulp.task('bump-major', bumpTask('major'));
gulp.task('git-add', function() { function exec(cmd, cb) {
return gulp.src('./public/res-min/**/*') childProcess.exec(cmd, {cwd: process.cwd()}, function(err, stdout, stderr) {
.pipe(git.add()); if(!err) {
util.log(stdout, stderr);
}
cb(err);
}); });
}
gulp.task('git-tag', function() { gulp.task('git-tag', function(cb) {
var version = getVersion(); var tag = 'v' + getVersion();
var message = 'Version ' + version;
var tag = 'v' + version;
git.commit(message, { args: '-a' }).end();
util.log('Tagging as: ' + util.colors.cyan(tag)); util.log('Tagging as: ' + util.colors.cyan(tag));
git.tag(tag, message); exec('git add ./public/res-min', function(err) {
git.push('origin', 'master', { args: ' --tags' }); if(err) {
return cb(err);
}
exec('git commit -a -m "Prepare release"', function(err) {
if(err) {
return cb(err);
}
exec('git tag -a ' + tag + ' -m "Version ' + getVersion() + '"', function(err) {
if(err) {
return cb(err);
}
exec('git push origin master --tags', cb);
});
});
});
}); });
function releaseTask(importance) { function releaseTask(importance) {
@ -272,7 +287,6 @@ function releaseTask(importance) {
runSequence( runSequence(
'bump-' + importance, 'bump-' + importance,
'default', 'default',
'git-add',
'git-tag', 'git-tag',
cb); cb);
}; };
@ -286,7 +300,7 @@ gulp.task('deploy-cdn', function() {
var s3Client = knox.createClient({ var s3Client = knox.createClient({
key: process.env.STACKEDIT_AWS_ACCESS_KEY_ID, key: process.env.STACKEDIT_AWS_ACCESS_KEY_ID,
secret: process.env.STACKEDIT_AWS_SECRET_KEY, secret: process.env.STACKEDIT_AWS_SECRET_KEY,
bucket: 'cdn.stackedit.io' bucket: 'stackedit'
}); });
var zippedFormat = { var zippedFormat = {
'text/plain': true, 'text/plain': true,
@ -296,6 +310,7 @@ gulp.task('deploy-cdn', function() {
'application/javascript': true, 'application/javascript': true,
'image/svg+xml': true 'image/svg+xml': true
}; };
function upload(file, cb) { function upload(file, cb) {
var headers = { var headers = {
'x-amz-acl': 'public-read', 'x-amz-acl': 'public-read',
@ -306,11 +321,12 @@ gulp.task('deploy-cdn', function() {
file.contentEncoding && (headers['Content-Encoding'] = file.contentEncoding); file.contentEncoding && (headers['Content-Encoding'] = file.contentEncoding);
s3Client.putBuffer(file.contents, file.dest + file.relative, headers, cb); s3Client.putBuffer(file.contents, file.dest + file.relative, headers, cb);
} }
var queue = async.queue(upload, 16).push; var queue = async.queue(upload, 16).push;
var version = getVersion(); var version = getVersion();
return gulp.src([ return gulp.src([
'./**/*', './**/*',
'!./res/bower-libs/**/*' '!./res/**/*'
], { ], {
cwd: './public', cwd: './public',
buffer: false buffer: false

View File

@ -2,6 +2,7 @@ var express = require('express');
var app = express(); var app = express();
var compression = require('compression'); var compression = require('compression');
var serveStatic = require('serve-static'); var serveStatic = require('serve-static');
var fs = require('fs');
// Configure ejs engine // Configure ejs engine
app.set('views', __dirname + '/../views'); app.set('views', __dirname + '/../views');
@ -29,7 +30,10 @@ app.post('/sshPublish', require('./ssh').publish);
app.post('/picasaImportImg', require('./picasa').importImg); app.post('/picasaImportImg', require('./picasa').importImg);
app.get('/downloadImport', require('./download').importPublic); app.get('/downloadImport', require('./download').importPublic);
var cdnLocation = staticOverride == 'public-stackedit.io' ? '//cdn.stackedit.io/' : ''; var packageJson = JSON.parse(fs.readFileSync(__dirname + '/../package.json', {
encoding: 'utf8'
}));
var cdnLocation = staticOverride == 'public-stackedit.io' ? '//stackedit.s3.amazonaws.com/' + packageJson.version + '/' : '';
app.use(function(req, res, next) { app.use(function(req, res, next) {
res.renderDebug = function(page) { res.renderDebug = function(page) {
return res.render(page, { return res.render(page, {

View File

@ -1,6 +1,6 @@
{ {
"name": "stackedit", "name": "stackedit",
"version": "4.1.4", "version": "4.1.5",
"description": "StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.", "description": "StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.",
"dependencies": { "dependencies": {
"bootstrap": "3.0.3", "bootstrap": "3.0.3",

View File

@ -1,6 +1,6 @@
{ {
"name": "stackedit", "name": "stackedit",
"version": "4.1.4", "version": "4.1.5",
"private": true, "private": true,
"description": "StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.", "description": "StackEdit is a free, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.",
"main": "res/main.js", "main": "res/main.js",
@ -29,7 +29,6 @@
"run-sequence": "^0.3.6", "run-sequence": "^0.3.6",
"gulp-clean": "^0.3.1", "gulp-clean": "^0.3.1",
"gulp-replace": "^0.4.0", "gulp-replace": "^0.4.0",
"gulp-git": "^0.5.0",
"gulp-bump": "^0.1.11", "gulp-bump": "^0.1.11",
"gulp-util": "^3.0.1", "gulp-util": "^3.0.1",
"knox": "^0.9.1", "knox": "^0.9.1",

View File

@ -1,5 +1,5 @@
CACHE MANIFEST CACHE MANIFEST
#Date Tue Sep 02 2014 00:20:47 GMT+0100 (IST) #Date Tue Sep 02 2014 23:19:42 GMT+0100 (IST)
CACHE: CACHE:
. .
@ -7,51 +7,51 @@ editor
viewer viewer
# start_inject_resources # start_inject_resources
//cdn.stackedit.io/4.1.4/res-min/main.js //stackedit.s3.amazonaws.com/4.1.5/res-min/main.js
//cdn.stackedit.io/4.1.4/res-min/require.js //stackedit.s3.amazonaws.com/4.1.5/res-min/require.js
//cdn.stackedit.io/4.1.4/res-min/img/button.svg //stackedit.s3.amazonaws.com/4.1.5/res-min/img/button.svg
//cdn.stackedit.io/4.1.4/res-min/img/code-block.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/code-block.png
//cdn.stackedit.io/4.1.4/res-min/img/comments.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/comments.png
//cdn.stackedit.io/4.1.4/res-min/img/conflict.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/conflict.png
//cdn.stackedit.io/4.1.4/res-min/img/diagram.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/diagram.png
//cdn.stackedit.io/4.1.4/res-min/img/gittip.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/gittip.png
//cdn.stackedit.io/4.1.4/res-min/img/icons.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/icons.png
//cdn.stackedit.io/4.1.4/res-min/img/icons2x.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/icons2x.png
//cdn.stackedit.io/4.1.4/res-min/img/live-preview.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/live-preview.png
//cdn.stackedit.io/4.1.4/res-min/img/logo.svg //stackedit.s3.amazonaws.com/4.1.5/res-min/img/logo.svg
//cdn.stackedit.io/4.1.4/res-min/img/math.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/math.png
//cdn.stackedit.io/4.1.4/res-min/img/menu-icon.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/menu-icon.png
//cdn.stackedit.io/4.1.4/res-min/img/menu.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/menu.png
//cdn.stackedit.io/4.1.4/res-min/img/publish.png //stackedit.s3.amazonaws.com/4.1.5/res-min/img/publish.png
//cdn.stackedit.io/4.1.4/res-min/img/stackedit-32.ico //stackedit.s3.amazonaws.com/4.1.5/res-min/img/stackedit-32.ico
//cdn.stackedit.io/4.1.4/res-min/img/syntax-highlighting.gif //stackedit.s3.amazonaws.com/4.1.5/res-min/img/syntax-highlighting.gif
//cdn.stackedit.io/4.1.4/res-min/img/toc.gif //stackedit.s3.amazonaws.com/4.1.5/res-min/img/toc.gif
//cdn.stackedit.io/4.1.4/res-min/font/PTSans-Bold-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/PTSans-Bold-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/PTSans-BoldItalic-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/PTSans-BoldItalic-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/PTSans-Italic-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/PTSans-Italic-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/PTSans-Regular-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/PTSans-Regular-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/SourceCodePro-Bold-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/SourceCodePro-Bold-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/SourceCodePro-Regular-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/SourceCodePro-Regular-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/SourceSansPro-Bold-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/SourceSansPro-Bold-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/SourceSansPro-BoldItalic-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/SourceSansPro-BoldItalic-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/SourceSansPro-Italic-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/SourceSansPro-Italic-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/SourceSansPro-Light-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/SourceSansPro-Light-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/SourceSansPro-LightItalic-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/SourceSansPro-LightItalic-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/SourceSansPro-Regular-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/SourceSansPro-Regular-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/cursive_standard-webfont.eot //stackedit.s3.amazonaws.com/4.1.5/res-min/font/cursive_standard-webfont.eot
//cdn.stackedit.io/4.1.4/res-min/font/cursive_standard-webfont.svg //stackedit.s3.amazonaws.com/4.1.5/res-min/font/cursive_standard-webfont.svg
//cdn.stackedit.io/4.1.4/res-min/font/cursive_standard-webfont.ttf //stackedit.s3.amazonaws.com/4.1.5/res-min/font/cursive_standard-webfont.ttf
//cdn.stackedit.io/4.1.4/res-min/font/cursive_standard-webfont.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/cursive_standard-webfont.woff
//cdn.stackedit.io/4.1.4/res-min/font/fontello.eot //stackedit.s3.amazonaws.com/4.1.5/res-min/font/fontello.eot
//cdn.stackedit.io/4.1.4/res-min/font/fontello.svg //stackedit.s3.amazonaws.com/4.1.5/res-min/font/fontello.svg
//cdn.stackedit.io/4.1.4/res-min/font/fontello.ttf //stackedit.s3.amazonaws.com/4.1.5/res-min/font/fontello.ttf
//cdn.stackedit.io/4.1.4/res-min/font/fontello.woff //stackedit.s3.amazonaws.com/4.1.5/res-min/font/fontello.woff
//cdn.stackedit.io/4.1.4/res-min/themes/base.css //stackedit.s3.amazonaws.com/4.1.5/res-min/themes/base.css
//cdn.stackedit.io/4.1.4/res-min/themes/blue.css //stackedit.s3.amazonaws.com/4.1.5/res-min/themes/blue.css
//cdn.stackedit.io/4.1.4/res-min/themes/default.css //stackedit.s3.amazonaws.com/4.1.5/res-min/themes/default.css
//cdn.stackedit.io/4.1.4/res-min/themes/gray.css //stackedit.s3.amazonaws.com/4.1.5/res-min/themes/gray.css
//cdn.stackedit.io/4.1.4/res-min/themes/night.css //stackedit.s3.amazonaws.com/4.1.5/res-min/themes/night.css
//cdn.stackedit.io/4.1.4/res-min/themes/school.css //stackedit.s3.amazonaws.com/4.1.5/res-min/themes/school.css
# end_inject_resources # end_inject_resources
@ -214,14 +214,14 @@ viewer
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/CombDiacritMarks.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/CombDiacritMarks.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Other.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Other.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/BasicLatin.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/CombDiacritMarks.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Other.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/BasicLatin.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/BasicLatin.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/CombDiacritMarks.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/CombDiacritMarks.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Other.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Other.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/BasicLatin.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/CombDiacritMarks.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Other.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Script/Regular/BasicLatin.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Script/Regular/BasicLatin.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Other.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Other.js?rev=2.4-beta-2
@ -387,9 +387,9 @@ viewer
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Bold/All.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Bold/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/All.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Bold/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/All.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Bold/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Bold/All.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Bold/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/All.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/Main.js?rev=2.4-beta-2
@ -399,12 +399,12 @@ viewer
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/All.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/PrivateUse.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/PrivateUse.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/PrivateUse.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/All.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/PrivateUse.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/PrivateUse.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/PrivateUse.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/All.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/All.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/PrivateUse.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/PrivateUse.js?rev=2.4-beta-2

View File

@ -1,5 +1,5 @@
CACHE MANIFEST CACHE MANIFEST
#Date Tue Sep 02 2014 00:20:47 GMT+0100 (IST) #Date Tue Sep 02 2014 23:19:42 GMT+0100 (IST)
CACHE: CACHE:
. .
@ -9,23 +9,6 @@ viewer
# start_inject_resources # start_inject_resources
res-min/main.js res-min/main.js
res-min/require.js res-min/require.js
res-min/img/button.svg
res-min/img/code-block.png
res-min/img/comments.png
res-min/img/conflict.png
res-min/img/diagram.png
res-min/img/gittip.png
res-min/img/icons.png
res-min/img/icons2x.png
res-min/img/live-preview.png
res-min/img/logo.svg
res-min/img/math.png
res-min/img/menu-icon.png
res-min/img/menu.png
res-min/img/publish.png
res-min/img/stackedit-32.ico
res-min/img/syntax-highlighting.gif
res-min/img/toc.gif
res-min/font/PTSans-Bold-webfont.woff res-min/font/PTSans-Bold-webfont.woff
res-min/font/PTSans-BoldItalic-webfont.woff res-min/font/PTSans-BoldItalic-webfont.woff
res-min/font/PTSans-Italic-webfont.woff res-min/font/PTSans-Italic-webfont.woff
@ -46,6 +29,23 @@ res-min/font/fontello.eot
res-min/font/fontello.svg res-min/font/fontello.svg
res-min/font/fontello.ttf res-min/font/fontello.ttf
res-min/font/fontello.woff res-min/font/fontello.woff
res-min/img/button.svg
res-min/img/code-block.png
res-min/img/comments.png
res-min/img/conflict.png
res-min/img/diagram.png
res-min/img/gittip.png
res-min/img/icons.png
res-min/img/icons2x.png
res-min/img/live-preview.png
res-min/img/logo.svg
res-min/img/math.png
res-min/img/menu-icon.png
res-min/img/menu.png
res-min/img/publish.png
res-min/img/stackedit-32.ico
res-min/img/syntax-highlighting.gif
res-min/img/toc.gif
res-min/themes/base.css res-min/themes/base.css
res-min/themes/blue.css res-min/themes/blue.css
res-min/themes/default.css res-min/themes/default.css
@ -167,8 +167,6 @@ res-min/themes/school.css
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SpacingModLetters.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SpacingModLetters.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Bold/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Regular/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/BasicLatin.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/BasicLatin.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Other.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Other.js?rev=2.4-beta-2
@ -177,6 +175,8 @@ res-min/themes/school.css
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Other.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Other.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/PUA.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/PUA.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Bold/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Regular/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Greek/Bold/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Greek/Bold/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Greek/BoldItalic/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Greek/BoldItalic/Main.js?rev=2.4-beta-2
//cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Greek/Italic/Main.js?rev=2.4-beta-2 //cdn.mathjax.org/mathjax/2.4-latest/jax/output/HTML-CSS/fonts/TeX/Greek/Italic/Main.js?rev=2.4-beta-2

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>StackEdit - Privacy Policy</title> <title>StackEdit - Privacy Policy</title>
<link rel="stylesheet" href="https://cdn.stackedit.io/latest/res-min/themes/base.css" /> <link rel="stylesheet" href="https://stackedit.s3.amazonaws.com/latest/res-min/themes/base.css" />
</head> </head>
<body><div class="container"><h1 id="stackedit-privacy-policy">StackEdit — Privacy Policy</h1> <body><div class="container"><h1 id="stackedit-privacy-policy">StackEdit — Privacy Policy</h1>

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
define([], function() { define([], function() {
var constants = {}; var constants = {};
constants.VERSION = "4.1.4"; constants.VERSION = "4.1.5";
constants.MAIN_URL = "https://stackedit.io/"; constants.MAIN_URL = "https://stackedit.io/";
constants.GOOGLE_ANALYTICS_ACCOUNT_ID = "UA-39556145-1"; constants.GOOGLE_ANALYTICS_ACCOUNT_ID = "UA-39556145-1";
constants.GOOGLE_API_KEY = "AIzaSyAeCU8CGcSkn0z9js6iocHuPBX4f_mMWkw"; constants.GOOGLE_API_KEY = "AIzaSyAeCU8CGcSkn0z9js6iocHuPBX4f_mMWkw";

View File

@ -1300,7 +1300,7 @@
<div class="modal-body"> <div class="modal-body">
<p>This feature is restricted to sponsor users as it's a web service hosted on Amazon EC2. <p>This feature is restricted to sponsor users as it's a web service hosted on Amazon EC2.
Note that sponsoring StackEdit would cost you only $5/year.</p> Note that sponsoring StackEdit would cost you only $5/year.</p>
<p>To see how a PDF looks <a target="_blank" href="http://cdn.stackedit.io/latest/Welcome%20document.pdf">click here</a>.</p> <p>To see how a PDF looks <a target="_blank" href="http://stackedit.s3.amazonaws.com/latest/Welcome%20document.pdf">click here</a>.</p>
<blockquote><b>Tip:</b> PDFs are fully customizable via Settings>Advanced>PDF template/options.</blockquote> <blockquote><b>Tip:</b> PDFs are fully customizable via Settings>Advanced>PDF template/options.</blockquote>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">

View File

@ -26,7 +26,7 @@ define([
'<head>', '<head>',
'<meta charset="utf-8">', '<meta charset="utf-8">',
'<title><%= documentTitle %></title>', '<title><%= documentTitle %></title>',
'<link rel="stylesheet" href="https://cdn.stackedit.io/latest/res-min/themes/base.css" />', '<link rel="stylesheet" href="https://stackedit.s3.amazonaws.com/latest/res-min/themes/base.css" />',
'<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>', '<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>',
'</head>', '</head>',
'<body><div class="container"><%= documentHTML %></div></body>', '<body><div class="container"><%= documentHTML %></div></body>',

View File

@ -270,7 +270,7 @@ define([
settings = JSON.parse(localStorage.settings); settings = JSON.parse(localStorage.settings);
if(settings.template) { if(settings.template) {
settings.template = settings.template.replace('https://stackedit.io/libs/MathJax/', 'https://cdn.mathjax.org/mathjax/latest/'); settings.template = settings.template.replace('https://stackedit.io/libs/MathJax/', 'https://cdn.mathjax.org/mathjax/latest/');
settings.template = settings.template.replace('https://stackedit.io/', 'https://cdn.stackedit.io/latest/'); settings.template = settings.template.replace('https://stackedit.io/', 'https://stackedit.s3.amazonaws.com/latest/');
} }
settings.pdfTemplate && (settings.pdfTemplate = settings.pdfTemplate.replace('http://localhost/libs/MathJax/', 'https://cdn.mathjax.org/mathjax/latest/')); settings.pdfTemplate && (settings.pdfTemplate = settings.pdfTemplate.replace('http://localhost/libs/MathJax/', 'https://cdn.mathjax.org/mathjax/latest/'));
localStorage.settings = JSON.stringify(settings); localStorage.settings = JSON.stringify(settings);