[−][src]Struct takeoff::launchpad::Launchpad
The entry point for Takeoff.
Fields (Non-exhaustive)
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.compile_sass: bool
If set to true
, any .scss
files found in Launchpad::statics
will be compiled and output as CSS with grass
. Sass partials
(.scss
files starting with an underscore) will also be skipped.
Defaults to false
.
mode: Mode
The Launchpad mode.
Mode::Development
will render allDocument
s.Mode::Production
only rendersDocument
s withis_draft = false
and will trigger a complete rebuild of the site (completely removingoutput
before starting).
Defaults to Mode::Development
output: PathBuf
The root directory to output the site files to.
Defaults to "public"
.
source: PathBuf
The root directory to look for Markdown and static files.
Defaults to "source"
.
statics: Vec<(String, String)>
Static files to copy or process*.
The first string in the tuple should be a valid glob
string that
targets files to copy. Relative to Launchpad::source
.
And the second string should be a directory to copy the files matched by
the glob to. Relative to Launchpad::output
.
* Optionally, some files can be automatically processed as well, see
Launchpad::compile_sass
.
templates: Templates
Templating settings.
tera: Tera
The tera
instance to re-use for templating.
Implementations
impl Launchpad
[src]
pub fn prepare() -> LaunchpadBuilder
[src]
Creates a new LaunchpadBuilder
.
pub fn parse_documents(&self) -> Result<Vec<Document>>
[src]
pub fn take_off(&self) -> Result<()>
[src]
Generates the site defined by this Launchpad
.
Trait Implementations
impl Debug for Launchpad
[src]
impl<'de> Deserialize<'de> for Launchpad
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Launchpad
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Launchpad
impl Send for Launchpad
impl Sync for Launchpad
impl Unpin for Launchpad
impl !UnwindSafe for Launchpad
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,