1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-09-24 11:28:23 +02:00

Merge pull request #68 from brendo/fix-edit-uri

Build the assets so the edit link work
This commit is contained in:
Martin Donath 2016-12-16 09:01:43 +01:00 committed by GitHub
commit a74a025f47
3 changed files with 19 additions and 10 deletions

View File

@ -414,6 +414,12 @@ hr {
padding: 0 2.0rem;
font-size: 1.8rem;
line-height: 4.8rem; }
.md-header-nav__parent {
color: rgba(255, 255, 255, 0.7); }
.md-header-nav__parent::after {
display: inline;
color: rgba(255, 255, 255, 0.3);
content: "/"; }
.md-header-nav__source {
display: none; }
@ -1556,8 +1562,8 @@ hr {
padding-right: 1.2rem; }
.md-search {
padding: 0.4rem;
padding-right: 3.2rem; }
margin-right: 2.8rem;
padding: 0.4rem; }
.md-search__inner {
display: table;
@ -1710,13 +1716,11 @@ hr {
.md-sidebar__inner {
border-right: 0.1rem solid rgba(0, 0, 0, 0.07); } }
@media only screen and (min-width: 30em) {
.md-footer-nav__link {
width: 50%; } }
@media only screen and (max-width: 29.9375em) {
.md-header-nav__parent {
display: none; }
.md-footer-nav__link--prev .md-footer-nav__title {
display: none; }
@ -1724,6 +1728,11 @@ hr {
-webkit-transform: scale(45);
transform: scale(45); } }
@media only screen and (min-width: 30em) {
.md-footer-nav__link {
width: 50%; } }
@media only screen and (min-width: 30em) and (max-width: 44.9375em) {
[data-md-toggle="search"]:checked ~ .md-header .md-search__overlay {

View File

@ -74,8 +74,8 @@
<div class="md-content">
<article class="md-content__inner md-typeset">
{% block content %}
{% if edit_uri %}
<a class="md-button md-button--edit" href="{{ edit_uri }}">
{% if config.edit_uri %}
<a class="md-button md-button--edit" href="{{ page.edit_url }}">
Edit
</a>
{% endif %}

View File

@ -27,7 +27,7 @@ site_url: http://squidfunk.github.io/mkdocs-material/
# Repository
repo_name: squidfunk/mkdocs-material
repo_url: https://github.com/squidfunk/mkdocs-material
edit_uri: edit/master/docs/
edit_uri: edit/rework/docs/
# Copyright
copyright: 'Copyright &copy 2016 Martin Donath'