Skip to content

Commit 602845e

Browse files
committed
Merge branch 'pelican' of github.com:pythonbrasil/wiki into pelican
2 parents 9658e24 + d706013 commit 602845e

12 files changed

Lines changed: 59 additions & 66 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ $ npm install
145145
Com as dependências instaladas para rodar a montagem do css com live reload basta rodar:
146146

147147
```
148-
$ gulp
148+
$ npm run gulp
149149
```
150150

151151
E caso queira rodar sem o live reload, somente para gerar o css para publicação rode:
152152

153153
```
154-
$ gulp build
154+
$ npm run gulp build
155155
```

content/pages/web.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
Title: Python para desenvolvimento Web
42
Slug: web
53
Template: page
@@ -31,10 +29,12 @@ Descubra as ferramentas e conteúdo para desenvolvimento Web:
3129

3230

3331
#### referencias do web2py (pt-BR)
32+
3433
- [web2py.com.br](https://web2py.com.br/) Site Brasileiro do framework (em desenvolvimento).
3534
- [wiki na Python brasil](https://wiki.python.org.br/web2py/)
3635
- [Grupo Telegram](https://t.me/web2pybrasil) Partricipe
3736

3837
#### Cursos de web2py
38+
3939
- [# PASSO-A-PASSO WEB2PY - Julia Rizza](https://juliarizza.wordpress.com/2015/08/03/passo-a-passo-web2py-1o-passo) ótimo curso da Julia Rizza, com o básico do framework.
40-
- [# Curso em Video do Bruno Rocha](https://www.youtube.com/playlist?list=PL5CWed0-MqAPLiMS5gJvWKZDBez-vcRuN) Curso Completo em Video do [Bruno Rocha](http://brunorocha.org/)
40+
- [# Curso em Video do Bruno Rocha](https://www.youtube.com/playlist?list=PL5CWed0-MqAPLiMS5gJvWKZDBez-vcRuN) Curso Completo em Video do [Bruno Rocha](http://brunorocha.org/)

themes/pybr/gulpfile.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var gulp = require('gulp'),
77
rename = require('gulp-rename'),
88
sync = require('browser-sync');
99

10-
gulp.task('scss', function () {
10+
gulp.task('scss', gulp.series(function (done) {
1111
gulp.src('./static/scss/pybr.scss')
1212
.pipe(sass({ errLogToConsole: true }))
1313
.pipe(prefix())
@@ -16,29 +16,33 @@ gulp.task('scss', function () {
1616
.pipe(gulp.dest('./static/css'))
1717
.pipe(notify("styles compiled"))
1818
.pipe(sync.reload({ stream: true }));
19-
});
19+
done();
20+
}));
2021

21-
gulp.task('js', function () {
22+
gulp.task('js', gulp.series(function (done) {
2223
gulp.src(['./node_modules/jquery/dist/jquery.min.js',
2324
'./node_modules/tether/dist/js/tether.min.js',
2425
'./node_modules/bootstrap/dist/js/bootstrap.min.js'])
2526
.pipe(gulp.dest('./static/js'))
2627
.pipe(notify("javascript updated"));
27-
});
28+
done();
29+
}));
2830

29-
gulp.task('fonts', function () {
31+
gulp.task('fonts', gulp.series(function (done) {
3032
gulp.src('./node_modules/font-awesome/fonts/*')
3133
.pipe(gulp.dest('./static/fonts'))
3234
.pipe(notify("fonts updated"));
33-
});
35+
done();
36+
}));
3437

35-
gulp.task('sync', function() {
38+
gulp.task('sync', gulp.series(function(done) {
3639
sync.init({
3740
proxy: 'localhost:8000'
3841
});
39-
gulp.watch('./static/scss/**/*.scss', ['scss']);
40-
gulp.watch('./static/js/**/*.js', sync.reload);
41-
});
42+
gulp.watch('./static/scss/**/*.scss', gulp.series(['scss']));
43+
gulp.watch('./static/js/**/*.js', gulp.series(sync.reload));
44+
done();
45+
}));
4246

43-
gulp.task('build', ['scss', 'js', 'fonts']);
44-
gulp.task('default', ['build', 'sync']);
47+
gulp.task('build', gulp.series(['scss', 'js', 'fonts']));
48+
gulp.task('default', gulp.series(['build', 'sync']));

themes/pybr/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,26 @@
44
"description": "Python.org.br Pelican Theme",
55
"main": "gulpfile.js",
66
"scripts": {
7+
"gulp": "gulp",
78
"test": "echo \"Error: no test specified\" && exit 1"
89
},
910
"author": "",
1011
"license": "MIT",
1112
"devDependencies": {
12-
"bootstrap": "4.0.0-alpha.6",
13+
"bootstrap": "4.1.3",
1314
"browser-sync": "^2.18.12",
1415
"ecstatic": "^2.1.0",
1516
"font-awesome": "^4.7.0",
16-
"gulp": "^3.9.1",
17+
"gulp": "^4.0.0",
1718
"gulp-autoprefixer": "^4.0.0",
1819
"gulp-clean-css": "^3.3.1",
20+
"gulp-cli": "^2.0.0",
1921
"gulp-minify": "^1.0.0",
2022
"gulp-notify": "^3.0.0",
2123
"gulp-rename": "^1.2.2",
22-
"gulp-sass": "^3.1.0"
24+
"gulp-sass": "^3.1.0",
25+
"jquery": "^3.3.1",
26+
"popper.js": "^1.14.3",
27+
"tether": "^1.3.3"
2328
}
2429
}

themes/pybr/static/css/pybr.min.css

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/pybr/static/js/bootstrap.min.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/pybr/static/js/tether.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/pybr/static/scss/_base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
footer {
5656
padding: 60px 0 20px 0;
57-
background-color: $gray-dark;
57+
background-color: $gray-900;
5858
color: $white;
5959
text-align: justify;
6060

themes/pybr/static/scss/_components.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ pre, code {
1010
margin: 50px 0;
1111

1212
.thumbnail {
13-
border: solid 1px $gray-lighter;
13+
border: solid 1px $gray-500;
1414
min-height: 415px;
1515
margin-bottom: 30px;
1616

1717
&:hover {
18-
border: solid 1px $gray;
18+
border: solid 1px $gray-700;
1919
}
2020

2121
img {

themes/pybr/static/scss/_home.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.home-background {
2-
background-color: $gray-lightest;
2+
background-color: $gray-300;
33

44
.page-description-link {
55
&:hover {
@@ -14,7 +14,7 @@
1414
vertical-align: top;
1515

1616
&:hover {
17-
background-color: $gray-lighter;
17+
background-color: $gray-500;
1818
}
1919

2020
.page-description-title {

0 commit comments

Comments
 (0)