forked from ember-brasil/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into translate-configuring-ember-cli-page
- Loading branch information
Showing
232 changed files
with
1,071 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- url: http://www.creditas.com.br/ | ||
image: creditas.jpg | ||
alt: Creditas | ||
use: "Ember é usado em todas os serviços internos da Creditas" | ||
|
||
- url: https://mlabs.com.br/ | ||
image: mlabs.png | ||
alt: mLabs | ||
use: "Ember é utilizado no produto principal da mLabs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- name: Aurélio Saraiva | ||
github: https://github.com/aureliosaraiva | ||
twitter: https://twitter.com/aureliosaraiva | ||
image: aureliosaraiva.jpg | ||
bio: Desenvolvedor full-stack com mais de 10 anos de experiência, gosta de organizar meetups e compartilhar conhecimento com a comunidade | ||
|
||
- name: Danilo Vaz | ||
github: https://github.com/danilovaz | ||
twitter: https://twitter.com/_danilovaz | ||
image: danilovaz.jpg | ||
bio: Desenvolvedor Front-End, organizador do FrontUX - SJC e BeerJS - SJC, mentor Front-End no Training Center e um Ember Padawan. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
personal_ws-1.1 pt_BR 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#!/bin/bash | ||
# requires apt packages: aspell, aspell-pt_BR | ||
|
||
RED='\033[0;31m' | ||
GREEN='\033[0;32m' | ||
BLUE='\033[0;36m' | ||
NC='\033[0m' # No Color | ||
|
||
USE_LANGUAGE='pt_BR' | ||
|
||
MARKDOWN_FILES_CHANGED=`(git diff --name-only $TRAVIS_COMMIT_RANGE || true) | grep .md` | ||
|
||
if [ -z "$MARKDOWN_FILES_CHANGED" ] | ||
then | ||
echo -e "$GREEN>> No markdown file to check $NC" | ||
|
||
exit 0; | ||
fi | ||
|
||
echo -e "$BLUE>> Following markdown files were changed in this pull request (commit range: $TRAVIS_COMMIT_RANGE):$NC" | ||
echo "$MARKDOWN_FILES_CHANGED" | ||
|
||
FOUND_LANGUAGES=`echo "$MARKDOWN_FILES_CHANGED" | xargs cat | grep "permalink: /" | sed -E 's/permalink: \/(fr|en)\/.*/\1/g'` | ||
echo -e "$BLUE>> Languages recognized from the permalinks:$NC" | ||
echo "$FOUND_LANGUAGES" | ||
|
||
echo -e "$BLUE>> Will use this language as main one:$NC" | ||
echo "$USE_LANGUAGE" | ||
|
||
# cat all markdown files that changed | ||
TEXT_CONTENT_WITHOUT_METADATA=`cat $(echo "$MARKDOWN_FILES_CHANGED" | sed -E ':a;N;$!ba;s/\n/ /g')` | ||
# remove metadata tags | ||
TEXT_CONTENT_WITHOUT_METADATA=`echo "$TEXT_CONTENT_WITHOUT_METADATA" | grep -v -E '^(layout:|permalink:|date:|date_gmt:|authors:|categories:|tags:|cover:)(.*)'` | ||
# remove { } attributes | ||
TEXT_CONTENT_WITHOUT_METADATA=`echo "$TEXT_CONTENT_WITHOUT_METADATA" | sed -E 's/\{:([^\}]+)\}//g'` | ||
# remove html | ||
TEXT_CONTENT_WITHOUT_METADATA=`echo "$TEXT_CONTENT_WITHOUT_METADATA" | sed -E 's/<([^<]+)>//g'` | ||
# remove code blocks | ||
TEXT_CONTENT_WITHOUT_METADATA=`echo "$TEXT_CONTENT_WITHOUT_METADATA" | sed -n '/^\`\`\`/,/^\`\`\`/ !p'` | ||
# remove links | ||
TEXT_CONTENT_WITHOUT_METADATA=`echo "$TEXT_CONTENT_WITHOUT_METADATA" | sed -E 's/http(s)?:\/\/([^ ]+)//g'` | ||
|
||
echo -e "$BLUE>> Text content that will be checked (without metadata, html, and links):$NC" | ||
echo "$TEXT_CONTENT_WITHOUT_METADATA" | ||
|
||
echo -e "$BLUE>> Checking in 'en' (many technical words are in English anyway)...$NC" | ||
MISSPELLED=`echo "$TEXT_CONTENT_WITHOUT_METADATA" | aspell --lang=en --encoding=utf-8 --add-extra-dicts=./scripts/aspell.en.pws list | sort -u` | ||
|
||
echo -e "$BLUE>> Checking in '$USE_LANGUAGE' too..." | ||
MISSPELLED=`echo "$MISSPELLED" | aspell --lang=$USE_LANGUAGE --encoding=utf-8 --add-extra-dicts=./scripts/aspell.$USE_LANGUAGE.pws list | sort -u` | ||
|
||
NB_MISSPELLED=`echo "$MISSPELLED" | grep -Ev "^$" | wc -l` | ||
|
||
if [ "$NB_MISSPELLED" -gt 0 ] | ||
then | ||
echo -e "$RED>> Words that might be misspelled, please check:$NC" | ||
MISSPELLED=`echo "$MISSPELLED" | sed -E ':a;N;$!ba;s/\n/, /g'` | ||
echo "$MISSPELLED" | ||
COMMENT="$NB_MISSPELLED words might be misspelled, please check them: $MISSPELLED" | ||
|
||
echo -e "$BLUE>> Sending results in a comment on the Github pull request #$TRAVIS_PULL_REQUEST:$NC" | ||
curl -i -H "Authorization: token $GITHUB_TOKEN" \ | ||
-H "Content-Type: application/json" \ | ||
-X POST -d "{\"body\":\"$COMMENT\"}" \ | ||
https://api.github.com/repos/ember-brasil/website/issues/$TRAVIS_PULL_REQUEST/comments | ||
exit 1 | ||
else | ||
COMMENT="No spelling errors, congratulations!" | ||
echo -e "$GREEN>> $COMMENT $NC" | ||
|
||
echo -e "$BLUE>> Sending results in a comment on the Github pull request #$TRAVIS_PULL_REQUEST:$NC" | ||
curl -i -H "Authorization: token $GITHUB_TOKEN" \ | ||
-H "Content-Type: application/json" \ | ||
-X POST -d "{\"body\":\"$COMMENT\"}" \ | ||
https://api.github.com/repos/ember-brasil/website/issues/$TRAVIS_PULL_REQUEST/comments | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script type="text/javascript"> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||
|
||
ga('create', 'UA-105665012-1', 'auto'); | ||
ga('send', 'pageview'); | ||
</script> |
Oops, something went wrong.