Make content-root size configurable

This commit is contained in:
Peter 2022-02-16 14:18:08 +01:00
parent 0637962da8
commit e7942ebf15
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
2 changed files with 11 additions and 0 deletions

View file

@ -1,8 +1,15 @@
package config
const (
defaultWidth uint = 960
defaultHeight uint = 700
)
var defaults = map[string]interface{}{
"mermaid.theme": "forest",
"theme": "beige",
"width": defaultWidth,
"height": defaultHeight,
"codeTheme": "monokai",
"verticalSeparator": `\*\*\*`,
"horizontalSeparator": `---`,
@ -54,6 +61,8 @@ type (
History bool `json:"history"`
Center bool `json:"center"`
SlideNumber bool `json:"slideNumber"`
Width uint `json:"width"`
Height uint `json:"height"`
Menu struct {
Numbers bool `json:"numbers"`
UseTextContentForMissingTitles bool `json:"useTextContentForMissingTitles"`

View file

@ -39,6 +39,8 @@ async function initReveal() {
center: cfg.center,
slideNumber: cfg.slideNumber,
transition: cfg.transition,
width: cfg.width,
height: cfg.height,
hash: true,
pdfSeparateFragments: false,
menu: {