MCPcopy
hub / github.com/docsifyjs/docsify / mainTpl

Function mainTpl

packages/docsify-server-renderer/index.js:42–58  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

40}
41
42function mainTpl(config) {
43 let html = `<nav class="app-nav${
44 config.repo ? '' : ' no-badge'
45 }"><!--navbar--></nav>`;
46
47 if (config.repo) {
48 html += tpl.corner(config.repo);
49 }
50
51 if (config.coverpage) {
52 html += tpl.cover();
53 }
54
55 html += tpl.main(config);
56
57 return html;
58}
59
60export default class Renderer {
61 constructor({ template, config, cache }) {

Callers 1

constructorMethod · 0.85

Calls 1

coverMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…