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:
@@ -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) {
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
)
|
||||
|
||||
func GetSchemaDir() string {
|
||||
return utils.GetLazyRootDirectory() + "/schema"
|
||||
return utils.GetLazyRootDirectory() + "/schema-master"
|
||||
}
|
||||
|
||||
func GenerateSchema() *jsonschema.Schema {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user