From c9a5101a95158a9a6cf882c59b8a8c76a7ca743e Mon Sep 17 00:00:00 2001 From: Thatcher Peskens Date: Tue, 1 Oct 2013 16:26:14 -0700 Subject: [PATCH] Add/modified the canonical link to work with all /index/ links. Added style for "danger' Upstream-commit: 509e25cf04cf1984ae0c9112a8c380492d177be8 Component: engine --- .../engine/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/components/engine/docs/theme/docker/layout.html b/components/engine/docs/theme/docker/layout.html index 900d5c3b86..34b77a4225 100755 --- a/components/engine/docs/theme/docker/layout.html +++ b/components/engine/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/components/engine/docs/theme/docker/static/css/main.css b/components/engine/docs/theme/docker/static/css/main.css index ed1f9686b3..756adb1989 100755 --- a/components/engine/docs/theme/docker/static/css/main.css +++ b/components/engine/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/components/engine/docs/theme/docker/static/css/main.less b/components/engine/docs/theme/docker/static/css/main.less index 197b49eaef..ce18a387a6 100644 --- a/components/engine/docs/theme/docker/static/css/main.less +++ b/components/engine/docs/theme/docker/static/css/main.less @@ -594,7 +594,7 @@ dt:hover > a.headerlink { font-size: larger; } - &.warning { + &.warning, &.danger { border-color: #ac0004; }