add: apps api
This commit is contained in:
parent
2a99d49c8a
commit
ebded00fd3
33 changed files with 698 additions and 31 deletions
|
@ -50,6 +50,10 @@ pub struct DirsConfig {
|
|||
/// The markdown document files directory.
|
||||
#[serde(default = "default_dir_docs")]
|
||||
pub docs: String,
|
||||
/// The directory which holds your `rustdoc` (`cargo doc`) output. The directory should
|
||||
/// exist, but it isn't required to actually have anything in it.
|
||||
#[serde(default = "default_dir_rustdoc")]
|
||||
pub rustdoc: String,
|
||||
}
|
||||
|
||||
fn default_dir_templates() -> String {
|
||||
|
@ -72,6 +76,10 @@ fn default_dir_docs() -> String {
|
|||
"docs".to_string()
|
||||
}
|
||||
|
||||
fn default_dir_rustdoc() -> String {
|
||||
"reference".to_string()
|
||||
}
|
||||
|
||||
impl Default for DirsConfig {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
|
@ -80,6 +88,7 @@ impl Default for DirsConfig {
|
|||
media: default_dir_media(),
|
||||
icons: default_dir_icons(),
|
||||
docs: default_dir_docs(),
|
||||
rustdoc: default_dir_rustdoc(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue