mirror of
https://github.com/django-components/django-components.git
synced 2025-08-17 20:50:14 +00:00
Deployed a8a3828
to dev with MkDocs 1.5.3 and mike 2.0.0
This commit is contained in:
commit
3f18cd7e31
131 changed files with 16349 additions and 0 deletions
2
dev/js/timeago.min.js
vendored
Normal file
2
dev/js/timeago.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
18
dev/js/timeago_mkdocs_material.js
Normal file
18
dev/js/timeago_mkdocs_material.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Script to ensure timeago keeps working when
|
||||
// used with mkdocs-material's instant loading feature
|
||||
|
||||
if (typeof document$ !== "undefined") {
|
||||
document$.subscribe(function() {
|
||||
var nodes = document.querySelectorAll('.timeago');
|
||||
if (nodes.length > 0) {
|
||||
var locale = nodes[0].getAttribute('locale');
|
||||
timeago.render(nodes, locale);
|
||||
}
|
||||
})
|
||||
} else {
|
||||
var nodes = document.querySelectorAll('.timeago');
|
||||
if (nodes.length > 0) {
|
||||
var locale = nodes[0].getAttribute('locale');
|
||||
timeago.render(nodes, locale);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue