Hello everyone,
I am trying to write documentation for a Stata project I'm finishing. Suppose I distribute the project to my coworkers as a ado command "myproject.ado", the corresponding "myproject.sthlp" help file, and a "myproject_resources" folder containing various do-files necessary to the project, and HTML documentation files. I tell my coworkers (and the future users) to drop the two files and the folder anywhere on their ado path.
For a typical user, the directory structure would look like this:
Now, in the STHLP file, I would like to include links to the HTML documentation inside the "myproject_resources" folder. If the STHLP was simply an HTML file, I would just use the relative path to the desired file, something like:
Unfortunately, it does not seem to work in sthlp files. Even worse, I can't even use relative paths from the c(pwd) directory, it seems. I've only made it work with absolute paths so far.
Do you know a way to use relative paths in STHLP files to include links to local HTML files? Thank you very much.
edit: tags
I am trying to write documentation for a Stata project I'm finishing. Suppose I distribute the project to my coworkers as a ado command "myproject.ado", the corresponding "myproject.sthlp" help file, and a "myproject_resources" folder containing various do-files necessary to the project, and HTML documentation files. I tell my coworkers (and the future users) to drop the two files and the folder anywhere on their ado path.
For a typical user, the directory structure would look like this:
Code:
C:/ado/personal/ myproject.ado myproject.sthlp myproject_resources/ method_1.do method_2.do more_doc.html
Code:
{browse "./myproject_resources/more_doc.html": More documentation}
Do you know a way to use relative paths in STHLP files to include links to local HTML files? Thank you very much.
edit: tags
Comment