-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This avoids needing to notice and play whack-a-mole when things aren't configured as we expect. Also, add a --fix mode which will try to fix things for you.
- Loading branch information
1 parent
70aa8b2
commit e004e3d
Showing
4 changed files
with
109 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package main | ||
|
||
type hugoToml struct { | ||
Markup *hugoTomlMarkup `toml:"markup"` | ||
} | ||
|
||
type hugoTomlMarkup struct { | ||
TableOfContents *hugoTomlTableOfContents `toml:"tableOfContents"` | ||
Goldmark *hugoTomlGoldmark `toml:"goldmark"` | ||
} | ||
|
||
type hugoTomlTableOfContents struct { | ||
Endlevel *int `toml:"endLevel"` | ||
Ordered *bool `toml:"ordered"` | ||
StartLevel *int `toml:"startLevel"` | ||
} | ||
|
||
type hugoTomlGoldmark struct { | ||
Renderer *hugoTomlGoldmarkRenderer `toml:"renderer"` | ||
Parser *hugoTomlGoldmarkParser `toml:"parser"` | ||
} | ||
|
||
type hugoTomlGoldmarkRenderer struct { | ||
Unsafe *bool `toml:"unsafe"` | ||
} | ||
|
||
type hugoTomlGoldmarkParser struct { | ||
Attribute *hugoTomlGoldmarkParserAttribute `toml:"attribute"` | ||
} | ||
|
||
type hugoTomlGoldmarkParserAttribute struct { | ||
Block *bool `toml:"block"` | ||
Title *bool `toml:"title"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters