Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qpixel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Answers
Qpixel
Commits
ce7b86cc
Commit
ce7b86cc
authored
Aug 4, 2020
by
ArtOfCode-
Browse files
Options
Downloads
Patches
Plain Diff
Enable syntax highlighting
parent
1f0c9152
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/assets/stylesheets/application.scss
+10
-0
10 additions, 0 deletions
app/assets/stylesheets/application.scss
app/views/layouts/_head.html.erb
+7
-0
7 additions, 0 deletions
app/views/layouts/_head.html.erb
db/seeds/site_settings.yml
+8
-0
8 additions, 0 deletions
db/seeds/site_settings.yml
with
25 additions
and
0 deletions
app/assets/stylesheets/application.scss
+
10
−
0
View file @
ce7b86cc
...
@@ -190,3 +190,13 @@ img {
...
@@ -190,3 +190,13 @@ img {
.widget.is-tertiary
.widget--body
+
.widget--header
{
.widget.is-tertiary
.widget--body
+
.widget--header
{
border-top
:
1px
solid
#9daeb7
;
border-top
:
1px
solid
#9daeb7
;
}
}
pre
{
background
:
#f0f0f0
;
border
:
0
;
}
pre
.hljs
{
padding
:
0
;
background
:
inherit
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/views/layouts/_head.html.erb
+
7
−
0
View file @
ce7b86cc
...
@@ -27,6 +27,13 @@
...
@@ -27,6 +27,13 @@
<%=
javascript_include_tag
'application'
%>
<%=
javascript_include_tag
'application'
%>
<script
src=
"https://unpkg.com/@codidact/co-design@0.12.0/js/co-design.js"
defer
></script>
<script
src=
"https://unpkg.com/@codidact/co-design@0.12.0/js/co-design.js"
defer
></script>
<%
if
SiteSetting
[
'SyntaxHighlightingEnabled'
]
%>
<link
rel=
"stylesheet"
href=
"//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/styles/default.min.css"
>
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/highlight.min.js"
></script>
<script
defer
>
hljs
.
initHighlightingOnLoad
();
</script>
<%
end
%>
<%
if
SiteSetting
[
'MathJaxEnabled'
]
%>
<%
if
SiteSetting
[
'MathJaxEnabled'
]
%>
<script>
<script>
MathJax
=
{
MathJax
=
{
...
...
This diff is collapsed.
Click to expand it.
db/seeds/site_settings.yml
+
8
−
0
View file @
ce7b86cc
...
@@ -284,6 +284,14 @@
...
@@ -284,6 +284,14 @@
Enable MathJax on this site for math display. This will incur a small penalty in page loading times, so consider
Enable MathJax on this site for math display. This will incur a small penalty in page loading times, so consider
whether you really need it.
whether you really need it.
-
name
:
SyntaxHighlightingEnabled
value
:
false
value_type
:
boolean
category
:
Display
description
:
>
Enable highlight.js syntax highlighting on this site. This incurs a small penalty in page loading times, so consider
whether you really need it.
-
name
:
ScoringVariable
-
name
:
ScoringVariable
value
:
2
value
:
2
value_type
:
integer
value_type
:
integer
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment