From 1c220c1afb062c752bafb2bb34d10274b6dcafda Mon Sep 17 00:00:00 2001 From: coskuntekin Date: Thu, 13 Jun 2013 18:31:59 +0300 Subject: [PATCH] #1 install middleman --- .gitignore | 21 + Gemfile | 7 + Gemfile.lock | 120 ++++++ README.md | 45 ++ config.rb | 89 ++++ config.ru | 4 + source/404.html | 38 ++ source/README.md | 388 ++++++++++++++++++ .../apple-touch-icon-114x114-precomposed.png | Bin 0 -> 1189 bytes .../apple-touch-icon-144x144-precomposed.png | Bin 0 -> 1475 bytes .../apple-touch-icon-57x57-precomposed.png | Bin 0 -> 730 bytes .../apple-touch-icon-72x72-precomposed.png | Bin 0 -> 854 bytes .../images/apple-touch-icon-precomposed.png | Bin 0 -> 730 bytes source/assets/images/apple-touch-icon.png | Bin 0 -> 730 bytes source/assets/images/favicon.ico | Bin 0 -> 766 bytes .../assets/javascripts/application.js.coffee | 3 + source/assets/javascripts/vendor/plugins.js | 24 ++ source/assets/stylesheets/_variables.css.sass | 0 .../assets/stylesheets/application.css.sass | 8 + source/data/lorem_ipsum.yml | 2 + source/humans.txt | 15 + source/index.html.haml | 6 + source/layouts/layout.haml | 37 ++ source/partials/_trackers.haml | 5 + source/robots.txt | 3 + 25 files changed, 815 insertions(+) create mode 100644 .gitignore create mode 100755 Gemfile create mode 100644 Gemfile.lock create mode 100644 README.md create mode 100755 config.rb create mode 100644 config.ru create mode 100755 source/404.html create mode 100755 source/README.md create mode 100755 source/assets/images/apple-touch-icon-114x114-precomposed.png create mode 100755 source/assets/images/apple-touch-icon-144x144-precomposed.png create mode 100755 source/assets/images/apple-touch-icon-57x57-precomposed.png create mode 100755 source/assets/images/apple-touch-icon-72x72-precomposed.png create mode 100755 source/assets/images/apple-touch-icon-precomposed.png create mode 100755 source/assets/images/apple-touch-icon.png create mode 100755 source/assets/images/favicon.ico create mode 100644 source/assets/javascripts/application.js.coffee create mode 100755 source/assets/javascripts/vendor/plugins.js create mode 100755 source/assets/stylesheets/_variables.css.sass create mode 100755 source/assets/stylesheets/application.css.sass create mode 100644 source/data/lorem_ipsum.yml create mode 100755 source/humans.txt create mode 100755 source/index.html.haml create mode 100755 source/layouts/layout.haml create mode 100755 source/partials/_trackers.haml create mode 100755 source/robots.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b07d201 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +*.gem +*.rbc +.bundle +.config +coverage +InstalledFiles +lib/bundler/man +pkg +rdoc +spec/reports +test/tmp +test/version_tmp +tmp + +# IDE +.idea + +# YARD artifacts +.yardoc +_yardoc +doc/ diff --git a/Gemfile b/Gemfile new file mode 100755 index 0000000..9791a33 --- /dev/null +++ b/Gemfile @@ -0,0 +1,7 @@ +# If you have OpenSSL installed, we recommend updating +# the following line to use "https" +source 'http://rubygems.org' + +gem 'middleman', '~>3.0.14' +gem 'middleman-livereload', '~> 3.0.1' +gem 'bootstrap-sass' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..f0759bb --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,120 @@ +GEM + remote: http://rubygems.org/ + specs: + activesupport (3.2.13) + i18n (= 0.6.1) + multi_json (~> 1.0) + bootstrap-sass (2.3.2.0) + sass (~> 3.2) + chunky_png (1.2.8) + coffee-script (2.2.0) + coffee-script-source + execjs + coffee-script-source (1.3.3) + compass (0.12.2) + chunky_png (~> 1.2) + fssm (>= 0.2.7) + sass (~> 3.1) + em-websocket (0.5.0) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.5.3) + eventmachine (1.0.3) + execjs (1.4.0) + multi_json (~> 1.0) + fssm (0.2.10) + haml (4.0.3) + tilt + hike (1.2.3) + http_parser.rb (0.5.3) + http_router (0.10.2) + rack (>= 1.0.0) + url_mount (~> 0.2.1) + i18n (0.6.1) + listen (0.7.3) + maruku (0.6.1) + syntax (>= 1.0.0) + middleman (3.0.14) + middleman-core (= 3.0.14) + middleman-more (= 3.0.14) + middleman-sprockets (~> 3.1.0) + middleman-core (3.0.14) + activesupport (~> 3.2.6) + bundler (~> 1.1) + listen (~> 0.7.3) + rack (~> 1.4.1) + rack-test (~> 0.6.1) + rb-fsevent (~> 0.9.3) + thor (~> 0.15.4) + tilt (~> 1.3.6) + middleman-livereload (3.0.1) + em-websocket (>= 0.2.0) + middleman-core (~> 3.0.2) + multi_json (~> 1.0) + rack-livereload + middleman-more (3.0.14) + coffee-script (~> 2.2.0) + coffee-script-source (~> 1.3.3) + compass (>= 0.12.2) + execjs (~> 1.4.0) + haml (>= 3.1.6) + i18n (~> 0.6.0, < 0.6.2) + maruku (~> 0.6.0) + middleman-core (= 3.0.14) + padrino-helpers (= 0.10.7) + sass (>= 3.1.20) + uglifier (~> 1.2.6) + middleman-sprockets (3.1.1) + middleman-core (>= 3.0.14) + padrino-helpers (= 0.10.7) + sprockets (~> 2.1) + sprockets-helpers (~> 1.0.0) + sprockets-sass (~> 1.0.0) + multi_json (1.7.6) + padrino-core (0.10.7) + activesupport (~> 3.2.0) + http_router (~> 0.10.2) + sinatra (~> 1.3.1) + thor (~> 0.15.2) + tilt (~> 1.3.0) + padrino-helpers (0.10.7) + i18n (~> 0.6) + padrino-core (= 0.10.7) + rack (1.4.5) + rack-livereload (0.3.15) + rack + rack-protection (1.5.0) + rack + rack-test (0.6.2) + rack (>= 1.0) + rb-fsevent (0.9.3) + sass (3.2.9) + sinatra (1.3.6) + rack (~> 1.4) + rack-protection (~> 1.3) + tilt (~> 1.3, >= 1.3.3) + sprockets (2.10.0) + hike (~> 1.2) + multi_json (~> 1.0) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + sprockets-helpers (1.0.1) + sprockets (~> 2.0) + sprockets-sass (1.0.1) + sprockets (~> 2.0) + tilt (~> 1.1) + syntax (1.0.0) + thor (0.15.4) + tilt (1.3.7) + uglifier (1.2.7) + execjs (>= 0.3.0) + multi_json (~> 1.3) + url_mount (0.2.1) + rack + +PLATFORMS + ruby + +DEPENDENCIES + bootstrap-sass + middleman (~> 3.0.14) + middleman-livereload (~> 3.0.1) diff --git a/README.md b/README.md new file mode 100644 index 0000000..b371177 --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +# Hierapolis + +This is yet an other private admin template which base on Twitter Bootstrap with Sass. + +**Hierapolis** Hierapolis (Greek: Ἱεράπολις 'sacred city') was an ancient Greco-Roman city in Phrygia located on hot springs in southwest Anatolia. Its ruins are adjacent to modern Pamukkale, Turkey. + +## Requirements + +TODO + +## Usage + +TODO + +## What Hierapolis included? + +* [Bootstrap](http://twitter.github.com/bootstrap/) + +## Bugs and Feedback + +If you discover any bugs or want to drop a line, feel free to create an issue on GitHub. + +http://github.com/lab2023/hierapolis/issues + +## Contributing + +Once you've made your great commits: + +1. Fork Template +2. Create a topic branch - `git checkout -b my_branch` +3. Push to your branch - `git push origin my_branch` +4. Create a Pull Request from your branch +5. That's it! + +## Credits + +Hierapolis is maintained and funded by [lab2023 - internet technologies](http://lab2023.com/) + +Thank you to all the [contributors!](https://github.com/lab2023/hierapolis/graphs/contributors) + +The names and logos for lab2023 are trademarks of lab2023, inc. + +## License + +Copyright 2012 lab2023 – internet technologies diff --git a/config.rb b/config.rb new file mode 100755 index 0000000..2300fe6 --- /dev/null +++ b/config.rb @@ -0,0 +1,89 @@ +### +# Compass +### + +# Bootstrap +# First: +# gem install sass-rails +# gem install bootstrap-sass +require 'bootstrap-sass' + +# Susy grids in Compass +# First: gem install compass-susy-plugin +# require 'susy' + +# Change Compass configuration +compass_config do |config| + config.output_style = :nested + config.http_path = '/' + config.images_dir = 'assets/images' + config.javascripts_dir = 'assets/javascripts' +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 (fake) files +# page "/this-page-has-no-template.html", :proxy => "/template-file.html" do +# @which_fake_page = "Rendering a fake page with a variable" +# end + +### +# Helpers +### + +# Automatic image dimensions on image_tag helper +activate :automatic_image_sizes + +# Live Reload +activate :livereload + +# Methods defined in the helpers block are available in templates +# helpers do +# def some_helper +# "Helping" +# end +# end + +set :css_dir, 'assets/stylesheets' +set :js_dir, 'assets/javascripts' +set :images_dir, 'assets/images' + +activate :directory_indexes + +# 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 :cache_buster + + # Use relative URLs + activate :relative_assets + + # Compress PNGs after build + # First: gem install middleman-smusher + # require "middleman-smusher" + # activate :smusher + + # Or use a different image path + #set :http_path, "/img/" +end \ No newline at end of file diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..e091b49 --- /dev/null +++ b/config.ru @@ -0,0 +1,4 @@ +require 'rubygems' +require 'middleman/rack' + +run Middleman.server \ No newline at end of file diff --git a/source/404.html b/source/404.html new file mode 100755 index 0000000..5e2e2db --- /dev/null +++ b/source/404.html @@ -0,0 +1,38 @@ + + + + + Page Not Found :( + + + +
+

