mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
* Adds option to specify an header height When using a template that has a sticky-header, clicking on the sidebar will scroll the page under the header. I added the option `headerHeight` (default = `0`) so that the content div will be scrolled down that amount of pixels. * updates documentation and renames variable
21 lines
464 B
JavaScript
21 lines
464 B
JavaScript
import marked from 'marked';
|
|
import prism from 'prismjs';
|
|
import * as util from './util';
|
|
import * as dom from './util/dom';
|
|
import { Compiler } from './render/compiler';
|
|
import { slugify } from './render/slugify';
|
|
import { get } from './fetch/ajax';
|
|
|
|
export default function() {
|
|
window.Docsify = {
|
|
util,
|
|
dom,
|
|
get,
|
|
slugify,
|
|
version: '__VERSION__',
|
|
};
|
|
window.DocsifyCompiler = Compiler;
|
|
window.marked = marked;
|
|
window.Prism = prism;
|
|
}
|