diff --git a/stmd2html.ado b/stmd.ado similarity index 91% rename from stmd2html.ado rename to stmd.ado index 1dd3276..4a35f55 100644 --- a/stmd2html.ado +++ b/stmd.ado @@ -1,11 +1,11 @@ -*! version 1.2 +*! version 1.3 *! Doug Hemken -*! 3 April 2018 +*! 18 June 2018 // pass arguments to dyndoc -capture program drop stmd2html -program define stmd2html, rclass +capture program drop stmd +program define stmd, rclass syntax anything(name=infile) /// input file name [, /// SAVing(string) REPLace /// name of HTML file diff --git a/stmd2html.sthlp b/stmd.sthlp similarity index 69% rename from stmd2html.sthlp rename to stmd.sthlp index d7dfb96..6652a6a 100644 --- a/stmd2html.sthlp +++ b/stmd.sthlp @@ -1,29 +1,29 @@ {smcl} -{* *! version 1.0 16mar2018}{...} +{* *! version 1.3 18jun2018}{...} {* *! Doug Hemken}{...} {vieweralsosee "" "--"}{...} -{vieweralsosee "md2dyn" "help md2dyn"}{...} +{vieweralsosee "stmd2dyn" "help stmd2dyn"}{...} {vieweralsosee "dyndoc" "help dyndoc"}{...} {vieweralsosee "dyntext" "help dyntext"}{...} {vieweralsosee "dynamic tags" "help dynamic tags"}{...} {vieweralsosee "pandoc" "help pandoc"}{...} {vieweralsosee "dyn2do" "help dyn2do"}{...} -{viewerjumpto "Syntax" "md2dyn##syntax"}{...} -{viewerjumpto "Description" "md2dyn##description"}{...} -{viewerjumpto "Options" "md2dyn##options"}{...} -{viewerjumpto "Remarks" "md2dyn##remarks"}{...} -{viewerjumpto "Examples" "md2dyn##examples"}{...} +{viewerjumpto "Syntax" "stmd##syntax"}{...} +{viewerjumpto "Description" "stmd##description"}{...} +{viewerjumpto "Options" "stmd##options"}{...} +{viewerjumpto "Remarks" "stmd##remarks"}{...} +{viewerjumpto "Examples" "stmd##examples"}{...} {title:Title} {phang} -{bf:stmd2html} Convert dynamic Markdown to HTML format using Stata {cmd: dyndoc}{p_end} +{bf:stmd} Convert dynamic Markdown to HTML format using Stata {cmd: dyndoc}{p_end} {marker syntax}{...} {title:Syntax} {p 8 17 2} -{cmd:stmd2html} +{cmd:stmd} filename [{cmd:,} {it:options}] @@ -42,7 +42,7 @@ filename {title:Description} {pstd} -{cmd:md2dyn} Takes a dynamic Markdown document using conventional markdown +{cmd:stmd} Takes a dynamic Markdown document using conventional markdown specification and converts it to HTML via Stata's {cmd: dyndoc} command. This is just a wrapper for {cmd: stmd2dyn} followed by {cmd: dyndoc} @@ -59,6 +59,9 @@ filename {phang} {opt replace} replace {it:filename2} if it already exists{p_end} +{phang} +{it:options} additional options may be passed to {cmd:dydndoc}{p_end} + {marker remarks}{...} {title:Remarks} @@ -71,7 +74,7 @@ If {it: filename2} is not specified, then {it: filename} with an {marker examples}{...} {title:Examples} -{phang}{cmd:. stmd2html using example.stmd}{p_end} +{phang}{cmd:. stmd using example.stmd}{p_end} {title:Author} @@ -81,4 +84,4 @@ If {it: filename2} is not specified, then {it: filename} with an {p 4} Univ of Wisc-Madison{p_end} {p 4} {browse "mailto:dehemken@wisc.edu":dehemken@wisc.edu}{p_end} {p 4} https://www.ssc.wisc.edu/~hemken/Stataworkshops{p_end} -{p 4} https://github.com/Hemken/md2dyn{p_end} +{p 4} https://github.com/Hemken/stmd{p_end} diff --git a/stmd.stpr b/stmd.stpr index 7e366d9..f7d5370 100644 Binary files a/stmd.stpr and b/stmd.stpr differ