Gitlab Markdown help page
This commit is contained in:
parent
72c6be2d1a
commit
34ba4e1352
4 changed files with 32 additions and 2 deletions
|
@ -28,3 +28,6 @@
|
||||||
|
|
||||||
%li
|
%li
|
||||||
%h5= link_to "API", help_api_path
|
%h5= link_to "API", help_api_path
|
||||||
|
|
||||||
|
%li
|
||||||
|
%h5= link_to "Gitlab Markdown", help_markdown_path
|
||||||
|
|
25
app/views/help/markdown.html.haml
Normal file
25
app/views/help/markdown.html.haml
Normal 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
|
|
@ -8,7 +8,9 @@
|
||||||
= f.hidden_field :noteable_id
|
= f.hidden_field :noteable_id
|
||||||
= f.hidden_field :noteable_type
|
= f.hidden_field :noteable_type
|
||||||
= f.text_area :note, :size => 255
|
= 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
|
.row.note_advanced_opts.hide
|
||||||
.span4
|
.span4
|
||||||
|
@ -31,5 +33,4 @@
|
||||||
.input= f.file_field :attachment, :class => "input-file"
|
.input= f.file_field :attachment, :class => "input-file"
|
||||||
%span Any file less than 10 MB
|
%span Any file less than 10 MB
|
||||||
|
|
||||||
|
|
||||||
= f.submit 'Add Comment', :class => "btn primary submit_note", :id => "submit_note"
|
= f.submit 'Add Comment', :class => "btn primary submit_note", :id => "submit_note"
|
||||||
|
|
|
@ -29,6 +29,7 @@ Gitlab::Application.routes.draw do
|
||||||
get 'help/api' => 'help#api'
|
get 'help/api' => 'help#api'
|
||||||
get 'help/web_hooks' => 'help#web_hooks'
|
get 'help/web_hooks' => 'help#web_hooks'
|
||||||
get 'help/system_hooks' => 'help#system_hooks'
|
get 'help/system_hooks' => 'help#system_hooks'
|
||||||
|
get 'help/markdown' => 'help#markdown'
|
||||||
|
|
||||||
#
|
#
|
||||||
# Admin Area
|
# Admin Area
|
||||||
|
|
Loading…
Reference in a new issue