docs: add utility binary to generate docs

This commit is contained in:
Dietmar Maurer
2021-02-10 10:27:40 +01:00
parent c19f5b85a3
commit 2322a980d0
5 changed files with 72 additions and 4 deletions

View File

@ -18,7 +18,7 @@ use proxmox::tools::{fs::replace_file, fs::CreateOptions};
use crate::api2::types::*;
lazy_static! {
static ref CONFIG: SectionConfig = init();
pub static ref CONFIG: SectionConfig = init();
}
// fixme: define better schemas

View File

@ -18,7 +18,7 @@ use proxmox::tools::{fs::replace_file, fs::CreateOptions};
use crate::api2::types::*;
lazy_static! {
static ref CONFIG: SectionConfig = init();
pub static ref CONFIG: SectionConfig = init();
}
pub const REMOTE_PASSWORD_SCHEMA: Schema = StringSchema::new("Password or auth token for remote host.")

View File

@ -18,7 +18,7 @@ use proxmox::tools::{fs::replace_file, fs::CreateOptions};
use crate::api2::types::*;
lazy_static! {
static ref CONFIG: SectionConfig = init();
pub static ref CONFIG: SectionConfig = init();
}
#[api(

View File

@ -20,7 +20,7 @@ use proxmox::tools::{fs::replace_file, fs::CreateOptions};
use crate::api2::types::*;
lazy_static! {
static ref CONFIG: SectionConfig = init();
pub static ref CONFIG: SectionConfig = init();
}
pub const ENABLE_USER_SCHEMA: Schema = BooleanSchema::new(