h2 Heading
h3 Heading
h4 Heading
h5 Heading
h6 Heading
Horizontal Rules
Typographic replacements
Enable typographer option to see result.
(c) (C) (r) (R) (tm) (TM) (p) (P) +-
test.. test... test..... test?..... test!....
!!!!!! ???? ,, -- ---
"Smartypants, double quotes" and 'single quotes'
Emphasis
This is bold text
This is bold text
This is italic text
This is italic text
Strikethrough
Blockquotes
Blockquotes can also be nested...
...by using additional greater-than signs right next to each other...
...or with spaces between arrows.
Lists
Unordered
- Create a list by starting a line with
+
,-
, or*
- Sub-lists are made by indenting 2 spaces:
- Marker character change forces new list start:
- Ac tristique libero volutpat at
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Marker character change forces new list start:
- Very easy!
Ordered
-
Lorem ipsum dolor sit amet
-
Consectetur adipiscing elit
-
Integer molestie lorem at massa
-
You can use sequential numbers...
-
...or keep all the numbers as
1.
Start numbering with offset:
- foo
- bar
Code
Example of inline code
with backticks.
Example when it's more than one line
of inline code, also when paragraphs are breaking into new lines with more code
.
Syntax highlighting
use super::prelude::*;
use aide::axum::ApiRouter;
use aide::axum::routing::get_with;
use schemars::JsonSchema;
use serde::{Serialize, Deserialize};
use crate::database::queries::audit_log::get_audit_logs as get_audit_logs_query;
#[derive(Serialize, Deserialize, JsonSchema)]
pub struct ResponseAuditLogs {
data: Option<String>,
}
pub async fn get_audit_logs(State(state): State<AppState>) -> impl IntoApiResponse {
let audit_logs = get_audit_logs_query(state.database).await.unwrap();
let response = vec![ResponseAuditLogs { data: Some(audit_logs) }];
Json(response)
}
pub fn get_audit_logs_docs(op: TransformOperation) -> TransformOperation {
op.tag("Audit Logs")
.description("Get all audit logs")
.response::<200, Json<Vec<ResponseAuditLogs>>>()
}
pub fn create_audit_logs_routes(state: AppState) -> ApiRouter {
ApiRouter::new()
.api_route("/audit-logs", get_with(get_audit_logs, get_audit_logs_docs))
.with_state(state)
}
Tables
Option | Description |
---|---|
data | path to data files to supply the data that will be passed into templates. |
engine | engine to be used for processing templates. Handlebars is the default. |
ext | extension to be used for dest files. |
Right aligned columns
Option | Description |
---|---|
data | path to data files to supply the data that will be passed into templates. |
engine | engine to be used for processing templates. Handlebars is the default. |
ext | extension to be used for dest files. |