mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-23 23:21:00 +01: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
|
@ -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 repo_id = '{{ repo_id }}';
|
||||
</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 %}
|
||||
<script src="{{ path }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"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/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(
|
||||
name = 'mkdocs-material',
|
||||
version = '0.1.0',
|
||||
url = 'https://github.com/squidfunk/mkdocs-material',
|
||||
url = 'http://squidfunk.github.io/mkdocs-material/',
|
||||
license = 'MIT',
|
||||
description = 'A material design theme for MkDocs',
|
||||
author = 'Martin Donath',
|
||||
|
@ -197,7 +197,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
/* Index articles */
|
||||
var articles = {};
|
||||
data.docs.map(function(article) {
|
||||
articles.location = base_url + article.location;
|
||||
article.location = base_url + article.location;
|
||||
articles[article.location] = article;
|
||||
index.add(article);
|
||||
});
|
||||
@ -236,12 +236,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
title.innerHTML = article.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 */
|
||||
// var text = document.createElement('p');
|
||||
// text.innerHTML = article.text.truncate(140);
|
||||
@ -252,9 +246,14 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
link.href = article.location;
|
||||
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 */
|
||||
var parts = article.location.split('#');
|
||||
if (parts[0] == window.location.pathname) {
|
||||
var parts = link.href.split('#');
|
||||
if (parts[0] == window.location.href.split('#')[0]) {
|
||||
link.addEventListener('click', function(e) {
|
||||
document.body.classList.remove('toggle-search');
|
||||
document.body.classList.remove('locked');
|
||||
|
Loading…
Reference in New Issue
Block a user