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

Commit

Permalink
add a page, api
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtk75 committed Apr 28, 2013
1 parent 72db9f4 commit 3d96b29
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 1 deletion.
1 change: 1 addition & 0 deletions app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ images = require("./routes/images") ctx

app.get "/", routes.index
app.get "/reference", routes.reference
app.get "/api", routes.api
app.get "/try", routes.try
app.post "/images", images.b64decode

Expand Down
1 change: 1 addition & 0 deletions routes/index.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = (ctx)->
index: (req, res)-> res.render "index", ctx
reference: (req, res)-> res.render "reference", ctx
api: (req, res)-> res.render "api", ctx
try: (req, res)-> res.render "try", ctx
3 changes: 2 additions & 1 deletion views/_includes/navbar.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
.brand(href="#")
a.logo(href="/") JUMLY
ul.nav
li: a(href="/reference") Reference
li: a(href="/reference") Reference Manual
li: a(href="/api") API Document
li: a(href="/try") TryJUMLY
10 changes: 10 additions & 0 deletions views/_layouts/footer.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

footer
padding-top 30px
padding-bottom 60px
THICK-DARK()

.copyright
text-align center
font-size smaller

39 changes: 39 additions & 0 deletions views/api.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
extends _layouts/default

block title
title JUMLY API Document

block styles
link(rel='stylesheet', href="/api.css")
link(rel='stylesheet', href="/public/bootstrap/docs/assets/css/bootstrap-responsive.css")

block prepend description
- var _ = "JUMLY API Document provides how to use all APIs."
- _ += " "
- var __description = _;

block navbar
include _includes/navbar

block content
.container-fluid
.row-fluid
.span3
nav.menu
ul
li: a(href="#_core") Core
ul
li: a(href="#_core_scan") scan

.span6
h1 JUMLY API Document

section#_core
h2 Core

h3#_core_scan scan

footer
.copyright
include _includes/copyright

2 changes: 2 additions & 0 deletions views/api.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import common
@import "_layouts/footer"

0 comments on commit 3d96b29

Please sign in to comment.