Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit ba369aaa77bbef8db9104e4e42d6b0f5d76cc11e @georgeOsdDev committed Jul 29, 2012
Showing with 29,209 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +1 −0 LICENSE.md
  3. +1 −0 Procfile
  4. +37 −0 README.md
  5. +127 −0 docpad.coffee
  6. +40 −0 package.json
  7. +12 −0 src/documents/404.html.eco
  8. +15 −0 src/documents/500.html.eco
  9. +6 −0 src/documents/big/big1.html.md
  10. +8 −0 src/documents/big/big10.html.md
  11. +6 −0 src/documents/big/big11.html.md
  12. +7 −0 src/documents/big/big12.html.md
  13. +8 −0 src/documents/big/big13.html.md
  14. +6 −0 src/documents/big/big14.html.md
  15. +7 −0 src/documents/big/big15.html.md
  16. +6 −0 src/documents/big/big2.html.md
  17. +6 −0 src/documents/big/big3.html.md
  18. +9 −0 src/documents/big/big4.html.md
  19. +6 −0 src/documents/big/big5.html.md
  20. +6 −0 src/documents/big/big6.html.md
  21. +9 −0 src/documents/big/big7.html.md
  22. +6 −0 src/documents/big/big8.html.md
  23. +12 −0 src/documents/big/big9.html.md
  24. +11 −0 src/documents/big/index.html.coffee
  25. +7 −0 src/documents/deck.js/deck1.html.md
  26. +21 −0 src/documents/deck.js/deck10.html.md
  27. +10 −0 src/documents/deck.js/deck11.html.md
  28. +10 −0 src/documents/deck.js/deck2.html.md
  29. +7 −0 src/documents/deck.js/deck3.html.md
  30. +7 −0 src/documents/deck.js/deck4.html.md
  31. +7 −0 src/documents/deck.js/deck5.html.md
  32. +7 −0 src/documents/deck.js/deck6.html.md
  33. +17 −0 src/documents/deck.js/deck7.html.md
  34. +16 −0 src/documents/deck.js/deck8.html.md
  35. +7 −0 src/documents/deck.js/deck9.html.md
  36. +66 −0 src/documents/deck.js/index.html.coffee
  37. +8 −0 src/documents/h5slides/h5slides1.html.md
  38. +10 −0 src/documents/h5slides/h5slides2.html.md
  39. +6 −0 src/documents/h5slides/h5slides3.html.md
  40. +12 −0 src/documents/h5slides/h5slides4.html.md
  41. +22 −0 src/documents/h5slides/h5slides5.html.md
  42. +13 −0 src/documents/h5slides/h5slides6.html.md
  43. +11 −0 src/documents/h5slides/h5slides7.html.md
  44. +7 −0 src/documents/h5slides/h5slides8.html.md
  45. +7 −0 src/documents/h5slides/h5slides9.html.md
  46. +16 −0 src/documents/h5slides/index.html.coffee
  47. +13 −0 src/documents/impress.js/impress1.html.md
  48. +16 −0 src/documents/impress.js/impress10.html.md
  49. +13 −0 src/documents/impress.js/impress2.html.md
  50. +11 −0 src/documents/impress.js/impress3.html.md
  51. +12 −0 src/documents/impress.js/impress4.html.md
  52. +14 −0 src/documents/impress.js/impress5.html.md
  53. +22 −0 src/documents/impress.js/impress6.html.md
  54. +13 −0 src/documents/impress.js/impress7.html.md
  55. +10 −0 src/documents/impress.js/impress8.html.md
  56. +15 −0 src/documents/impress.js/impress9.html.md
  57. +38 −0 src/documents/impress.js/index.html.coffee
  58. +98 −0 src/documents/index.html.coffee
  59. +14 −0 src/documents/pages/start-ja.html.md
  60. +16 −0 src/documents/pages/start.html.md
  61. +7 −0 src/documents/scripts/script.js.coffee
  62. +110 −0 src/documents/styles/style.css.styl
  63. +25 −0 src/files/crossdomain.xml
  64. +48 −0 src/files/humans.txt
  65. BIN src/files/ico/apple-touch-icon-114-precomposed.png
  66. BIN src/files/ico/apple-touch-icon-144-precomposed.png
  67. BIN src/files/ico/apple-touch-icon-57-precomposed.png
  68. BIN src/files/ico/apple-touch-icon-72-precomposed.png
  69. BIN src/files/ico/favicon.ico
  70. BIN src/files/image/demo-big.png
  71. BIN src/files/image/demo-deck.png
  72. BIN src/files/image/demo-h5slides.png
  73. BIN src/files/image/demo-impress.png
  74. +4 −0 src/files/robots.txt
  75. +37 −0 src/files/vendor/big/big.css
  76. +43 −0 src/files/vendor/big/big.js
  77. +407 −0 src/files/vendor/deck/core/deck.core.css
  78. +498 −0 src/files/vendor/deck/core/deck.core.js
  79. +450 −0 src/files/vendor/deck/core/deck.core.scss
  80. +41 −0 src/files/vendor/deck/extensions/goto/deck.goto.css
  81. +7 −0 src/files/vendor/deck/extensions/goto/deck.goto.html
  82. +170 −0 src/files/vendor/deck/extensions/goto/deck.goto.js
  83. +46 −0 src/files/vendor/deck/extensions/goto/deck.goto.scss
  84. +13 −0 src/files/vendor/deck/extensions/hash/deck.hash.css
  85. +2 −0 src/files/vendor/deck/extensions/hash/deck.hash.html
  86. +142 −0 src/files/vendor/deck/extensions/hash/deck.hash.js
  87. +15 −0 src/files/vendor/deck/extensions/hash/deck.hash.scss
  88. +47 −0 src/files/vendor/deck/extensions/menu/deck.menu.css
  89. +187 −0 src/files/vendor/deck/extensions/menu/deck.menu.js
  90. +58 −0 src/files/vendor/deck/extensions/menu/deck.menu.scss
  91. +43 −0 src/files/vendor/deck/extensions/navigation/deck.navigation.css
  92. +3 −0 src/files/vendor/deck/extensions/navigation/deck.navigation.html
  93. +92 −0 src/files/vendor/deck/extensions/navigation/deck.navigation.js
  94. +56 −0 src/files/vendor/deck/extensions/navigation/deck.navigation.scss
  95. +28 −0 src/files/vendor/deck/extensions/scale/deck.scale.css
  96. +170 −0 src/files/vendor/deck/extensions/scale/deck.scale.js
  97. +31 −0 src/files/vendor/deck/extensions/scale/deck.scale.scss
  98. +18 −0 src/files/vendor/deck/extensions/status/deck.status.css
  99. +6 −0 src/files/vendor/deck/extensions/status/deck.status.html
  100. +95 −0 src/files/vendor/deck/extensions/status/deck.status.js
  101. +22 −0 src/files/vendor/deck/extensions/status/deck.status.scss
  102. +4 −0 src/files/vendor/deck/modernizr.custom.js
  103. +123 −0 src/files/vendor/deck/themes/style/neon.css
  104. +155 −0 src/files/vendor/deck/themes/style/neon.scss
  105. +84 −0 src/files/vendor/deck/themes/style/swiss.css
  106. +107 −0 src/files/vendor/deck/themes/style/swiss.scss
  107. +214 −0 src/files/vendor/deck/themes/style/web-2.0.css
  108. +250 −0 src/files/vendor/deck/themes/style/web-2.0.scss
  109. +43 −0 src/files/vendor/deck/themes/transition/fade.css
  110. +69 −0 src/files/vendor/deck/themes/transition/fade.scss
  111. +76 −0 src/files/vendor/deck/themes/transition/horizontal-slide.css
  112. +90 −0 src/files/vendor/deck/themes/transition/horizontal-slide.scss
  113. +94 −0 src/files/vendor/deck/themes/transition/vertical-slide.css
  114. +112 −0 src/files/vendor/deck/themes/transition/vertical-slide.scss
  115. +1,391 −0 src/files/vendor/html5slides/prettify.js
  116. +634 −0 src/files/vendor/html5slides/slides.js
  117. +612 −0 src/files/vendor/html5slides/styles.css
  118. +496 −0 src/files/vendor/impress/css/impress-demo.css
  119. +808 −0 src/files/vendor/impress/js/impress.js
  120. +9,404 −0 src/files/vendor/jquery.js
  121. +7 −0 src/files/vendor/log.js
  122. +1,265 −0 src/files/vendor/modernizr.js
  123. +1 −0 src/files/vendor/prettify.css
  124. +1,391 −0 src/files/vendor/prettify.js
  125. +815 −0 src/files/vendor/twitter-bootstrap/css/bootstrap-responsive.css
  126. +9 −0 src/files/vendor/twitter-bootstrap/css/bootstrap-responsive.min.css
  127. +4,983 −0 src/files/vendor/twitter-bootstrap/css/bootstrap.css
  128. +9 −0 src/files/vendor/twitter-bootstrap/css/bootstrap.min.css
  129. BIN src/files/vendor/twitter-bootstrap/img/glyphicons-halflings-white.png
  130. BIN src/files/vendor/twitter-bootstrap/img/glyphicons-halflings.png
  131. +1,825 −0 src/files/vendor/twitter-bootstrap/js/bootstrap.js
  132. +6 −0 src/files/vendor/twitter-bootstrap/js/bootstrap.min.js
  133. +6 −0 src/layouts/big.html.coffee
  134. +28 −0 src/layouts/deck.html.coffee
  135. +135 −0 src/layouts/default.html.coffee
  136. +15 −0 src/layouts/h5slides.html.coffee
  137. +25 −0 src/layouts/impress.html.coffee
  138. +48 −0 src/layouts/page.html.coffee
