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:
- Documenting Stata packages in Markdown format within the script files and exporting the documentation for both:
- GitHub Wiki
- Stata Help files
- Building Stata package installation files
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!
- The software documentation are written in Markdown format within the script files, i.e. Mata or Ado files.
- 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.
- Next, we use the
markdoc
package to extract the documentations in two formats: - .STHLP to be used for Stata Help Files
- .md to be used on GitHub Wiki
MIT
E. F. Haghish
University of Goettingen
[email protected]
https://github.com/haghish