From e5c14ab3ff2622315235bd6b64eb5a8c9da00a5f Mon Sep 17 00:00:00 2001 From: Qrius Date: Wed, 30 Apr 2025 21:02:51 +0200 Subject: Update man pages, remove unused parameter --- smp.1 | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 83 insertions(+), 25 deletions(-) (limited to 'smp.1') diff --git a/smp.1 b/smp.1 index 1b616e4..33a96dc 100644 --- a/smp.1 +++ b/smp.1 @@ -2,7 +2,7 @@ .SH name Skaldpress Macro Processor \- Macro processor .SH SYNOPSIS -.B smp [\fIinput_file\fB] +.B smp [OPTION]... [\fIinput_file\fB] .SH DESCRIPTION .B smp @@ -22,6 +22,9 @@ This defines a macro, optionally with some content. The optional content will be expanded immediately, and later the already processed content will be included in the output. +.IP "\fBundefine()\fR" +Delete the macro. + .IP "\fBifdef(, [, ])\fR" .IP "\fBifndef(, [, ])\fR" @@ -33,6 +36,9 @@ and later the already processed content will be included in the output. .IP "\fBshell()\fR" Runs command on shell, and includes the command output in the output +.IP "\fBeval()\fR" +Run a python command, write return value to output. + .IP "\fBexpr(, , ..., )\fR" Shorthand for running the expr command, expands all arguments, and executes it on the shell. @@ -63,43 +69,95 @@ It will process it's input twice before actually doing the conversion. This is t So you should probably always quote arguments to this. .IP "\fBwodl()\fR" -If compiled with \fBdeadlinks\fR, this macro will always return it's argument. +This macro will always return it's argument. But it will also perform a request to the link, and emit a warning if it it doesn't return HTTP 200 OK. This will significantly slow down compile times! -.SS "\fBCompile-Time Feature Flags\fR" -There are some compile-time flags that can enable/disable features, most are enabled by default, -and exist either because they trigger a external dependency, or because they are unlikely to work without glibc. +.IP "\fBtemplate(, )\fR" +Will read the file in \fIfilename\fR, and process it replacing \fBCONTENT\fR with the \fIcontent\fR. + +.IP "\fBiftruthy()\fR" +Returns python True if content is evaluated to \fItruthy\fR. + +.IP "\fBindent(, )\fR" +Indents each line of the \fIcontent\fR with \fIspaces\R spaces. + +.IP "\fBdumpenv\fR" +Debugging macro for printing smp internals. + +.SS "\fBSpecial macros\fR" +There is a syntax for special macros, which takes more data in once. + +.IP "\fB@template \fI