Skip to content

Commit

Permalink
Enable Travis CI
Browse files Browse the repository at this point in the history
akoeplinger committed Dec 11, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0c79dfe commit 65ff8a7
Showing 3 changed files with 51 additions and 2 deletions.
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.2.2
cache: bundler
sudo: false
install:
- bundle config build.nokogiri --use-system-libraries
- travis_retry bundle install
- gem install mdl -v 0.2.1
- gem install html-proofer -v 2.6.1
script:
- jekyll build
- mdl -s markdownlint-config.rb . || true # markdownlint errors shouldn't fail the build for now
- htmlproof ./_site --disable-external --allow-hash-href --check-html
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Mono Project Website
====================
Mono Project Website [![Build Status](https://travis-ci.org/mono/website.svg)](https://travis-ci.org/mono/website)
==================================================================================================================

This repository contains the files used for generating the [Mono website](http://www.mono-project.com).

36 changes: 36 additions & 0 deletions markdownlint-config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
all
exclude_tag :line_length

# MD001: Header levels should only increment by one level at a time
# Justification: enforcing this now would break a gazillion pages
exclude_rule 'MD001'

# MD002/MD041: First header/line should be a h1 header
# Justification: we always have the page title as H1 in the layout
exclude_rule 'MD002'
exclude_rule 'MD041'

# MD003: Header style
# Justification: we actually like both atx and setext style headers
exclude_rule 'MD003'

# MD033: Inline HTML
# Justification: we don't want pure Markdown, inline HTML is fine
exclude_rule 'MD033'

# MD036: Emphasis used instead of a header
# Justification: enforcing this now would break a gazillion pages
exclude_rule 'MD036'

# MD039: Spaces inside link text
# Justification: there's nothing terribly wrong with doing that
exclude_rule 'MD039'

rule 'MD026', :punctuation => '.,;:!' # Trailing punctuation in header
rule 'MD029', :style => 'ordered' # Ordered list item prefix

# TODO: the following rules should ideally be enabled again
exclude_rule 'MD006' # Consider starting bulleted lists at the beginning of the line
exclude_rule 'MD007' # Unordered list indentation
exclude_rule 'MD030' # Spaces after list markers
exclude_rule 'MD032' # Lists should be surrounded by blank lines

0 comments on commit 65ff8a7

Please sign in to comment.