docsify/src/core/global-api.js
Leonardo Rossi b53ea1e304
Adds option to specify an header height (#1045)
* 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
2020-03-09 14:19:31 +05:30

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;
}