Commit e61e3eaadb7f0c7c106b72d1325437e7743a2027

Authored by Job van der Voort
Committed by Marin Jankovski
1 parent ce498eed

render readme in help

app/assets/stylesheets/application.scss
@@ -34,6 +34,7 @@ @@ -34,6 +34,7 @@
34 /** 34 /**
35 * Page specific styles (issues, projects etc): 35 * Page specific styles (issues, projects etc):
36 */ 36 */
  37 +
37 @import "sections/*"; 38 @import "sections/*";
38 39
39 /** 40 /**
app/assets/stylesheets/sections/help.scss 0 → 100644
@@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
  1 +.documentation {
  2 + padding-bottom: 10px;
  3 + p {
  4 + padding: 10px;
  5 + margin: 0;
  6 + }
  7 + li {
  8 + list-style-type: none;
  9 + padding-left: 10px;
  10 + }
  11 +}
0 \ No newline at end of file 12 \ No newline at end of file
app/views/help/index.html.haml
@@ -33,53 +33,9 @@ @@ -33,53 +33,9 @@
33 Use 33 Use
34 = link_to "shortcuts", '#', onclick: "new Shortcuts()" 34 = link_to "shortcuts", '#', onclick: "new Shortcuts()"
35 35
36 - .col-md-4  
37 - .ui-box  
38 - .title  
39 - User documentation  
40 - %ul.well-list  
41 - %li  
42 - %strong= link_to "Workflow", help_workflow_path  
43 - %p Learn how to use Git and GitLab together.  
44 -  
45 - %li  
46 - %strong= link_to "SSH keys", help_ssh_path  
47 - %p Setup secure access to your projects. 36 + .col-md-8
  37 + .ui-box.documentation
  38 + .title Documentation
48 39
49 - %li  
50 - %strong= link_to "GitLab Markdown", help_markdown_path  
51 - %p Learn what you can do with GitLab's advanced formatting system.  
52 -  
53 - %li  
54 - %strong= link_to "Permissions", help_permissions_path  
55 - %p Get familiar with GitLab's permission levels.  
56 -  
57 - %li  
58 - %strong= link_to "API", help_api_file_path(category: 'README')  
59 - %p Explore how you can access GitLab via a simple and powerful API.  
60 -  
61 - %li  
62 - %strong= link_to "Web Hooks", help_web_hooks_path  
63 - %p Let GitLab notify you when new code has been pushed to your project.  
64 -  
65 - .col-md-4  
66 - .ui-box  
67 - .title  
68 - Admin documentation  
69 - %ul.well-list  
70 -  
71 - %li  
72 - %strong= link_to "Rake Tasks", help_raketasks_path  
73 - %p Explore what GitLab has in store for you to make administration easier.  
74 -  
75 - %li  
76 - %strong= link_to "System Hooks", help_system_hooks_path  
77 - %p Let GitLab notify you when certain management tasks need to be carried out.  
78 -  
79 - %li  
80 - %strong= link_to "Public Access", help_public_access_path  
81 - %p Learn how you can allow public access to a project.  
82 -  
83 - %li  
84 - %strong= link_to "Security", help_security_path  
85 - %p Learn what you can do to secure your GitLab instance. 40 + = preserve do
  41 + = markdown File.read(Rails.root.join("doc", "README.md"))
86 \ No newline at end of file 42 \ No newline at end of file