Repository: kafka-site
Updated Branches:
  refs/heads/asf-site 234f865d3 -> 20f28764b


update htaccess to load images nested inside of doc folders

stop forcing code elements to be blocks


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

Branch: refs/heads/asf-site
Commit: 20f28764b1b20153eaa25ee0e1a2ebdfc99e39fe
Parents: 234f865
Author: Derrick Or <derric...@gmail.com>
Authored: Mon Oct 10 17:24:41 2016 -0700
Committer: Jason Gustafson <ja...@confluent.io>
Committed: Mon Oct 10 19:35:44 2016 -0700

----------------------------------------------------------------------
 .htaccess  | 5 +++--
 styles.css | 8 +++++++-
 2 files changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka-site/blob/20f28764/.htaccess
----------------------------------------------------------------------
diff --git a/.htaccess b/.htaccess
index 2dadb93..4b3664d 100644
--- a/.htaccess
+++ b/.htaccess
@@ -4,6 +4,7 @@ AddType text/html .html
 AddHandler server-parsed .html
 Redirect 301 /design.html /documentation#design
 
-RewriteRule ^/?(\d+)/documentation(\.html)? - [S=2]
-RewriteRule ^/?(\d+)/javadoc - [S=1]
+RewriteRule ^/?(\d+)/documentation(\.html)? - [S=3]
+RewriteRule ^/?(\d+)/javadoc - [S=2]
+RewriteRule ^/?(\d+)/images/ - [S=1]
 RewriteRule ^/?(\d+)/([a-z]+)(\.html)? /$1/documentation#$2 [R=302,L,NE]

http://git-wip-us.apache.org/repos/asf/kafka-site/blob/20f28764/styles.css
----------------------------------------------------------------------
diff --git a/styles.css b/styles.css
index 580f79c..17e0c96 100644
--- a/styles.css
+++ b/styles.css
@@ -16,15 +16,21 @@ body {
 }
 code, pre {
        font-family: 'Cutive Mono', monospace;
+}
+pre {
        border-style: solid;
        border-color: #E5E5E5;
        border-width: .1rem .5rem;
        overflow-x: scroll;
        padding: 1rem 2rem 1.5rem;
        color: #444444;
-       display: block;
        margin: 2rem 0;
 }
+code {
+       border: .1rem solid #E5E5E5;
+       margin: 0 .3rem;
+       padding: .2rem .4rem;
+}
 code b, pre b,
 h1, h2, h3, h4 {
        line-height: 1.2;

Reply via email to