Add 'docs' and 'assets' to generated gitignore

And also make 'docs' the default folder (instead of doc) to be more aligned with Github's defaults.
This commit is contained in:
KtorZ 2022-12-29 10:54:21 +01:00
parent cce76bbd63
commit ad5a393c4d
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
2 changed files with 6 additions and 1 deletions

View File

@ -118,7 +118,7 @@ where
self.read_source_files()?;
let destination = destination.unwrap_or_else(|| self.root.join("doc"));
let destination = destination.unwrap_or_else(|| self.root.join("docs"));
let mut parsed_modules = self.parse_sources(self.config.name.clone())?;

View File

@ -185,7 +185,12 @@ fn gitignore(root: &Path) -> miette::Result<()> {
gitignore_path,
indoc! {
r#"
# Aiken compilation artifacts
assets/
# Aiken's project working directory
build/
# Aiken's default documentation export
docs/
"#
},
)