1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-25 22:32:13 +02:00

Update generators to change the files in the -master directories

This commit is contained in:
Stefan Haller
2025-11-02 09:35:57 +01:00
parent d5677318ab
commit 7627da594d
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
//go:generate go run generator.go
// This "script" generates files called Keybindings_{{.LANG}}.md
// in the docs/keybindings directory.
// in the docs-master/keybindings directory.
//
// The content of these generated files is a keybindings cheatsheet.
//
@@ -49,7 +49,7 @@ func CommandToRun() string {
}
func GetKeybindingsDir() string {
return utils.GetLazyRootDirectory() + "/docs/keybindings"
return utils.GetLazyRootDirectory() + "/docs-master/keybindings"
}
func generateAtDir(cheatsheetDir string) {

View File

@@ -16,7 +16,7 @@ import (
)
func GetSchemaDir() string {
return utils.GetLazyRootDirectory() + "/schema"
return utils.GetLazyRootDirectory() + "/schema-master"
}
func GenerateSchema() *jsonschema.Schema {

View File

@@ -163,7 +163,7 @@ func (n *Node) MarshalYAML() (interface{}, error) {
}
func writeToConfigDocs(config []byte) error {
configPath := utils.GetLazyRootDirectory() + "/docs/Config.md"
configPath := utils.GetLazyRootDirectory() + "/docs-master/Config.md"
markdown, err := os.ReadFile(configPath)
if err != nil {
return fmt.Errorf("Error reading Config.md file %w", err)