From 9cf6c0f44fc6f43416a5345eec9cbdf143014cf4 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Fri, 24 Mar 2023 11:46:22 +0100 Subject: [PATCH] Replace references to wiki with gitbook --- .gitignore | 2 +- .vscode/settings.json | 2 +- packages/cli/src/cli.rs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 5392a39..e2eb21f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ /bin /target -/wiki +/gitbook # Autogenerated files diff --git a/.vscode/settings.json b/.vscode/settings.json index 41c815e..e971e1a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -40,6 +40,6 @@ // Autogenerate dirs "bin": true, "target": true, - "wiki": true + "gitbook": true } } diff --git a/packages/cli/src/cli.rs b/packages/cli/src/cli.rs index e1d7541..851f521 100644 --- a/packages/cli/src/cli.rs +++ b/packages/cli/src/cli.rs @@ -47,9 +47,9 @@ pub struct Cli { /// Generate a Lune documentation file for Luau LSP #[clap(long)] generate_docs_file: bool, - /// Generate the full Lune wiki directory + /// Generate the full Lune gitbook directory #[clap(long, hide = true)] - generate_wiki_dir: bool, + generate_gitbook_dir: bool, } #[allow(dead_code)] @@ -119,7 +119,7 @@ impl Cli { let generate_file_requested = self.generate_luau_types || self.generate_selene_types || self.generate_docs_file - || self.generate_wiki_dir; + || self.generate_gitbook_dir; if generate_file_requested { if self.generate_luau_types { generate_and_save_file(FILE_NAME_LUAU_TYPES, "Luau type definitions", || { @@ -139,7 +139,7 @@ impl Cli { }) .await?; } - if self.generate_wiki_dir { + if self.generate_gitbook_dir { generate_wiki_dir_from_definitions(FILE_CONTENTS_LUAU_TYPES).await?; } }