Api page in help

This commit is contained in:
randx 2012-07-06 03:05:12 +03:00
parent 6451e837bf
commit be1b40802d
4 changed files with 79 additions and 0 deletions

View file

@ -0,0 +1,41 @@
%h3 API
.back_link
= link_to help_path do
← to index
%hr
%ol
%li
%a{:href => "#README"} README
%li
%a{:href => "#Projects"} Projects
%li
%a{:href => "#Users"} Users
.file_holder#README
.file_title
%i.icon-file
README
.file_content.wiki
= preserve do
= markdown File.read(Rails.root.join("doc", "api", "README.md"))
%br
.file_holder#projects
.file_title
%i.icon-file
Projects
.file_content.wiki
= preserve do
= markdown File.read(Rails.root.join("doc", "api", "projects.md"))
%br
.file_holder#users
.file_title
%i.icon-file
Users
.file_content.wiki
= preserve do
= markdown File.read(Rails.root.join("doc", "api", "users.md"))

View file

@ -22,3 +22,6 @@
%li
%h5= link_to "Web Hooks", help_web_hooks_path
%li
%h5= link_to "API", help_api_path