You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2017/04/01 08:02:15 UTC

struts-site git commit: Enables code highlighting

Repository: struts-site
Updated Branches:
  refs/heads/master 0afeb55b4 -> fcd543656


Enables code highlighting


Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/fcd54365
Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/fcd54365
Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/fcd54365

Branch: refs/heads/master
Commit: fcd543656825f3929cd0ec85cbd48e84d6e77fd8
Parents: 0afeb55
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Sat Apr 1 10:02:00 2017 +0200
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Sat Apr 1 10:02:00 2017 +0200

----------------------------------------------------------------------
 _config.yml                                     | 14 +----
 source/_layouts/default.html                    |  1 +
 .../how-to-create-a-struts2-web-application.md  |  1 +
 source/highlighter/github-theme.css             | 60 ++++++++++++++++++++
 4 files changed, 65 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-site/blob/fcd54365/_config.yml
----------------------------------------------------------------------
diff --git a/_config.yml b/_config.yml
index 22c18ca..7429068 100644
--- a/_config.yml
+++ b/_config.yml
@@ -4,18 +4,10 @@ markdown_ext:   md
 source:         source
 destination:    content
 encoding:       UTF-8
+highlighter:    rouge
 kramdown:
-  auto_id_stripping:  true
-  auto_ids:           true
-  footnote_nr:        1
-  entity_output:      as_char
-  toc_levels:         1..6
-  smart_quotes:       lsquo,rsquo,ldquo,rdquo
-  syntax_highlighter_opts:
-    wrap:              div
-    tab_width:         4
-    bold_every:        10
-    css:               style
+  input:              GFM
+  syntax_highlighter: rouge
 
 # Simplifies introducing changes related to the latest release
 current_version: 2.5.10.1

http://git-wip-us.apache.org/repos/asf/struts-site/blob/fcd54365/source/_layouts/default.html
----------------------------------------------------------------------
diff --git a/source/_layouts/default.html b/source/_layouts/default.html
index d659bcf..3a6b5a6 100644
--- a/source/_layouts/default.html
+++ b/source/_layouts/default.html
@@ -13,6 +13,7 @@
   <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
   <link href="/css/main.css" rel="stylesheet">
   <link href="/css/custom.css" rel="stylesheet">
+  <link href="/highlighter/github-theme.css" rel="stylesheet">
 
   <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
   <script type="text/javascript" src="/bootstrap/js/bootstrap.js"></script>

http://git-wip-us.apache.org/repos/asf/struts-site/blob/fcd54365/source/getting-started/how-to-create-a-struts2-web-application.md
----------------------------------------------------------------------
diff --git a/source/getting-started/how-to-create-a-struts2-web-application.md b/source/getting-started/how-to-create-a-struts2-web-application.md
index 9552c4b..d608b99 100644
--- a/source/getting-started/how-to-create-a-struts2-web-application.md
+++ b/source/getting-started/how-to-create-a-struts2-web-application.md
@@ -52,6 +52,7 @@ project folder structure. In your pom.xml include the following:
     <finalName>basic_struts</finalName>
 </build>
 ```
+{:title="Final name"}
 
 __Step 2 - Add index.jsp__
 

http://git-wip-us.apache.org/repos/asf/struts-site/blob/fcd54365/source/highlighter/github-theme.css
----------------------------------------------------------------------
diff --git a/source/highlighter/github-theme.css b/source/highlighter/github-theme.css
new file mode 100644
index 0000000..2774b76
--- /dev/null
+++ b/source/highlighter/github-theme.css
@@ -0,0 +1,60 @@
+.highlight  { background: #ffffff; }
+.highlight .c { color: #999988; font-style: italic } /* Comment */
+.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
+.highlight .k { font-weight: bold } /* Keyword */
+.highlight .o { font-weight: bold } /* Operator */
+.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
+.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
+.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
+.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
+.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
+.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #aa0000 } /* Generic.Error */
+.highlight .gh { color: #999999 } /* Generic.Heading */
+.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
+.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #555555 } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
+.highlight .gt { color: #aa0000 } /* Generic.Traceback */
+.highlight .kc { font-weight: bold } /* Keyword.Constant */
+.highlight .kd { font-weight: bold } /* Keyword.Declaration */
+.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #009999 } /* Literal.Number */
+.highlight .s { color: #d14 } /* Literal.String */
+.highlight .na { color: #008080 } /* Name.Attribute */
+.highlight .nb { color: #0086B3 } /* Name.Builtin */
+.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
+.highlight .no { color: #008080 } /* Name.Constant */
+.highlight .ni { color: #800080 } /* Name.Entity */
+.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
+.highlight .nn { color: #555555 } /* Name.Namespace */
+.highlight .nt { color: #000080 } /* Name.Tag */
+.highlight .nv { color: #008080 } /* Name.Variable */
+.highlight .ow { font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mf { color: #009999 } /* Literal.Number.Float */
+.highlight .mh { color: #009999 } /* Literal.Number.Hex */
+.highlight .mi { color: #009999 } /* Literal.Number.Integer */
+.highlight .mo { color: #009999 } /* Literal.Number.Oct */
+.highlight .sb { color: #d14 } /* Literal.String.Backtick */
+.highlight .sc { color: #d14 } /* Literal.String.Char */
+.highlight .sd { color: #d14 } /* Literal.String.Doc */
+.highlight .s2 { color: #d14 } /* Literal.String.Double */
+.highlight .se { color: #d14 } /* Literal.String.Escape */
+.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
+.highlight .si { color: #d14 } /* Literal.String.Interpol */
+.highlight .sx { color: #d14 } /* Literal.String.Other */
+.highlight .sr { color: #009926 } /* Literal.String.Regex */
+.highlight .s1 { color: #d14 } /* Literal.String.Single */
+.highlight .ss { color: #990073 } /* Literal.String.Symbol */
+.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #008080 } /* Name.Variable.Class */
+.highlight .vg { color: #008080 } /* Name.Variable.Global */
+.highlight .vi { color: #008080 } /* Name.Variable.Instance */
+.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */