creating required slides directory when preapring for build
This commit is contained in:
@@ -5,7 +5,7 @@ use std::{
|
|||||||
|
|
||||||
use crate::app::{
|
use crate::app::{
|
||||||
build::{docki_build, DockiBuildResult},
|
build::{docki_build, DockiBuildResult},
|
||||||
fs_util, log::display_status,
|
fs_util::{self, create_dir_recursive}, log::display_status,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct BuildExecution {
|
pub struct BuildExecution {
|
||||||
@@ -42,6 +42,8 @@ impl BuildExecution {
|
|||||||
let reveal_version = "3.9.2";
|
let reveal_version = "3.9.2";
|
||||||
let target = format!("https://github.com/hakimel/reveal.js/archive/{reveal_version}.zip");
|
let target = format!("https://github.com/hakimel/reveal.js/archive/{reveal_version}.zip");
|
||||||
|
|
||||||
|
create_dir_recursive("./docs/slides");
|
||||||
|
|
||||||
let Ok(response) = reqwest::get(target).await else {
|
let Ok(response) = reqwest::get(target).await else {
|
||||||
return Err("could not downlaod revealjs".to_string())
|
return Err("could not downlaod revealjs".to_string())
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user