@@ -0,0 +1,3 @@
+node_modules/
+out/
+.DS_Store
@@ -0,0 +1 @@
+copyright Takeharu.Oshida
@@ -0,0 +1 @@
+web: node_modules/docpad/bin/docpad-server
@@ -0,0 +1,37 @@
+## Getting Started
+1. quick start
+
+ ``` bash
+ git clone git://github.com/georgeOsdDev/slidepad.git
+ cd slidepad
+ npm install
+ node ./node_modules/docpad/bin/docpad-server
+ ```
+
+1. or install docpad as global command
+
+ ``` bash
+ git clone git://github.com/georgeOsdDev/slidepad.git
+ cd slidepad
+ npm install
+ npm install -g docpad
+ docpad run
+ ```
+
+1. [Open http://localhost:9778/](http://localhost:9778/)
+
+1. Start hacking away by modifying the `src` directory
+
+* * *
+
+## Dependencies
+
+### flamework
+[Docpad](https://github.com/bevry/docpad)
+[Twitter Bootstrap](http://twitter.github.com/bootstrap/)
+
+### Slide Template
+[big](https://github.com/tmcw/big/)
+[deck.js](http://imakewebthings.com/deck.js/)
+[html5slides](http://code.google.com/p/html5slides/)
+[impress.js](https://github.com/bartaz/impress.js/)
@@ -0,0 +1,127 @@
+# The DocPad Configuration File
+# It is simply a CoffeeScript Object which is parsed by CSON
+docpadConfig = {
+
+ # =================================
+ # Template Data
+ # These are variables that will be accessible via our templates
+ # To access one of these within our templates, refer to the FAQ: https://github.com/bevry/docpad/wiki/FAQ
+
+ templateData:
+
+ # Specify some site properties
+ site:
+ # The production url of our website
+ url: "http://github.com/georgeOsdDev/slidepad.docpad"
+
+ # Here are some old site urls that you would like to redirect from
+ oldUrls: [
+ ]
+
+ # The default title of our website
+ title: "slidepad"
+
+ # The website description (for SEO)
+ description: """
+ Generate HTML5 Slides from Markdown.
+ """
+
+ # The website keywords (for SEO) separated by commas
+ keywords: """
+ slidepad, generator, intializer, lide, html5, docpad, big, deck.js, html5slides, impress.js, george_osd, georgeOsdDev, oshida, takeharu, 押田丈治
+ """
+
+ # The website author's name
+ author: "Takeharu.Oshida"
+
+ # The website author's email
+ email: "georgeosddev@email.com"
+
+
+ # -----------------------------
+ # Helper Functions
+
+ # Get the prepared site/document title
+ # Often we would like to specify particular formatting to our page's title
+ # we can apply that formatting here
+ getPreparedTitle: ->
+ # if we have a document title, then we should use that and suffix the site's title onto it
+ if @document.title
+ "#{@document.title} | #{@site.title}"
+ # if our document does not have it's own title, then we should just use the site's title
+ else
+ @site.title
+
+ # Get the prepared site/document description
+ getPreparedDescription: ->
+ # if we have a document description, then we should use that, otherwise use the site's description
+ @document.description or @site.description
+
+ # Get the prepared site/document keywords
+ getPreparedKeywords: ->
+ # Merge the document keywords with the site keywords
+ @site.keywords.concat(@document.keywords or []).join(', ')
+
+ getDocpadInstance: ->
+ @docpad
+
+ # =================================
+ # Collections
+ # These are special collections that our website makes available to us
+
+ collections:
+ # For instance, this one will fetch in all documents that have pageOrder set within their meta data
+ pages: (database) ->
+ database.findAllLive({pageOrder: $exists: true}, [pageOrder:1,title:1])
+
+ navmenus: (database) ->
+ database.findAllLive({tags: $has: 'navmenu' ,pageOrder: $exists: true},{pageOrder:1})
+
+ # big
+ big: (database) ->
+ database.findAllLive({tags: $has: 'big' ,pageOrder: $exists: true},{pageOrder:1})
+
+ # deck
+ deck: (database) ->
+ database.findAllLive({tags: $has: 'deck' ,pageOrder: $exists: true},{pageOrder:1})
+
+ # h5slide
+ h5slides: (database) ->
+ database.findAllLive({tags: $has: 'h5slides' ,pageOrder: $exists: true},{pageOrder:1})
+
+ # impress
+ impress: (database) ->
+ database.findAllLive({tags: $has: 'impress' ,pageOrder: $exists: true},{pageOrder:1})
+
+ # =================================
+ # DocPad Events
+
+ # Here we can define handlers for events that DocPad fires
+ # You can find a full listing of events on the DocPad Wiki
+ events:
+
+ # Server Extend
+ # Used to add our own custom routes to the server before the docpad routes are added
+ serverExtend: (opts) ->
+ # Extract the server from the options
+ {server} = opts
+ docpad = @docpad
+
+ # As we are now running in an event,
+ # ensure we are using the latest copy of the docpad configuraiton
+ # and fetch our urls from it
+ latestConfig = docpad.getConfig()
+ oldUrls = latestConfig.templateData.site.oldUrls or []
+ newUrl = latestConfig.templateData.site.url
+
+ # Redirect any requests accessing one of our sites oldUrls to the new site url
+ server.use (req,res,next) ->
+ if req.headers.host in oldUrls
+ res.redirect(newUrl+req.url, 301)
+ else
+ next()
+}
+
+
+# Export our DocPad Configuration
+module.exports = docpadConfig
@@ -0,0 +1,40 @@
+{
+ "name": "slidepad",
+ "version": "0.1.0",
+ "description": "This is a html5 slide generator, using docpad",
+ "homepage": "https://github.com/georgeOsdDev/slidepad",
+ "keywords": [
+ "docpad-skeleton",
+ "docpad",
+ "slide",
+ "html5",
+ "twitter bootstrap",
+ "big",
+ "deck.js",
+ "html5slides",
+ "impress.js"
+ ],
+ "author": "Takeharu.Oshida(http://github.com/georgeOsdDev)",
+ "repository": {
+ "type": "git",
+ "url": "http://github.com/georgeOsdDev/slidepad.git"
+ },
+ "engines": {
+ "node": "0.8.x",
+ "npm": "1.1.x"
+ },
+ "dependencies": {
+ "docpad": "6.x",
+ "docpad-plugin-cleanurls": "2.x",
+ "docpad-plugin-coffeescript": "2.x",
+ "docpad-plugin-eco": "2.x",
+ "docpad-plugin-markdown": "2.x",
+ "docpad-plugin-stylus": "2.x",
+ "docpad-plugin-text": "2.x",
+ "docpad-plugin-coffeekup": "~2.1.1"
+ },
+ "devDependencies": {
+ "docpad-plugin-livereload": "2.x"
+ },
+ "main": "node_modules/docpad/bin/docpad-server"
+}
@@ -0,0 +1,12 @@
+---
+layout: 'default'
+title: '404 Not Found'
+dynamic: true
+---
+
+<div class="hero-unit">
+ <h1>404 Not Found</h1>
+ <p>
+ Ooops! It looks like the document you requested at <code><%= @req.url %></code> couldn't be found.
+ </p>
+</div>
@@ -0,0 +1,15 @@
+---
+layout: 'default'
+title: '500 Internal Server Error'
+dynamic: true
+---
+
+<div class="hero-unit">
+ <h1>500 Internal Server Error</h1>
+ <p>
+ Ooops! Something went wrong while we were processing your request to <code><%= @req.url %></code>. Here's the details:
+ </p>
+ <p>
+ <pre><%= @err.message or @err.stack %></pre>
+ </p>
+</div>
@@ -0,0 +1,6 @@
+---
+title: 'big1'
+pageOrder: 1
+tags: ['big']
+---
+use _&harr;_ to navigate
@@ -0,0 +1,8 @@
+---
+title: 'big10'
+pageOrder: 10
+tags: ['big']
+---
+_Save_ it at
+/src/documents/big/
+one _.html.md_ file become one slide
@@ -0,0 +1,6 @@
+---
+title: 'big11'
+pageOrder: 11
+tags: ['big']
+---
+Step._3_
@@ -0,0 +1,7 @@
+---
+title: 'big12'
+pageOrder: 12
+tags: ['big']
+---
+docpad run
+and access [http://localhost:9778/big](http://localhost:9778/big)
@@ -0,0 +1,8 @@
+---
+title: 'big13'
+pageOrder: 13
+tags: ['big']
+---
+See detail of dependencies
+_Big_:[https://github.com/tmcw/big](https://github.com/tmcw/big)
+_Docpad_:[https://github.com/bevry/docpad](https://github.com/bevry/docpadß)
@@ -0,0 +1,6 @@
+---
+title: 'big14'
+pageOrder: 14
+tags: ['big']
+---
+See more [detail](/page/start).
@@ -0,0 +1,7 @@
+---
+title: 'big15'
+pageOrder: 15
+tags: ['big']
+---
+_thx._
+[Back to Home](/)
@@ -0,0 +1,6 @@
+---
+title: 'big2'
+pageOrder: 2
+tags: ['big']
+---
+This slide is offered by
@@ -0,0 +1,6 @@
+---
+title: 'big3'
+pageOrder: 3
+tags: ['big']
+---
+_Big_
@@ -0,0 +1,9 @@
+---
+title: 'big4'
+pageOrder: 4
+tags: ['big']
+---
+[Big](https://github.com/tmcw/big) is
+_Presentation software_ for busy busy hackers
+as *big* as it can be
+no config
@@ -0,0 +1,6 @@
+---
+title: 'big5'
+pageOrder: 5
+tags: ['big']
+---
+on _this_ App
@@ -0,0 +1,6 @@
+---
+title: 'big6'
+pageOrder: 6
+tags: ['big']
+---
+Step._1_
@@ -0,0 +1,9 @@
+---
+title: 'big7'
+pageOrder: 7
+tags: ['big']
+---
+npm install -g docpad
+git clone http://github.com/georgeOsdDev/slidepad.git
+cd slidepad
+npm install
@@ -0,0 +1,6 @@
+---
+title: 'big8'
+pageOrder: 8
+tags: ['big']
+---
+Step._2_
@@ -0,0 +1,12 @@
+---
+title: 'big9'
+pageOrder: 9
+tags: ['big']
+---
+Create _.html.md_ file include metadata like below
+ ---        _// start meta data_
+ title: 'big Third'  _// any title as you like_
+ pageOrder: 3   _// Number of slide_
+ tags: ['big']   _// must include 'big'_
+ ---       _// end of meta data_
+ `_Big_`     _// write in Markdown syntax_
@@ -0,0 +1,11 @@
+---
+title: 'big'
+name: 'big'
+linkTitle: 'big'
+pageOrder: 2
+layout: 'big'
+tags: ['navmenu']
+---
+@getCollection('big').toJSON().forEach (page) =>
+ div ->
+ text page.contentRenderedWithoutLayouts if page.contentRenderedWithoutLayouts
Oops, something went wrong.

0 comments on commit ba369aa

Please sign in to comment.