From f868917d547065542c276240acbaf63ee631b46a Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 2 May 2015 01:21:25 +0200 Subject: [PATCH] Add an "Edit me on Github" ribbon to the docs --- docs/source/_static/style.css | 83 +++++++++++++++++++++++++++++++++++ docs/source/builds.rst | 5 +++ docs/source/configuration.rst | 3 ++ docs/source/development.rst | 4 ++ docs/source/documentation.rst | 4 ++ docs/source/features.rst | 4 ++ docs/source/index.rst | 4 ++ docs/source/manual.rst | 4 ++ docs/source/quickstart.rst | 4 ++ docs/source/setup.rst | 4 ++ docs/source/theming.rst | 4 ++ docs/source/translations.rst | 4 ++ 12 files changed, 127 insertions(+) diff --git a/docs/source/_static/style.css b/docs/source/_static/style.css index fccbd0df1..cbbb6d314 100644 --- a/docs/source/_static/style.css +++ b/docs/source/_static/style.css @@ -10,3 +10,86 @@ h1 { padding-top: 7px; } + +/* +Copyright (c) 2012 Terrence Ryan + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be included in all copies +or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE +OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#banner { + height: 149px; + width: 149px; + overflow:hidden; + padding: 0; + margin: 0; + float: right; +} + +#banner a { + display: block; + width: 235px; + font-size: 14px; + font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", + "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, + Geneva, "Helvetica Neue", Helvetica, Arial, sans serif; + background-color: #333; + color: #FFF; + word-spacing: 2px; + text-decoration: none; + padding: 5px 15px 5px 25px; + + position:relative; + left: 20px; + top: -33px; + text-align: center; + + -moz-transform-origin: 0 0 ; + -moz-transform:rotate(45deg); + -moz-box-shadow: 1px 1px 5px 1px #666; + + -webkit-transform-origin: 0 0 ; + -webkit-transform:rotate(45deg); + -webkit-box-shadow: 1px 1px 5px 1px #666; + + -ms-transform-origin: 0 0 ; + -ms-transform:rotate(45deg); + -ms-box-shadow: 1px 1px 5px 1px #666; + + transform-origin: 0 0 ; + transform:rotate(45deg); + box-shadow: 1px 1px 5px 1px #666; + + background-image: linear-gradient(bottom, #000000 3%, #666666 5%, #000000 7%, #000000 93%, #666666 95%, #000000 97%); + background-image: -o-linear-gradient(bottom, #000000 3%, #666666 5%, #000000 7%, #000000 93%, #666666 95%, #000000 97%); + background-image: -moz-linear-gradient(bottom, #000000 3%, #666666 5%, #000000 7%, #000000 93%, #666666 95%, #000000 97%); + background-image: -webkit-linear-gradient(bottom, #000000 3%, #666666 5%, #000000 7%, #000000 93%, #666666 95%, #000000 97%); + background-image: -ms-linear-gradient(bottom, #000000 3%, #666666 5%, #000000 7%, #000000 93%, #666666 95%, #000000 97%); + + background-image: -webkit-gradient( + linear, + left bottom, + left top, + color-stop(0.03, #000000), + color-stop(0.05, #666666), + color-stop(0.07, #000000), + color-stop(0.93, #000000), + color-stop(0.95, #666666), + color-stop(0.97, #000000) + ); +} diff --git a/docs/source/builds.rst b/docs/source/builds.rst index 3892a35f9..19be64921 100644 --- a/docs/source/builds.rst +++ b/docs/source/builds.rst @@ -1,3 +1,8 @@ +.. raw:: html + + + + .. _builds: =============== diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst index ae35e16d3..db6512059 100644 --- a/docs/source/configuration.rst +++ b/docs/source/configuration.rst @@ -1,3 +1,6 @@ +.. raw:: html + + ============= Configuration diff --git a/docs/source/development.rst b/docs/source/development.rst index 2ca2eb584..8e3d0a87e 100644 --- a/docs/source/development.rst +++ b/docs/source/development.rst @@ -1,3 +1,7 @@ +.. raw:: html + + + .. _development: =========== diff --git a/docs/source/documentation.rst b/docs/source/documentation.rst index 6e29d46ed..f77d7bb9c 100644 --- a/docs/source/documentation.rst +++ b/docs/source/documentation.rst @@ -1,3 +1,7 @@ +.. raw:: html + + + ===================== Writing Documentation ===================== diff --git a/docs/source/features.rst b/docs/source/features.rst index 45ca3fa9a..22850eb48 100644 --- a/docs/source/features.rst +++ b/docs/source/features.rst @@ -1,3 +1,7 @@ +.. raw:: html + + + ======== Features ======== diff --git a/docs/source/index.rst b/docs/source/index.rst index 98fcd78e3..17e20a44a 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -3,6 +3,10 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. +.. raw:: html + + + ========================= Converse.js Documentation ========================= diff --git a/docs/source/manual.rst b/docs/source/manual.rst index f88b98c66..b0407cc16 100644 --- a/docs/source/manual.rst +++ b/docs/source/manual.rst @@ -1,3 +1,7 @@ +.. raw:: html + + + =========================== The Converse.js User Manual =========================== diff --git a/docs/source/quickstart.rst b/docs/source/quickstart.rst index 768e8704c..5d313a281 100644 --- a/docs/source/quickstart.rst +++ b/docs/source/quickstart.rst @@ -1,3 +1,7 @@ +.. raw:: html + + + ========================================= Quickstart (to get a demo up and running) ========================================= diff --git a/docs/source/setup.rst b/docs/source/setup.rst index c10902258..aecfdc81d 100644 --- a/docs/source/setup.rst +++ b/docs/source/setup.rst @@ -1,3 +1,7 @@ +.. raw:: html + + + ===================== Setup and integration ===================== diff --git a/docs/source/theming.rst b/docs/source/theming.rst index ebed4400a..519d880af 100644 --- a/docs/source/theming.rst +++ b/docs/source/theming.rst @@ -1,3 +1,7 @@ +.. raw:: html + + + ======= Theming ======= diff --git a/docs/source/translations.rst b/docs/source/translations.rst index b08f123f0..c32dccbb9 100644 --- a/docs/source/translations.rst +++ b/docs/source/translations.rst @@ -1,3 +1,7 @@ +.. raw:: html + + + ============ Translations ============