mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-29 22:48:24 +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
|
//go:generate go run generator.go
|
||||||
|
|
||||||
// This "script" generates files called Keybindings_{{.LANG}}.md
|
// 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.
|
// The content of these generated files is a keybindings cheatsheet.
|
||||||
//
|
//
|
||||||
@@ -49,7 +49,7 @@ func CommandToRun() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetKeybindingsDir() string {
|
func GetKeybindingsDir() string {
|
||||||
return utils.GetLazyRootDirectory() + "/docs/keybindings"
|
return utils.GetLazyRootDirectory() + "/docs-master/keybindings"
|
||||||
}
|
}
|
||||||
|
|
||||||
func generateAtDir(cheatsheetDir string) {
|
func generateAtDir(cheatsheetDir string) {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func GetSchemaDir() string {
|
func GetSchemaDir() string {
|
||||||
return utils.GetLazyRootDirectory() + "/schema"
|
return utils.GetLazyRootDirectory() + "/schema-master"
|
||||||
}
|
}
|
||||||
|
|
||||||
func GenerateSchema() *jsonschema.Schema {
|
func GenerateSchema() *jsonschema.Schema {
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ func (n *Node) MarshalYAML() (interface{}, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func writeToConfigDocs(config []byte) error {
|
func writeToConfigDocs(config []byte) error {
|
||||||
configPath := utils.GetLazyRootDirectory() + "/docs/Config.md"
|
configPath := utils.GetLazyRootDirectory() + "/docs-master/Config.md"
|
||||||
markdown, err := os.ReadFile(configPath)
|
markdown, err := os.ReadFile(configPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Error reading Config.md file %w", err)
|
return fmt.Errorf("Error reading Config.md file %w", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user