Fix help page UI

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-06-05 09:39:03 +03:00
parent a76bf07ae2
commit 248a3e5688
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
2 changed files with 11 additions and 9 deletions

View File

@ -1,10 +1,12 @@
.documentation {
padding-bottom: 10px;
p {
padding: 10px 14px;
h1 {
margin: 0;
}
h2 {
font-size: 20px;
}
li {
line-height: 24px;
color: #888;

View File

@ -36,9 +36,9 @@
.col-md-8
.panel.panel-default.documentation
.panel-heading Documentation
= preserve do
- readme_text = File.read(Rails.root.join("doc", "README.md"))
- text = readme_text.dup
- readme_text.scan(/\]\(([^(]+)\)/) { |match| text.gsub!(match.first, "help/#{match.first}") }
= markdown text
.panel-body
= preserve do
- readme_text = File.read(Rails.root.join("doc", "README.md"))
- text = readme_text.dup
- readme_text.scan(/\]\(([^(]+)\)/) { |match| text.gsub!(match.first, "help/#{match.first}") }
= markdown text