Gitlab Markdown help page

This commit is contained in:
randx 2012-08-03 00:20:09 +03:00
parent 72c6be2d1a
commit 34ba4e1352
4 changed files with 32 additions and 2 deletions

View file

@ -28,3 +28,6 @@
%li
%h5= link_to "API", help_api_path
%li
%h5= link_to "Gitlab Markdown", help_markdown_path

View file

@ -0,0 +1,25 @@
- bash_lexer = Pygments::Lexer[:bash]
%h3.page_title Gitlab Markdown
.back_link
= link_to help_path do
← to index
%hr
%p.slead We extend Markdown with some GITLAB specific syntax. It allows you to link to:
%ul
%li issues (#123)
%li merge request (!123)
%li commits (1234567)
%li team members (@foo)
%li snippets ($123)
%p.slead in
%ul
%li commit messages
%li notes/comments/wall posts
%li issues
%li merge requests
%li milestones
%li wiki pages

View file

@ -8,7 +8,9 @@
= f.hidden_field :noteable_id
= f.hidden_field :noteable_type
= f.text_area :note, :size => 255
%p.hint Markdown is enabled.
%p.hint
= link_to "Gitlab Markdown", help_markdown_path, :target => '_blank'
is enabled.
.row.note_advanced_opts.hide
.span4
@ -31,5 +33,4 @@
.input= f.file_field :attachment, :class => "input-file"
%span Any file less than 10 MB
= f.submit 'Add Comment', :class => "btn primary submit_note", :id => "submit_note"

View file

@ -29,6 +29,7 @@ Gitlab::Application.routes.draw do
get 'help/api' => 'help#api'
get 'help/web_hooks' => 'help#web_hooks'
get 'help/system_hooks' => 'help#system_hooks'
get 'help/markdown' => 'help#markdown'
#
# Admin Area