Skip to content
This repository has been archived by the owner on Jan 18, 2018. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
coreydaley committed Mar 9, 2016
0 parents commit 6ff08fd
Show file tree
Hide file tree
Showing 36 changed files with 4,761 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global

# Ignore bundler config
/.bundle

# Ignore the build directory
/build

# Ignore cache
/.sass-cache
/.cache

# Ignore .DS_store file
.DS_Store
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
language: ruby
cache: bundler
rvm:
- 2.2.0
branches:
only:
- master
before_install:
- openssl aes-256-cbc -K $encrypted_53dcbc395559_key -iv $encrypted_53dcbc395559_iv
-in id_rsa_deploy.enc -out id_rsa_deploy -d
- chmod 600 id_rsa_deploy
- eval "$(ssh-agent -s)"
- ssh-add id_rsa_deploy
before_script:
- echo -e "Host discover-osdevelopers.rhcloud.com\n\tStrictHostKeyChecking no\n" >>
~/.ssh/config
script:
- mkdir build
- cd build
- git init
- git remote add production $REMOTE
- git pull production master
- git config --global user.email $USERMAIL
- git config --global user.name $USERNAME
- cd ..
- bundle exec middleman build
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then bundle exec middleman deploy; fi
env:
global:
- secure: ebtKYLIDnj5BnAEmur39/TsxDO4zJPXEGcOTr7HO9uQA3s1dHHK9utrqEGXHqUtJUWIBSIxDVdA5PH+H2CTilgni0vgb2EH2kMBQqpV/2d/4delKGfHxESvnczmL85Tecw5L8wl2ehGT6K8h+u8JrvM9en9utY08K7qvkJJa9lqFYQvPEvlues9I0Y/Sf+W6m0ePvF4ZOG/YPAF7rm5YvB8GjUSj9pRgg9uaUNfpwzbufOGSQu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XY3o40WAIRoHXK0qtP9OVQZLR0mrChOIte/HBlxAUh4=
- secure: CV5jkKHUV5haUK9pY+ZCLK9YS1VOui4eif0qHei9beb/08EGvM7xyzcoUIuaUUcRLjOfTfUAmso1tIVr+MaQYJZmatF3vidod8nnelw+yDvYuORWYyet3ysa3mqDGAi2UAGnlxQ8zu1ICG5SrB5+62Xnu7rLYMHJBfolaefjOcXePJCTFZX1vr5bD61zx911+2VAO4jjyKKDEUhLiAWxwXHajTOfYnN5boBmNnccHj+6iKBRS32fXkrThHMoiZXW4j/Qk7yc7Wd7Kx4LpGrs2zDtma/FYwmi+Y2onEd9UcWDq9TTUu2PpX77BHdMoqkabCy/9lq6w+J5mYw75nJBWH/YAoUdxupxOU31WZ1VHJWM9bYZugZvncjIQX9R2W39qDx9mFRBgpGftht2yrpEBv//snBMYceuJY1a9CcT7Sfap0Fdiv8TxMfRn8ucvsQdZX6lgc9spW8+fgZYn88VUDfzrqd4NvZ6b/ShPMRzYSpT6Y2/qLjN+1oGQBzVNWKm0cmb9ot/hrlpd00o9nMpWx1KGhtbcdOxUJxtgxVhoORPaDmwgdFpPYycsOkMuBfzTh1wRzfLOLIHEWqQeIVqx8Qn1y6fL5WVdB14sIA1+pSnnLLrszwW+aEBUxnnjyOLXGPaQHcNpHTV/zN91aV6UKRlCmcrTeWjlD5UcRS/feg=
18 changes: 18 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# If you do not have OpenSSL installed, update
# the following line to use "http://" instead
source 'https://rubygems.org'

gem "middleman", "~>3.3.12"
gem 'middleman-navtree'
gem "middleman-sitemap"
gem 'middleman-breadcrumbs'
gem 'middleman-deploy', '~> 1.0'

# Live-reloading plugin
gem "middleman-livereload", "~> 3.1.0"

# For faster file watcher updates on Windows:
gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw]

