From 509e25cf04cf1984ae0c9112a8c380492d177be8 Mon Sep 17 00:00:00 2001 From: Thatcher Peskens Date: Tue, 1 Oct 2013 16:26:14 -0700 Subject: [PATCH 1/2] Add/modified the canonical link to work with all /index/ links. Added style for "danger' --- docs/theme/docker/layout.html | 33 +++++++++++++++++++++----- docs/theme/docker/static/css/main.css | 3 ++- docs/theme/docker/static/css/main.less | 2 +- 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/docs/theme/docker/layout.html b/docs/theme/docker/layout.html index 900d5c3b8..34b77a422 100755 --- a/docs/theme/docker/layout.html +++ b/docs/theme/docker/layout.html @@ -25,11 +25,25 @@ + ['//fonts.googleapis.com/css?family=Cabin:400,700,400italic'] %} - {%- if pagename == 'index' %} - - {% else %} - - {% endif %} + {% set pagename = 'use/commandline/run/index/' %} + + + combined = {{ combined }} + + {# + This part is hopefully complex because things like |cut '/index/' are not available in spinx jinja + and will make it crash. (and we need index/ out. + #} + + {%- for cssfile in css_files %} {%- endfor %} @@ -124,7 +138,14 @@ Current version: diff --git a/docs/theme/docker/static/css/main.css b/docs/theme/docker/static/css/main.css index ed1f9686b..756adb198 100755 --- a/docs/theme/docker/static/css/main.css +++ b/docs/theme/docker/static/css/main.css @@ -397,7 +397,8 @@ dt:hover > a.headerlink { .admonition .admonition-title { font-size: larger; } -.admonition.warning { +.admonition.warning, +.admonition.danger { border-color: #ac0004; } .admonition.note { diff --git a/docs/theme/docker/static/css/main.less b/docs/theme/docker/static/css/main.less index 197b49eae..ce18a387a 100644 --- a/docs/theme/docker/static/css/main.less +++ b/docs/theme/docker/static/css/main.less @@ -594,7 +594,7 @@ dt:hover > a.headerlink { font-size: larger; } - &.warning { + &.warning, &.danger { border-color: #ac0004; } From 5025b4d09443019e1e8636288f3e6dbb085253cd Mon Sep 17 00:00:00 2001 From: Thatcher Peskens Date: Tue, 1 Oct 2013 16:32:56 -0700 Subject: [PATCH 2/2] Cleanup --- docs/theme/docker/layout.html | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/theme/docker/layout.html b/docs/theme/docker/layout.html index 34b77a422..19c35f499 100755 --- a/docs/theme/docker/layout.html +++ b/docs/theme/docker/layout.html @@ -25,11 +25,6 @@ + ['//fonts.googleapis.com/css?family=Cabin:400,700,400italic'] %} - {% set pagename = 'use/commandline/run/index/' %} - - - combined = {{ combined }} - {# This part is hopefully complex because things like |cut '/index/' are not available in spinx jinja and will make it crash. (and we need index/ out.