Replace references to wiki with gitbook

This commit is contained in:
Filip Tibell 2023-03-24 11:46:22 +01:00
parent d0094ec0d1
commit 9cf6c0f44f
No known key found for this signature in database
3 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View file

@ -8,7 +8,7 @@
/bin
/target
/wiki
/gitbook
# Autogenerated files

View file

@ -40,6 +40,6 @@
// Autogenerate dirs
"bin": true,
"target": true,
"wiki": true
"gitbook": true
}
}

View file

@ -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?;
}
}