Skip to content

Commit

Permalink
Change stmd2html to stmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Hemken authored and Douglas Hemken committed Jun 18, 2018
1 parent 6f4d7a1 commit ef0617b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
8 changes: 4 additions & 4 deletions stmd2html.ado → stmd.ado
Original file line number Diff line number Diff line change
@@ -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
Expand Down
27 changes: 15 additions & 12 deletions stmd2html.sthlp → stmd.sthlp
Original file line number Diff line number Diff line change
@@ -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}]

Expand All @@ -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}
Expand All @@ -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}
Expand All @@ -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}
Expand All @@ -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:[email protected]":[email protected]}{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}
Binary file modified stmd.stpr
Binary file not shown.

0 comments on commit ef0617b

Please sign in to comment.