Skip to content

Commit

Permalink
move comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Jul 17, 2024
1 parent f9020ce commit ee1f5e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init/config/docusaurus.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ func writeDocusaurus(dir, file, content string) error {
return os.WriteFile(filePath, []byte(date+content), fileMode)
}

// makeGenerated writes a special file that the website can import.
// makeGenerated writes a special index file that the website can import.
// Adds all param sections except global into a docusaurus import format.
// Also creates a footer file that can be imported and displayed.
func makeGenerated(config *Config, output string) error {
var first, second bytes.Buffer

Expand All @@ -73,7 +74,6 @@ func makeGenerated(config *Config, output string) error {
return err
}

// Create a footer file that can be imported.
return writeDocusaurus(output, "footer", `<font color="gray" style={{'float': 'right', 'font-style': 'italic'}}>`+
"This page was [generated automatically](https://github.com/Unpackerr/unpackerr/tree/main/init/config), "+
strings.ToUpper(time.Now().UTC().Round(time.Second).Format("02 Jan 2006 15:04 UTC"))+"</font>\n")
Expand Down

0 comments on commit ee1f5e4

Please sign in to comment.