Skip to content

Commit

Permalink
Merge pull request barryclark#13 from pmarsceill/add-ci
Browse files Browse the repository at this point in the history
Add CI for testing
  • Loading branch information
pmarsceill authored Oct 25, 2018
2 parents 89f9c5f + 6400e79 commit 74693a0
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"ignoreFiles" : [
"assets/css/just-the-docs.scss"
],
"extends": [
"stylelint-config-primer"
]
Expand Down
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: ruby
rvm:
- 2.3.0
env:
- TRAVIS_NODE_VERSION="9.3.0"

install:
- npm install
- bundle install

script:
- npm run test
- bundle exec jekyll build
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ Or install it yourself as:
Bug reports and pull requests are welcome on GitHub at https://github.com/pmarsceill/just-the-docs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
### Submitting code changes:
- Open a [Pull Request](https://github.com/pmarsceill/just-the-docs/pulls)
- Ensure all CI tests pass
- Await code review
- Bump the version number in `just-the-docs.gemspec` and `package.json` according to [semantic versioning](https://semver.org/).

## Development

To set up your environment to develop this theme, run `bundle install`.
Expand All @@ -43,16 +50,6 @@ Your theme is setup just like a normal Jekyll site! To test your theme, run `bun

When the theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.


### When your changes are ready:

- Open a [Pull Request](https://github.com/pmarsceill/just-the-docs/pulls)
- Await code review
- Bump the version number in `just-the-docs.gemspec`
- Run `script/build` to package the gem
- Run `gem push just-the-docs-<version>.gem` to publish the gem to Rubygems.org

## License

The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

2 changes: 1 addition & 1 deletion _sass/labels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
margin-right: $sp-1;
margin-left: $sp-1;
color: $white;
text-transform: uppercase;
vertical-align: middle;
background-color: $blue-100;
text-transform: uppercase;
@include fs-2;
}

Expand Down
2 changes: 2 additions & 0 deletions _sass/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
}
}

// stylelint-disable selector-no-type
body {
position: relative;
padding-bottom: $sp-10;
Expand All @@ -124,6 +125,7 @@ body {
padding-bottom: 0;
}
}
// stylelint-enable selector-no-type

.site-footer {
position: absolute;
Expand Down
3 changes: 1 addition & 2 deletions _sass/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
position: absolute;
top: 0;
right: 0;
z-index: 101;
height: 60px;
padding-top: $sp-4;
z-index: 101;
box-shadow: inset 0 -1px 0 $border-color;
}
}
Expand Down Expand Up @@ -89,7 +89,6 @@
}
}


.navigation-list-toggle {
position: absolute;
right: $sp-4;
Expand Down
10 changes: 6 additions & 4 deletions _sass/support/mixins/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@
@media (min-width: rem($value)) {
@content;
}
} @else {
}

@else {
@warn "No value could be retrieved from `#{$media-query}`. "
+ "Please make sure it is defined in `$media-queries` map.";
+ "Please make sure it is defined in `$media-queries` map.";
}
}

// Responsive container

@mixin container {
padding-left: $gutter-spacing-sm;
padding-right: $gutter-spacing-sm;
padding-left: $gutter-spacing-sm;

@include mq(md) {
padding-left: $gutter-spacing;
padding-right: $gutter-spacing;
padding-left: $gutter-spacing;
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
"stylelint": "^7.9.0",
"stylelint-config-primer": "^1.4.0"
},
"dependencies": {}
"dependencies": {},
"scripts": {
"test": "stylelint '**/*.scss'"
}
}

0 comments on commit 74693a0

Please sign in to comment.