Not found :(

+
+

Sorry, but the page you were trying to view does not exist.

+

It looks like this was the result of either:

+
    +
  • a mistyped address
  • +
  • an out-of-date link
  • +
+
+ + + +
+ + diff --git a/source/README.md b/source/README.md new file mode 100755 index 0000000..452c329 --- /dev/null +++ b/source/README.md @@ -0,0 +1,388 @@ +# HTML5 Boilerplate [http://html5boilerplate.com](http://html5boilerplate.com) + +## Changelog: + +### v.2.0 : August 10th, 2011 + +### v2.0 HIGHLIGHTS + +#### NORMALIZE.CSS + +We are now using [normalize.css](http://github.com/necolas/normalize.css/) developed by Nicolas Gallagher along with Jonathan Neal instead of the traditional CSS Reset stylesheet. + +normalize.css retains useful browser defaults and includes several common fixes to improve cross-browser (desktop and mobile) styling consistency. + +Lots of research has gone into normalize, verifying what are the default user agent styles provided by each browser. We can very specifically change only the ones we need to instead of the bulldozer approach. + +##### Why this is great news: + +* Who likes being so damn redundant and declaring: em, i { font-style: italic; } +* By using normalization instead of a reset + building up default styles, we use less styles and save bytes +* Less noise in your dev tools: when debugging, you don't have to trawl through every reset selector to reach the actual style that is causing the issue. +* More details here: http://necolas.github.com/normalize.css/ + + +#### PROMPT CHROME FRAME FOR IE6 +* With the latest release of Chrome frame which does not require admin access to be installed, we felt it was a good time to prompt IE 6 users to install Chrome Frame. (Using protocol-relative url and exact version for higher expires headers) + + +####BUILD SCRIPT++: Faster, @import inlining, appcache generation +* If 15 seconds was too long to wait before, you'll be happy with the changes. Via a new "intermediate" folder, we cut down build time by 80% or more. +* If you use @imports in your CSS to author in multiple files, the build script will inline all these together. This way, you have a maintainable authoring experience, and still a highly performant production version. +* Making an app that works offline is a badge of honor. Now with a flick of a config switch, the H5BP build script can autogenerate your cache manifest file with all the right info and wire it up. It'll also keep the manifest revved as you deploy new changes. + +##### ADDING RESPOND.JS +* Add respond.js as a shift to a responsive approach. Updated it to improved, comment-free version which would enable IEs to also apply styles using media queries. + + +#### PNGFIX & HANDHELD REMOVED +* Remove handheld.css as we do not think it was useful among the diverse feature phones +* We feel tools like imagealpha and pngquant are more useful than using stopgap fixes like belatedpng. + +### detailed 2.0 changelog + +#### .HTACCESS +* Disable directory browsing by default +* removed trailing slash redirects in htaccess. More: https://github.com/paulirish/html5-boilerplate/wiki/Proper-usage-of-trailing-slash-redirects #493 #515 +* Updating TTF mimetype to fix Google Chrome warning +* Improved support for all versions of Apache, incl workaround for bug in mod_filter: Fixes #441. Fixes #499. Fixes #535. Closes #549. (the grouping ticket) Ref #576 +* Use substring matching in gzip filter_module and re-enable gzip for some common MIME-types +* mod_deflate trigger rules modifications +* Add gzip support for XHTML, RSS, Atom +* Move font & SVG compression from FilesMatch to FilterProvider / AddOutputFilterByType +* Added m4a (Need it for IE9) and m4v (HandBrake default) MIME types. +* moved ETag removal configs closer +* added Header unset ETag In some servers setting "FileETag None" alone, is not enough. Removing header and setting it to None fixes the issue. +* Add `Options +FollowSymlinks` when `RewriteEngine` is used. Fixes #489. +* Some more security for PHP: turn off error display and turn on error logging +* Allow Blackberry to read vCards + + +#### BUILD SCRIPT +* CSSLint, JSLint, JSHint tools are now optionally available in the build script +* New features in build script: +* Added a files.bypass property which when set, will not compress the listed JavaScript files, but just silently passes it on to the publish folder without any change. +* Added a images.bypass with a list of image files or folders within the img directory that you do not want to be optimized. Fixes #564 +* Build script is compatible with php files now. it appears. fixes #392. +* Build script now generates appcache manifest. see #652 +* Test for ant version to head off problems with ant < 1.8.2 +* removes concatenated css files from index.html when they are linked to with link tag. Fixes #452 +* Added DOCTYPE so Eclipse and other IDE's do not complain about the lack of schema. http://stackoverflow.com/questions/363768/disable-dtd-warning-for-ant-scripts-in-eclipse +* Updated Windows optipng and jpegtran paths to include ${basedir} +* Minification affects all .css and .js files in /css and /js dirs, not just the ones explicitly included in concatenation. +* Build script: compress all images in subfolders, too. +* Added gae.js_dir and gae.css_dir so that App Engine projects can have the correct directory names swapped in their templates. +* added a second replace token statement so that "/css/style.css" gets swapped too. +* change *.png and *.jpg to **/*.png and **/*.jpg so that optimize commands reach subdirectories. +* Improved build script compatibility with Netbeans IDE. default.properties: added IDE generated files/folders to exclude from build script .gitignore: Filename case correction for Windows generated Thumb.db Fix #374 +* Adding properties to project.properties so that Google App Engine builds don't have "static" prepended when swapping for minified versions. +* console.log messages are no longer commented out. use log() instead + +* Much faster build process + +Intermediate stages are stored in a new intermediate folder, and only +files that should be published are copied into the publish folder. + +Files are not deleted at the beginning of every build, and files that +have already been processed will not be reprocessed unless the source +has changed. + +* Files are revved by SHA, not incrementally at each build + +Versioned files are referenced by a SHA-1 hash of the content rather +than a build number. This means that changing your HTML and rebuilding +will not cause your users to redownload the same CSS and JavaScript, and +a reverted change may cause users to use a copy that was previously +downloaded. It may be better to use only part of the hash so the HTTP +request is shorter. + +* copy files last This slightly simplifies copying because we don't have to exclude PNG, JPEG, or HTML files from the copy stage. it comes preminified, and we don't need to minify it again This also updates the HTML so that the script is not missing if the unminified scripts are unavailable on the server. This commit requires a change to existing HTML files :/ +* change the source htaccess rather than updating it +* update yuicompressor to 2.4.5. fixes media query minification issue. +* update htmlcompressor to 1.1 which uses the new yuicompressor for CSS. +* try not to re-optimize the same images every time +* Lots of bug fixes for edge cases and improved techniques.. + + + +#### INDEX.HTML +* Use minified jQuery by default. / jQuery updated to 1.6.2 +* Add respond.js as part of shift to 'mobile first' approach. +* Updated to Modernizr 2.0 Complete, Production minified. +* Prompt IE 6 users to install Chrome Frame, update chromeframe install to 1.0.3. Move chromeframe to bottom of page after the other scripts. also reference exact version for higher expires headers. Use protocol-relative url for chrome frame URL Fixes #495 +* Removing touch icon link tags and retaining only the comment. +* Encourage people to send the X-UA-Compatible HTTP header instead of leaving it in the HTML, to avoid edge case issues. Fixes #378. +* Remove the cache-busting query parameters from the HTML. +* Simplify the conditional comment containing code for IE 9+ and modern browsers +* Simpler escape for ``. See http://mathiasbynens.be/notes/etago for more information. +* Encourage people to use a custom Modernizr build containing only the features they need for that particular project. +* Added maximum touch-icon support as per http://mathiasbynens.be/notes/touch-icons#sizes +* Add a link to optional tags that could be added to the element: https://github.com/paulirish/html5-boilerplate/issues/482 +* Standardize the use of single and double quotes as per http://h5bp.com/d/The-markup★quotes +* Added Site Speed tracking for Google Analytics +* Using Modernizr.load/yepnope for loading Google Analytics. Fixes #542 +* Google Analytics now retrieved with Modernizr.load() for byte brevity and optimal speed + +#### STYLE.CSS +* Major: Now using css normalization instead of css reset + building up default styles. Fixes #412, #500, #534. Closes #456. Links #566 +* Add `'oldie'` class to conditional `` classnames. Fix #522 +* Add `img { max-width: 100%; }` to print styles to prevent images from getting cut off. +* Update clearfix to use 'micro' clearfix http://nicolasgallagher.com/micro-clearfix-hack/ +* Add placeholder CSS MQs for mobile-first approach +* Tweaking our hot pink ::selection. It is now #fe57a1, which is Festal (adj): pertaining to or befitting a feast, festival, holiday, or gala occasion. +* Use black for links when printing, refs #147 +* added vertical-align: middle to fix borders on image containers. Fixes #440 +* Add `` overflow fix for IE9. Group `` and `` rules in an 'embedded content' section of CSS file. Add {cursor:pointer} to ` in IE6/7. Avoids numerous layout and whitespace issues that result from setting {overflow:visible} to fix the odd inner spacing of those form elements. +* Add `{resize: vertical}` to `