Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mdwiki to 0.6.2 #267

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
187 changes: 0 additions & 187 deletions mdwiki-0.6.1/mdwiki-slim.html

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
57 changes: 53 additions & 4 deletions mdwiki-0.6.1/mdwiki-debug.html → mdwiki-0.6.2/mdwiki-debug.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<!--
This is MDwiki v0.6.1
This is MDwiki v0.6.2
(C) 2013 by Timo Dörr and contributors. This software is licensed
under the terms of the GNU GPLv3 with additional terms applied.
See https://github.com/Dynalon/mdwiki/blob/master/LICENSE.txt for more detail.
Expand Down Expand Up @@ -3912,7 +3912,7 @@
(function($) {
'use strict';
var iframeGimmick= {
name: 'forkmeongithub',
name: 'iframe',
version: $.md.version,
once: function() {
$.md.linkGimmick(this, 'iframe', create_iframe);
Expand Down Expand Up @@ -3990,6 +3990,7 @@
{ name: 'united', url: 'netdna.bootstrapcdn.com/bootswatch/3.0.0/united/bootstrap.min.css' },
{ name: 'yeti', url: 'netdna.bootstrapcdn.com/bootswatch/3.0.2/yeti/bootstrap.min.css' }
];
var useChooser = false;
var themeChooserGimmick = {
name: 'Themes',
version: $.md.version,
Expand Down Expand Up @@ -4052,8 +4053,9 @@
$.md.stage('postgimmick').subscribe(function(done) {
var $link = $(link);

// only set a theme if no theme from the choser is selected
if (window.localStorage.theme === undefined) {
// only set a theme if no theme from the chooser is selected,
// or if the chooser isn't enabled
if (window.localStorage.theme === undefined || !useChooser) {
set_theme(opt);
}

Expand All @@ -4065,6 +4067,7 @@

var themechooser = function($links, opt, text) {

useChooser = true;
$.md.stage('bootstrap').subscribe(function(done) {
restore_theme(opt);
done();
Expand Down Expand Up @@ -4195,6 +4198,52 @@
});
}
}(jQuery));

(function($) {
'use strict';
function yuml($link, opt, text) {
var default_options = {
type: 'class', /* { class, activity, usecase } */
style: 'plain', /* { plain, scruffy } */
direction: 'LR', /* LR, TB, RL */
scale: '100'
};
var options = $.extend ({}, default_options, opt);

return $link.each(function(i,e) {

var $this = $(e);
var url = 'http://yuml.me/diagram/';
var data = $this.attr('href');
var title = $this.attr('title');

title = (title ? title : '');

/* `FOOBAR´ => (FOOBAR) */
data = data.replace( new RegExp('`', 'g'), '(' ).replace( new RegExp('´', 'g'), ')' );

url += options.style + ';dir:' + options.direction + ';scale:' + options.scale + '/' + options.type + '/' + data;

var $img = $('<img src="' + url + '" title="' + title + '" alt="' + title + '">');

$this.replaceWith($img);
});
}
var yumlGimmick = {
name: 'yuml',
version: $.md.version,
once: function() {
$.md.linkGimmick(this, 'yuml', yuml);
$.md.registerScript(this, '', {
license: 'LGPL',
loadstage: 'postgimmick',
finishstage: 'all_ready'
});
}
};
$.md.registerGimmick(yumlGimmick);

}(jQuery));
</script>
<!-- END dist/MDwiki.js -->
<script type="text/javascript">$.md.logThreshold = $.md.loglevel.DEBUG;</script>
Expand Down
187 changes: 187 additions & 0 deletions mdwiki-0.6.2/mdwiki-slim.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions mdwiki-0.6.1/mdwiki.html → mdwiki-0.6.2/mdwiki.html

Large diffs are not rendered by default.