# Windows does not come with time zone data
gem "tzinfo-data", platforms: [:mswin, :mingw, :jruby]
149 changes: 149 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (4.1.15)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
celluloid (0.16.0)
timers (~> 4.0.0)
chunky_png (1.3.5)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
compass (1.0.3)
chunky_png (~> 1.2)
compass-core (~> 1.0.2)
compass-import-once (~> 1.0.5)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
sass (>= 3.3.13, < 3.5)
compass-core (1.0.3)
multi_json (~> 1.0)
sass (>= 3.3.0, < 3.5)
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
erubis (2.7.0)
eventmachine (1.0.9.1)
execjs (2.6.0)
ffi (1.9.10)
haml (4.0.7)
tilt
hike (1.2.3)
hitimes (1.2.3)
hooks (0.4.1)
uber (~> 0.0.14)
http_parser.rb (0.6.0)
i18n (0.7.0)
json (1.8.3)
kramdown (1.10.0)
listen (2.10.1)
celluloid (~> 0.16.0)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
middleman (3.3.12)
coffee-script (~> 2.2)
compass (>= 1.0.0, < 2.0.0)
compass-import-once (= 1.0.5)
execjs (~> 2.0)
haml (>= 4.0.5)
kramdown (~> 1.2)
middleman-core (= 3.3.12)
middleman-sprockets (>= 3.1.2)
sass (>= 3.4.0, < 4.0)
uglifier (~> 2.5)
middleman-breadcrumbs (0.3.3)
middleman (>= 3.3.5)
middleman-core (3.3.12)
activesupport (~> 4.1.0)
bundler (~> 1.1)
erubis
hooks (~> 0.3)
i18n (~> 0.7.0)
listen (>= 2.7.9, < 3.0)
padrino-helpers (~> 0.12.3)
rack (>= 1.4.5, < 2.0)
rack-test (~> 0.6.2)
thor (>= 0.15.2, < 2.0)
tilt (~> 1.4.1, < 2.0)
middleman-deploy (1.0.0)
middleman-core (>= 3.2)
net-sftp
ptools
middleman-livereload (3.1.1)
em-websocket (>= 0.2.0)
middleman-core (>= 3.0.2)
multi_json (~> 1.0)
rack-livereload
middleman-navtree (0.1.11)
middleman-core (>= 3.3)
titleize (~> 1.3)
middleman-sitemap (0.0.13)
middleman-core (>= 3.2.2)
middleman-sprockets (3.4.2)
middleman-core (>= 3.3)
sprockets (~> 2.12.1)
sprockets-helpers (~> 1.1.0)
sprockets-sass (~> 1.3.0)
minitest (5.8.4)
multi_json (1.11.2)
net-sftp (2.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.9.2)
padrino-helpers (0.12.5)
i18n (~> 0.6, >= 0.6.7)
padrino-support (= 0.12.5)
tilt (~> 1.4.1)
padrino-support (0.12.5)
activesupport (>= 3.1)
ptools (1.3.2)
rack (1.6.4)
rack-livereload (0.3.16)
rack
rack-test (0.6.3)
rack (>= 1.0)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
sass (3.4.21)
sprockets (2.12.4)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-helpers (1.1.0)
sprockets (~> 2.0)
sprockets-sass (1.3.1)
sprockets (~> 2.0)
tilt (~> 1.1)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
timers (4.0.4)
hitimes
titleize (1.4.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uber (0.0.15)
uglifier (2.7.2)
execjs (>= 0.3.0)
json (>= 1.8.0)

PLATFORMS
ruby

DEPENDENCIES
middleman (~> 3.3.12)
middleman-breadcrumbs
middleman-deploy (~> 1.0)
middleman-livereload (~> 3.1.0)
middleman-navtree
middleman-sitemap
tzinfo-data
wdm (~> 0.1.0)
105 changes: 105 additions & 0 deletions config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
###
# Settings
###
set :site_title, "OpenShift Discovery Center"
set :site_url, 'https://discover.openshift.com/'
set :openshift_assets, 'https://assets.openshift.net/content'


activate :navtree do |options|
options.data_file = 'tree.yml' # The data file where our navtree is stored.
options.automatic_tree_updates = true # The tree.yml file will be updated automatically when source files are changed.
options.ignore_files = ['sitemap.xml', 'robots.txt'] # An array of files we want to ignore when building our tree.
options.ignore_dir = ['assets'] # An array of directories we want to ignore when building our tree.
options.home_title = 'Home' # The default link title of the home page (located at "/"), if otherwise not detected.
options.promote_files = ['introduction.html.erb'] # Any files we might want to promote to the front of our navigation
options.ext_whitelist = [] # If you add extensions (like '.md') to this array, it builds a whitelist of filetypes for inclusion in the navtree.
end

activate :sitemap
activate :breadcrumbs
activate :livereload





###
# Compass
###

# Change Compass configuration
# compass_config do |config|
# config.output_style = :compact
# end

###
# Page options, layouts, aliases and proxies
###

# Per-page layout changes:
#
# With no layout
# page "/path/to/file.html", :layout => false
#
# With alternative layout
# page "/path/to/file.html", :layout => :otherlayout
#
# A path which all have the same layout
# with_layout :admin do
# page "/admin/*"
# end

# Proxy pages (https://middlemanapp.com/advanced/dynamic_pages/)
# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
# :which_fake_page => "Rendering a fake page with a local variable" }

###
# Helpers
###

# Automatic image dimensions on image_tag helper
# activate :automatic_image_sizes

# Reload the browser automatically whenever files change
# configure :development do
# activate :livereload
# end

# Methods defined in the helpers block are available in templates
# helpers do
# def some_helper
# "Helping"
# end
# end

set :css_dir, 'stylesheets'

set :js_dir, 'javascripts'

set :images_dir, 'images'

# Build-specific configuration
configure :build do
# For example, change the Compass output style for deployment
# activate :minify_css

# Minify Javascript on build
# activate :minify_javascript

# Enable cache buster
# activate :asset_hash

# Use relative URLs
# activate :relative_assets

# Or use a different image path
# set :http_prefix, "/Content/images/"
end

activate :deploy do |deploy|
deploy.method = :git
deploy.build_before = false # default: false
deploy.remote = 'production' # remote name or git url, default: origin
deploy.branch = 'master' # default: gh-pages
end
15 changes: 15 additions & 0 deletions data/tree.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
introduction.html.erb: "/developer/introduction.html.erb"
application-architect:
index.html.erb: "/application-architect/index.html.erb"
cluster-administrator:
index.html.erb: "/cluster-administrator/index.html.erb"
developer:
awesomestuff:
testing.html.erb: "/developer/awesomestuff/testing.html.erb"
index.html.erb: "/developer/index.html.erb"
testing.html.erb: "/developer/testing.html.erb"
index.html.erb: "/index.html.erb"
systems-platform-administrator:
index.html.erb: "/systems-platform-administrator/index.html.erb"
testing.html.erb: "/systems-platform-administrator/testing.html.erb"
Binary file added id_rsa_deploy.enc
Binary file not shown.
4 changes: 4 additions & 0 deletions source/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
AuthType Basic
AuthName "Restricted Access - Authorized Personel Only!"
AuthUserFile /var/lib/openshift/56dda2227628e1a518000009/app-root/data/.htpasswd
Require valid-user
10 changes: 10 additions & 0 deletions source/application-architect/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Welcome to Middleman
---

<div class="welcome">
<h1>Middleman is Watching</h1>
<p class="doc">
<%= link_to "Read Online Documentation", "http://middlemanapp.com/" %>
</p><!-- .doc -->
</div><!-- .welcome -->
10 changes: 10 additions & 0 deletions source/cluster-administrator/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Welcome to Middleman
---

<div class="welcome">
<h1>Middleman is Watching</h1>
<p class="doc">
<%= link_to "Read Online Documentation", "http://middlemanapp.com/" %>
</p><!-- .doc -->
</div><!-- .welcome -->
10 changes: 10 additions & 0 deletions source/developer/awesomestuff/testing.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Welcome to Middleman
---

<div class="welcome">
<h1>Middleman is Watching</h1>
<p class="doc">
<%= link_to "Read Online Documentation", "http://middlemanapp.com/" %>
</p><!-- .doc -->
</div><!-- .welcome -->
10 changes: 10 additions & 0 deletions source/developer/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Welcome to Middleman
---

<div class="welcome">
<h1>Middleman is Watching</h1>
<p class="doc">
<%= link_to "Read Online Documentation", "http://middlemanapp.com/" %>
</p><!-- .doc -->
</div><!-- .welcome -->
Loading

0 comments on commit 6ff08fd

Please sign in to comment.