diff --git a/Makefile.in b/Makefile.in index 023029b..6c38a5f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -31,7 +31,7 @@ install.everything: install install.samples install.man install.samples: $(SAMPLE_PGMS) install @INSTALL_PROGRAM@ $(SAMPLE_PGMS) $(DESTDIR)/$(BINDIR) @INSTALL_DIR@ $(DESTDIR)/$(MANDIR)/man1 - @INSTALL_DATA@ theme.1 $(DESTDIR)/$(MANDIR)/man1 + @INSTALL_DATA@ theme.1 makepage.1 mkd2html.1 $(DESTDIR)/$(MANDIR)/man1 install.man: @INSTALL_DIR@ $(DESTDIR)/$(MANDIR)/man3 diff --git a/makepage.1 b/makepage.1 new file mode 100644 index 0000000..0a78018 --- /dev/null +++ b/makepage.1 @@ -0,0 +1,34 @@ +.\" %A% +.\" +.Dd January 10, 2010 +.Dt MAKEPAGE 1 +.Os MASTODON +.Sh NAME +.Nm makepage +.Nd convert markdown input to a fully-formed xhtml page +.Sh SYNOPSIS +.Nm +.Op Pa file +.Sh DESCRIPTION +The +.Nm +utility parses a +.Xr markdown 7 Ns -formatted +.Pa textfile +.Pq or stdin if not specified, +compiles it, then prints a fully-formed xhtml page to stdout. +.Pp +.Nm +is part of discount. +.Sh RETURN VALUES +The +.Nm +utility exits 0 on success, and >0 if an error occurs. +.Sh SEE ALSO +.Xr markdown 1 , +.Xr markdown 3 , +.Xr markdown 7 , +.Xr mkd-extensions 7 . +.Sh AUTHOR +.An David Parsons +.Pq Li orc@pell.chi.il.us diff --git a/mkd2html.1 b/mkd2html.1 new file mode 100644 index 0000000..44688d9 --- /dev/null +++ b/mkd2html.1 @@ -0,0 +1,52 @@ +.\" %A% +.\" +.Dd January 10, 2010 +.Dt MKD2HTML 1 +.Os MASTODON +.Sh NAME +.Nm mkd2html +.Nd markdown to html converter +.Sh SYNOPSIS +.Nm +.Op Fl css Pa file +.Op Fl header Pa string +.Op Fl footer Pa string +.Op Pa file +.Sh DESCRIPTION +.Nm +utility parses a +.Xr markdown 7 Ns -formatted +.Pa textfile +.Pq or stdin if not specified, +and generates a web page. It +reads +.Ar file +or +.Ar file.text + and writes the result in +.Ar file.html +.Pq where file is the passed argument. +.Pp +.Nm +is part of discount. +.Sh OPTIONS +.Bl -tag -width "-header string" +.It Fl css Ar file +Specifies a CSS file. +.It Fl header Ar string +Specifies a line to add to the
tag. +.It Fl footer Ar string +Specifies a line to add before the <\/body> tag. +.El +.Sh RETURN VALUES +The +.Nm +utility exits 0 on success, and >0 if an error occurs. +.Sh SEE ALSO +.Xr markdown 1 , +.Xr markdown 3 , +.Xr markdown 7 , +.Xr mkd-extensions 7 . +.Sh AUTHOR +.An David Parsons +.Pq Li orc@pell.chi.il.us