Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Docs: Remove archive generation from the site
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Nov 21, 2017
1 parent 9f323f2 commit 7f2035e
Show file tree
Hide file tree
Showing 15 changed files with 217 additions and 2,829 deletions.
6 changes: 3 additions & 3 deletions docs/build/scripts.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/build/styles.css

Large diffs are not rendered by default.

28 changes: 5 additions & 23 deletions docs/index.html

Large diffs are not rendered by default.

28 changes: 5 additions & 23 deletions docs/ru/index.html

Large diffs are not rendered by default.

313 changes: 159 additions & 154 deletions gh-pages/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,173 +6,178 @@ module.exports = function(grunt) {
var debug = !!grunt.option('debug');

grunt.initConfig({
pkg: grunt.file.readJSON('../package.json'),
banner: '/* Author: Artem Sapegin, http://sapegin.me, <%= grunt.template.today("yyyy") %> */\n',
modernizr: {
main: {
devFile: 'vendor/modernizr.js',
outputFile: '../docs/build/modernizr.js',
dest: '../docs/build/modernizr.js',
extra: {
load: false
},
files: {
src: ['../docs/build/scripts.js', '../docs/build/styles.css']
}
}
},
concat: {
main: {
src: [
'js/mylibs/htmlhl.js',
'js/libs/doT.min.js',
'js/libs/jszip.js',
'js/libs/jszip-deflate.js',
'js/libs/store+json2.min.js',
'tamia/vendor/*.js',
'tamia/tamia/tamia.js',
'js/main.js'
],
dest: '../docs/build/scripts.js'
}
pkg: grunt.file.readJSON('../package.json'),
banner: '/* Author: Artem Sapegin, http://sapegin.me, <%= grunt.template.today("yyyy") %> */\n',
modernizr: {
main: {
devFile: 'vendor/modernizr.js',
outputFile: '../docs/build/modernizr.js',
dest: '../docs/build/modernizr.js',
extra: {
load: false,
},
files: {
src: ['../docs/build/scripts.js', '../docs/build/styles.css'],
},
},
uglify: {
main: {
options: {
banner: '<%= banner %>',
compress: {
global_defs: {
DEBUG: debug
}
}
},
files: {
'<%= concat.main.dest %>': '<%= concat.main.dest %>'
}
}
},
concat: {
main: {
src: [
'js/mylibs/htmlhl.js',
'js/libs/doT.min.js',
'js/libs/store+json2.min.js',
'tamia/vendor/*.js',
'tamia/tamia/tamia.js',
'js/main.js',
],
dest: '../docs/build/scripts.js',
},
stylus: {
},
uglify: {
main: {
options: {
'include css': true,
urlfunc: 'embedurl',
banner: '<%= banner %>',
define: {
DEBUG: debug
compress: {
global_defs: {
DEBUG: debug,
},
},
paths: ['tamia'],
use: [
function() {
return (require('autoprefixer-stylus'))({browsers: ['last 2 versions', 'ie 9']});
}, debug || (require('csso-stylus'))
]
},
compile: {
files: {
'../docs/build/styles.css': 'styles/index.styl'
}
}
},
sweet: {
content_dir: 'content',
publish_dir: '../docs',
templates_dir: 'templates',
default_template_id: 'template',
langs: ['ru', 'en'],
root_lang: 'en',
url_prefixes: {
ru: '/ru/',
en: '/'
},
uri_prefixes: {
ru: '/ru/',
en: '/'
},
files: {
modernizr: {
path: '../docs/build/modernizr.js',
href: '/build/modernizr.js?{version}'
},
css: {
path: '../docs/build/styles.css',
href: '/build/styles.css?{version}'
},
js: {
path: '<%= concat.main.dest %>',
href: '/build/scripts.js?{version}'
},
sljs: {
path: '../docs/src/social-likes.min.js',
href: '/src/social-likes.min.js?{version}'
},
slcss_classic: {
path: '../docs/src/social-likes_classic.css',
href: '/src/social-likes_classic.css?{version}'
},
slcss_flat: {
path: '../docs/src/social-likes_flat.css',
href: '/src/social-likes_flat.css?{version}'
},
slcss_birman: {
path: '../docs/src/social-likes_birman.css',
href: '/src/social-likes_birman.css?{version}'
}
}
'<%= concat.main.dest %>': '<%= concat.main.dest %>',
},
},
replace: {
version: {
files: {
'../docs/index.html': '../docs/index.html',
'../docs/ru/index.html': '../docs/ru/index.html'
},
stylus: {
options: {
'include css': true,
urlfunc: 'embedurl',
banner: '<%= banner %>',
define: {
DEBUG: debug,
},
paths: ['tamia'],
use: [
function() {
return require('autoprefixer-stylus')({ browsers: ['last 2 versions', 'ie 9'] });
},
options: {
patterns: [
{
match: /(<!\-\-VERSION\-\->).*?(<!\-\-\/VERSION\-\->)/g,
replacement: '$1<%= pkg.version %>$2'
}
]
}
}
debug || require('csso-stylus'),
],
},
compile: {
files: {
'../docs/build/styles.css': 'styles/index.styl',
},
},
connect: {
server: {
options: {
port: 9000,
base: '.'
}
}
},
sweet: {
content_dir: 'content',
publish_dir: '../docs',
templates_dir: 'templates',
default_template_id: 'template',
langs: ['ru', 'en'],
root_lang: 'en',
url_prefixes: {
ru: '/ru/',
en: '/',
},
watch: {
livereload: {
options: {
livereload: true
},
files: ['<%= concat.main.dest %>', '../docs/build/styles.css']
uri_prefixes: {
ru: '/ru/',
en: '/',
},
files: {
modernizr: {
path: '../docs/build/modernizr.js',
href: '/build/modernizr.js?{version}',
},
concat: {
options: {
atBegin: true
},
files: '<%= concat.main.src %>',
tasks: 'concat'
css: {
path: '../docs/build/styles.css',
href: '/build/styles.css?{version}',
},
stylus: {
options: {
atBegin: true
},
files: 'styles/**',
tasks: 'stylus'
js: {
path: '<%= concat.main.dest %>',
href: '/build/scripts.js?{version}',
},
sweet: {
options: {
atBegin: true
},
files: ['content/**', 'templates/**'],
tasks: 'sweet'
}
}
}
);
sljs: {
path: '../docs/src/social-likes.min.js',
href: '/src/social-likes.min.js?{version}',
},
slcss_classic: {
path: '../docs/src/social-likes_classic.css',
href: '/src/social-likes_classic.css?{version}',
},
slcss_flat: {
path: '../docs/src/social-likes_flat.css',
href: '/src/social-likes_flat.css?{version}',
},
slcss_birman: {
path: '../docs/src/social-likes_birman.css',
href: '/src/social-likes_birman.css?{version}',
},
},
},
replace: {
version: {
files: {
'../docs/index.html': '../docs/index.html',
'../docs/ru/index.html': '../docs/ru/index.html',
},
options: {
patterns: [
{
match: /(<!\-\-VERSION\-\->).*?(<!\-\-\/VERSION\-\->)/g,
replacement: '$1<%= pkg.version %>$2',
},
],
},
},
},
connect: {
server: {
options: {
port: 9000,
base: '.',
},
},
},
watch: {
livereload: {
options: {
livereload: true,
},
files: ['<%= concat.main.dest %>', '../docs/build/styles.css'],
},
concat: {
options: {
atBegin: true,
},
files: '<%= concat.main.src %>',
tasks: 'concat',
},
stylus: {
options: {
atBegin: true,
},
files: 'styles/**',
tasks: 'stylus',
},
sweet: {
options: {
atBegin: true,
},
files: ['content/**', 'templates/**'],
tasks: 'sweet',
},
},
});

return grunt.registerTask('default', ['concat', 'uglify', 'stylus', 'modernizr', 'sweet', 'replace']);
return grunt.registerTask('default', [
'concat',
'uglify',
'stylus',
'modernizr',
'sweet',
'replace',
]);
};
10 changes: 4 additions & 6 deletions gh-pages/content/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ titleTwitter: Share link on Twitter
titlePlusone: Share link on Google+
titlePinterest: Share image on Pinterest
singleTitle: Share
downloadArchive: Download the Buttons
or: or
browseCode: view source
onGitHub: on GitHub
archiveContains: Version <a href="https://github.com/sapegin/social-likes/releases/"><!--VERSION--><!--/VERSION--></a>. Archive contains all you need to use like buttons with chosen options.
or: Or
browseCode: install manually
archiveContains: Version <a href="https://github.com/sapegin/social-likes/releases/"><!--VERSION--><!--/VERSION--></a>.
archiveFooter: <a href="http://sapegin.github.com/social-likes/">Social Likes</a> — <a href="https://github.com/sapegin/social-likes/Readme.md">documentation</a>
docs: <a href="https://github.com/sapegin/social-likes/blob/master/Readme.md">Documentation</a> and advanced customization examples.<br>Report bugs <a href="https://github.com/sapegin/social-likes/issues">on GitHub</a>.
docs: <a href="https://github.com/sapegin/social-likes/blob/master/Readme.md">Documentation</a> and advanced customization examples.
footer: © 2014 <a href="https://github.com/sapegin">Artem Sapegin</a> and contributors. Flat skin: <a href="http://genn.org/">Genn Osypenko</a>, Birman skin: <a href="http://ilyabirman.net/">Ilya Birman</a>
10 changes: 4 additions & 6 deletions gh-pages/content/ru/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ titleTwitter: Поделиться ссылкой в Твиттере
titlePlusone: Поделиться ссылкой в Гугл-плюсе
titlePinterest: Поделиться картинкой на Пинтересте
singleTitle: Поделиться
downloadArchive: Скачать кнопки
or: или
browseCode: посмотреть код
onGitHub: на Гитхабе
archiveContains: Версия <a href="https://github.com/sapegin/social-likes/releases/"><!--VERSION--><!--/VERSION--></a>. В архиве есть всё необходимое для подключения кнопок с выбранными параметрами.
or: Или
browseCode: установите вручную
archiveContains: Версия <a href="https://github.com/sapegin/social-likes/releases/"><!--VERSION--><!--/VERSION--></a>.
archiveFooter: <a href="http://sapegin.github.com/social-likes/">Social Likes</a> — <a href="https://github.com/sapegin/social-likes/Readme.md">документация</a>
docs: <a href="https://github.com/sapegin/social-likes/blob/master/Readme.md">Документация</a>, примеры настройки и расширения.<br>Об ошибках пишите <a href="https://github.com/sapegin/social-likes/issues">на Гитхаб</a>.
docs: <a href="https://github.com/sapegin/social-likes/blob/master/Readme.md">Документация</a>, примеры настройки и расширения.
footer: © 2014 <a href="https://github.com/sapegin">Артём Сапегин</a> и другие. Плоский скин: <a href="http://genn.org/">Гена Осипенко</a>, скин Бирмана: <a href="http://ilyabirman.ru/">Илья Бирман</a>
Loading

0 comments on commit 7f2035e

Please sign in to comment.