Explorar o código

Amendments providing the "Edit on GitHub" link for docs on master.

Docker-DCO-1.1-Signed-off-by: O.S. Tezer <ostezer@gmail.com> (github: ostezer)
O.S.Tezer %!s(int64=11) %!d(string=hai) anos
pai
achega
05d7271f91
Modificáronse 2 ficheiros con 10 adicións e 0 borrados
  1. 1 0
      docs/theme/mkdocs/breadcrumbs.html
  2. 9 0
      docs/theme/mkdocs/css/base.css

+ 1 - 0
docs/theme/mkdocs/breadcrumbs.html

@@ -8,4 +8,5 @@
       {% endif %}
       {% endif %}
     {% endif %}
     {% endif %}
   {% endfor %}
   {% endfor %}
+  <li class="pull-right edit-on-github"><a href="https://github.com/dotcloud/docker/blob/master/docs/sources/{{ current_page.input_path }}"><span class="glyphicon glyphicon-edit"></span>Edit on GitHub</a></li>
 </ol>
 </ol>

+ 9 - 0
docs/theme/mkdocs/css/base.css

@@ -425,6 +425,15 @@ ol.breadcrumb > li + li:before {
 ol.breadcrumb > li:last-child > a {
 ol.breadcrumb > li:last-child > a {
   font-weight: bold;
   font-weight: bold;
 }
 }
+ol.breadcrumb > li.edit-on-github:before {
+  content: none;
+}
+ol.breadcrumb > li.edit-on-github a {
+  color: #FF8100;
+}
+ol.breadcrumb > li.edit-on-github span {
+  margin-right: 0.25em;
+}
 #content h1 {
 #content h1 {
   margin-top: 0px;
   margin-top: 0px;
 }
 }