Skip to content

Commit

Permalink
refactor: update Cargo.toml package name to "monset"
Browse files Browse the repository at this point in the history
  • Loading branch information
Kremilly committed Jun 6, 2024
1 parent d08b621 commit 48b894b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "scibun"
name = "monset"
version = "0.1.0"
edition = "2021"
authors = [ "scibun" ]
Expand Down
2 changes: 1 addition & 1 deletion scibun.yml → monset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ui:
render_markdown:
output_path: '{app_path}' # String (default: '{app_path}')
overwrite: true # Boolean (valid values: 'true' or 'false'; default: 'true')
mode: 'scibun' # String (valid values: 'scibun' and 'pure'; default: 'scibun')
mode: 'monset' # String (valid values: 'scibun' and 'pure'; default: 'scibun')
minify_html: true # Boolean (valid values: 'true' or 'false'; default: 'true')
minify_extra_plugins: true # Boolean (valid values: 'true' or 'false'; default: 'true')

Expand Down
4 changes: 3 additions & 1 deletion src/configs/configs_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ impl DownloadConfigsFiles {

let response = reqwest::get(url).await?;
if response.status().is_success() {
let file_path = output_directory.join("scibun.yml");
let file_path = output_directory.join(
format!("{}.yml", Global::APP_NAME.to_lowercase())
);

if !force_mode {
if !Path::new(&file_path).is_file() {
Expand Down

0 comments on commit 48b894b

Please sign in to comment.