Make content-root size configurable
This commit is contained in:
parent
0637962da8
commit
e7942ebf15
2 changed files with 11 additions and 0 deletions
|
@ -1,8 +1,15 @@
|
||||||
package config
|
package config
|
||||||
|
|
||||||
|
const (
|
||||||
|
defaultWidth uint = 960
|
||||||
|
defaultHeight uint = 700
|
||||||
|
)
|
||||||
|
|
||||||
var defaults = map[string]interface{}{
|
var defaults = map[string]interface{}{
|
||||||
"mermaid.theme": "forest",
|
"mermaid.theme": "forest",
|
||||||
"theme": "beige",
|
"theme": "beige",
|
||||||
|
"width": defaultWidth,
|
||||||
|
"height": defaultHeight,
|
||||||
"codeTheme": "monokai",
|
"codeTheme": "monokai",
|
||||||
"verticalSeparator": `\*\*\*`,
|
"verticalSeparator": `\*\*\*`,
|
||||||
"horizontalSeparator": `---`,
|
"horizontalSeparator": `---`,
|
||||||
|
@ -54,6 +61,8 @@ type (
|
||||||
History bool `json:"history"`
|
History bool `json:"history"`
|
||||||
Center bool `json:"center"`
|
Center bool `json:"center"`
|
||||||
SlideNumber bool `json:"slideNumber"`
|
SlideNumber bool `json:"slideNumber"`
|
||||||
|
Width uint `json:"width"`
|
||||||
|
Height uint `json:"height"`
|
||||||
Menu struct {
|
Menu struct {
|
||||||
Numbers bool `json:"numbers"`
|
Numbers bool `json:"numbers"`
|
||||||
UseTextContentForMissingTitles bool `json:"useTextContentForMissingTitles"`
|
UseTextContentForMissingTitles bool `json:"useTextContentForMissingTitles"`
|
||||||
|
|
|
@ -39,6 +39,8 @@ async function initReveal() {
|
||||||
center: cfg.center,
|
center: cfg.center,
|
||||||
slideNumber: cfg.slideNumber,
|
slideNumber: cfg.slideNumber,
|
||||||
transition: cfg.transition,
|
transition: cfg.transition,
|
||||||
|
width: cfg.width,
|
||||||
|
height: cfg.height,
|
||||||
hash: true,
|
hash: true,
|
||||||
pdfSeparateFragments: false,
|
pdfSeparateFragments: false,
|
||||||
menu: {
|
menu: {
|
||||||
|
|
Loading…
Reference in a new issue