Skip to content

Commit

Permalink
Deployed 3f0230b with MkDocs version: 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Aug 19, 2024
1 parent c7220eb commit e4bc988
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 41 deletions.
2 changes: 1 addition & 1 deletion 404.html

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions assets/javascripts/bundle.471ce7a9.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

29 changes: 0 additions & 29 deletions assets/javascripts/bundle.fe8b6f2b.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

27 changes: 21 additions & 6 deletions js/timeago_mkdocs_material.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
// Script to ensure timeago keeps working when
// used with mkdocs-material's instant loading feature
// Script to ensure timeago keeps working when
// used with mkdocs-material's instant loading feature

function getLocale(element) {
var raw_locale = element.getAttribute('locale');
var locale = {
bn: 'bn_IN',
en: 'en_US',
hi: 'hi_IN',
id: 'id_ID',
nb: 'nb_NO',
nn: 'nn_NO',
pt: 'pt_BR',
zh: 'zh_CN'
}[raw_locale];
return locale ? locale : raw_locale;
}

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);
var locale = getLocale(nodes[0]);
timeago.render(nodes, locale);
}
})
} else {
var nodes = document.querySelectorAll('.timeago');
if (nodes.length > 0) {
var locale = nodes[0].getAttribute('locale');
timeago.render(nodes, locale);
var locale = getLocale(nodes[0]);
timeago.render(nodes, locale);
}
}
Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit e4bc988

Please sign in to comment.