mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Good to go
This commit is contained in:
parent
dca42dd3c3
commit
ac54535487
@ -1,3 +1,3 @@
|
|||||||
mkdocs-material-0.1.0 (2016-xx-xx)
|
mkdocs-material-0.1.0 (2016-02-09)
|
||||||
|
|
||||||
* Initial release
|
* Initial release
|
@ -1,6 +0,0 @@
|
|||||||
mkdocs-material
|
|
||||||
===========
|
|
||||||
|
|
||||||
A material design theme for MkDocs
|
|
||||||
|
|
||||||
TBD
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -100,7 +100,7 @@
|
|||||||
var base_url = '{{ base_url }}';
|
var base_url = '{{ base_url }}';
|
||||||
var repo_id = '{{ repo_id }}';
|
var repo_id = '{{ repo_id }}';
|
||||||
</script>
|
</script>
|
||||||
<script src="{{ base_url }}/assets/javascripts/application-1a680198.js"></script>
|
<script src="{{ base_url }}/assets/javascripts/application-d84ecdee.js"></script>
|
||||||
{% for path in extra_javascript %}
|
{% for path in extra_javascript %}
|
||||||
<script src="{{ path }}"></script>
|
<script src="{{ path }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"assets/images/favicon.ico": "assets/images/favicon-e565ddfa.ico",
|
"assets/images/favicon.ico": "assets/images/favicon-e565ddfa.ico",
|
||||||
"assets/javascripts/application.js": "assets/javascripts/application-1a680198.js",
|
"assets/javascripts/application.js": "assets/javascripts/application-d84ecdee.js",
|
||||||
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-79394028.js",
|
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-79394028.js",
|
||||||
"assets/stylesheets/application.css": "assets/stylesheets/application-334f02ec.css"
|
"assets/stylesheets/application.css": "assets/stylesheets/application-334f02ec.css"
|
||||||
}
|
}
|
2
setup.py
2
setup.py
@ -24,7 +24,7 @@ from setuptools import setup, find_packages
|
|||||||
setup(
|
setup(
|
||||||
name = 'mkdocs-material',
|
name = 'mkdocs-material',
|
||||||
version = '0.1.0',
|
version = '0.1.0',
|
||||||
url = 'https://github.com/squidfunk/mkdocs-material',
|
url = 'http://squidfunk.github.io/mkdocs-material/',
|
||||||
license = 'MIT',
|
license = 'MIT',
|
||||||
description = 'A material design theme for MkDocs',
|
description = 'A material design theme for MkDocs',
|
||||||
author = 'Martin Donath',
|
author = 'Martin Donath',
|
||||||
|
@ -197,7 +197,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
/* Index articles */
|
/* Index articles */
|
||||||
var articles = {};
|
var articles = {};
|
||||||
data.docs.map(function(article) {
|
data.docs.map(function(article) {
|
||||||
articles.location = base_url + article.location;
|
article.location = base_url + article.location;
|
||||||
articles[article.location] = article;
|
articles[article.location] = article;
|
||||||
index.add(article);
|
index.add(article);
|
||||||
});
|
});
|
||||||
@ -236,12 +236,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
title.innerHTML = article.title;
|
title.innerHTML = article.title;
|
||||||
teaser.appendChild(title);
|
teaser.appendChild(title);
|
||||||
|
|
||||||
/* Create url element */
|
|
||||||
var url = document.createElement('span');
|
|
||||||
url.innerHTML = window.location.host
|
|
||||||
+ article.location.split('#')[0];
|
|
||||||
teaser.appendChild(url);
|
|
||||||
|
|
||||||
// /* Create text element */
|
// /* Create text element */
|
||||||
// var text = document.createElement('p');
|
// var text = document.createElement('p');
|
||||||
// text.innerHTML = article.text.truncate(140);
|
// text.innerHTML = article.text.truncate(140);
|
||||||
@ -252,9 +246,14 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
link.href = article.location;
|
link.href = article.location;
|
||||||
link.appendChild(teaser);
|
link.appendChild(teaser);
|
||||||
|
|
||||||
|
/* Create url element */
|
||||||
|
var url = document.createElement('span');
|
||||||
|
url.innerHTML = link.href.split('#')[0];
|
||||||
|
teaser.appendChild(url);
|
||||||
|
|
||||||
/* Close search and jump to anchor when on same page */
|
/* Close search and jump to anchor when on same page */
|
||||||
var parts = article.location.split('#');
|
var parts = link.href.split('#');
|
||||||
if (parts[0] == window.location.pathname) {
|
if (parts[0] == window.location.href.split('#')[0]) {
|
||||||
link.addEventListener('click', function(e) {
|
link.addEventListener('click', function(e) {
|
||||||
document.body.classList.remove('toggle-search');
|
document.body.classList.remove('toggle-search');
|
||||||
document.body.classList.remove('locked');
|
document.body.classList.remove('locked');
|
||||||
|
Loading…
Reference in New Issue
Block a user