Skip to content
/ echo Public

a tutorial for documenting & building Stata packages using Markdown. the repository explains the procedure of applying literate programming for Stata package documentation. It also provides a tutorial for building Stata package installation files using MAKE gui

License

Notifications You must be signed in to change notification settings

haghish/echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tutorial for documenting Stata packages with Markdown and building package installation files

This repository is a tutorial for anyone who is interested to develop, publish, and document a Stata package on GitHub. The tutorial documents and builds a Stata package named echo, which is a simple Stata program that prints the given text and provides a few styling options. The echo program is comepletely documented within literate programming paradigm, i.e. the documentation is written within the script file. This might sound unusual to you now, but soon you will realize that how convenient it is to document your Stata packages as shown in the tutorial. The tutorial has two parts, which are:

  1. Documenting Stata packages in Markdown format within the script files and exporting the documentation for both:
    • GitHub Wiki
    • Stata Help files
  2. Building Stata package installation files

Getting started

To follow the tutorials, first make sure that you have all of the required software installed and then, fork this repository and its Wiki documentation. Here is what you need to do:

  • make sure to install github package within Stata
  • make sure you have markdoc package installed
  • fork this repository using https://github.com/haghish/echo.git address
  • fork the repository's Wiki using _https://github.com/haghish/echo.wiki.git address

And you are good to go with the tutorial!

How exactly does it work?

  1. The software documentation are written in Markdown format within the script files, i.e. Mata or Ado files.
  2. Because the documentation are very easy to read and update, anyone who forks the repository can also update the documentation that are written within the script files.
  3. Next, we use the markdoc package to extract the documentations in two formats:
  4. .STHLP to be used for Stata Help Files
  5. .md to be used on GitHub Wiki

License

MIT

Author

E. F. Haghish
University of Goettingen
haghish@med.uni-goettingen.de
https://github.com/haghish

About

a tutorial for documenting & building Stata packages using Markdown. the repository explains the procedure of applying literate programming for Stata package documentation. It also provides a tutorial for building Stata package installation files using MAKE gui

Resources

License

Stars

Watchers

Forks

Packages

No packages published