Skip to content

Commit

Permalink
Make content-root size configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
prskr committed Feb 16, 2022
1 parent 0637962 commit e7942eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/components.go
Original file line number Diff line number Diff line change
@@ -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": `---`,
Expand Down Expand Up @@ -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"`
Expand Down
2 changes: 2 additions & 0 deletions web/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit e7942eb

Please sign in to comment.