Skip to content

Commit

Permalink
new light version - removing gemfile.lock
Browse files Browse the repository at this point in the history
new light version - adding travis file

new light version - adding branch to travis file

new light version - updating travis configs

new light version - removing travis extra file

new light version - removing extra configs

new light version - readding travis file

new light version - updating readme

new light version - adding rakefile

new light version - updating config.yml

new light version - updating travis

fixing travis

updating gemfile

removing jekyll-admin from build

fixing html-proofeer

adding jekyll admin

jekyll-admin as group

removing jekyll admin
  • Loading branch information
sergiokopplin committed Sep 11, 2016
1 parent b4e9ec2 commit 1657da4
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 189 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
_site
.sass-cache
.npm-debug.log
.lock
Gemfile.lock
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: ruby
rvm:
- 2.1

before_script:
- chmod +x travis.sh

script: ./travis.sh

env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true

branches:
only:
- gh-pages
- develop
18 changes: 7 additions & 11 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ gem 'jekyll'
gem 'rake'
gem 'rouge'
gem 'html-proofer'

group :jekyll_plugins do
gem 'jemoji'
gem 'jekyll-mentions'
gem 'jekyll-seo-tag'
gem 'jekyll-feed'
gem 'jekyll-sitemap'
gem 'jekyll-gist'
gem 'jekyll-paginate'
gem 'jekyll-admin'
end
gem 'jemoji'
gem 'jekyll-mentions'
gem 'jekyll-seo-tag'
gem 'jekyll-feed'
gem 'jekyll-sitemap'
gem 'jekyll-gist'
gem 'jekyll-paginate'
142 changes: 0 additions & 142 deletions Gemfile.lock

This file was deleted.

31 changes: 5 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
|
<b><a href="README.md#tests">Tests</a></b>
|
<b><a href="README.md#donate">Donate</a></b>
|
<b><a href="README.md#problems">Problems</a></b>
</p>

Expand All @@ -28,9 +26,9 @@

## What has inside?

- [Jekyll](https://jekyllrb.com/), [Gulp](http://gulpjs.com/), [BrowserSync](https://www.browsersync.io/), [Sass](http://sass-lang.com/) ~[RSCSS](http://rscss.io/)~ and [SVG](https://www.w3.org/Graphics/SVG/)
- [Jekyll](https://jekyllrb.com/), [Gulp](http://gulpjs.com/), [Sass](http://sass-lang.com/) ~[RSCSS](http://rscss.io/)~ and [SVG](https://www.w3.org/Graphics/SVG/)
- Tests with [Travis](https://travis-ci.org/)
- Google Speed: [98/100](https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fsergiokopplin.github.io%2Findigo%2F)
- Google Speed: [98/100](https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fsergiokopplin.github.io%2Findigo%2F);
- No JS. :sunglasses:

## Setup
Expand All @@ -40,9 +38,8 @@
2. Fork the project [Indigo](https://github.com/sergiokopplin/indigo/fork)
3. Edit `_config.yml` with your data.
4. `bundle install`
5. `npm i && npm i -g gulp`
6. `gulp`
7. open in your browser: `http://localhost:3000`
5. `npm run serve`
6. open in your browser: `http://localhost:4000`

## Settings

Expand All @@ -66,31 +63,13 @@ and lot of other options, like width, projects, pages, read-time, tags, related
- [Tests with Travis CI - Tutorial](http://www.raywenderlich.com/109418/travis-ci-tutorial)
- [Why Sass?](https://github.com/sergiokopplin/indigo/issues/117)

#### Create posts:

You can use the `initpost.sh` to create your new posts. Just follow the command:

```
./initpost.sh -c Post Title
```

The new file will be created at `_posts` with this format `date-title.md`.

## Tests

You can test your app with:

```bash
npm run test
# or
bundle exec htmlproof ./_site
````

## Donate

If you liked my work, buy me a coffee <3

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=U7B6UM6QWLG7E)
```

## Problems?

Expand Down
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'html/proofer'

# rake test
desc "build and test website"

task :test do
sh "bundle exec jekyll build"
HTML::Proofer.new("_site", {:href_ignore=> ['http://localhost:4000'], :verbose => true}).run
end
3 changes: 0 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ gems:
- jekyll-sitemap
- jekyll-gist
- jekyll-paginate
- jekyll-admin

jekyll-mentions:
base_url: https://github.com

exclude: [README.md, Gemfile, Gemfile.lock, node_modules, gulpfile.js, package.json, _site, src, vendor, CNAME, indigo-gh-pages.zip, Rakefile, screen-shot.png, travis.sh, tasks]
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "indigo",
"version": "1.0.0",
"homepage": "https://github.com/sergiokopplin/indigo#readme",
"license": "MIT",
"bugs": {
"url": "https://github.com/sergiokopplin/indigo/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sergiokopplin/indigo.git"
},
"license": "ISC",
"bugs": {
"url": "https://github.com/sergiokopplin/indigo/issues"
},
"homepage": "https://github.com/sergiokopplin/indigo#readme",
"scripts": {
"build": "bundle exec jekyll build",
"serve": "bundle exec jekyll serve",
"test": "bundle exec htmlproof ./_site"
"test": "bundle exec htmlproofer ./_site"
}
}
6 changes: 6 additions & 0 deletions travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e # halt script on error

echo 'Testing travis...'
bundle exec jekyll build
bundle exec htmlproofer ./_site --only-4xx

0 comments on commit 1657da4

Please sign in to comment.