Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
0c025624
Commit
0c025624
authored
May 18, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render plain README using Markup viewer so it is displayed below tree
parent
6ca5a989
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
app/assets/stylesheets/framework/typography.scss
app/assets/stylesheets/framework/typography.scss
+9
-8
app/models/blob_viewer/markup.rb
app/models/blob_viewer/markup.rb
+1
-0
No files found.
app/assets/stylesheets/framework/typography.scss
View file @
0c025624
...
@@ -139,6 +139,15 @@
...
@@ -139,6 +139,15 @@
line-height
:
1
.6em
;
line-height
:
1
.6em
;
overflow-x
:
auto
;
overflow-x
:
auto
;
border-radius
:
2px
;
border-radius
:
2px
;
&
.plain-readme
{
background
:
none
;
border
:
none
;
padding
:
0
;
margin
:
0
;
font-size
:
14px
;
}
}
}
p
>
code
{
p
>
code
{
...
@@ -279,14 +288,6 @@ h6 {
...
@@ -279,14 +288,6 @@ h6 {
/** CODE **/
/** CODE **/
pre
{
pre
{
font-family
:
$monospace_font
;
font-family
:
$monospace_font
;
&
.plain-readme
{
background
:
none
;
border
:
none
;
padding
:
0
;
margin
:
0
;
font-size
:
14px
;
}
}
}
code
{
code
{
...
...
app/models/blob_viewer/markup.rb
View file @
0c025624
...
@@ -5,6 +5,7 @@ module BlobViewer
...
@@ -5,6 +5,7 @@ module BlobViewer
self
.
partial_name
=
'markup'
self
.
partial_name
=
'markup'
self
.
extensions
=
Gitlab
::
MarkupHelper
::
EXTENSIONS
self
.
extensions
=
Gitlab
::
MarkupHelper
::
EXTENSIONS
self
.
file_types
=
%i(readme)
self
.
binary
=
false
self
.
binary
=
false
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment