You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make contributing to tutorials easier, it would be nice to be able to go directly from a tutorial page to the file on github that it is generated from. For example, going from Finding contours in your image to find_contours.markdown is slightly complicated because the file is under shapedescriptors, which you can't tell from the way the tutorials are organized on the docs site.
A possible approach to this I tested out was adding an alias to the DoxyFile and then running a shell command that adds a line to the end of every tutorial markdown file using that alias.
For instance the alias: github_source{1}="[View on Github (https://github.com/opencv/opencv/blob/master/doc/\1)"
With the following BSD command on a mac: find tutorials js_tutorials py_tutorials -name "*.markdown" -exec sh -c 'printf "\n@github_source{"$0"}" >> "$0"' {} \;
The command/alias can definitely be improved, but I wanted to see if something like this would be accepted, and receive any feedback on better ways to automate this process moving forward.
The text was updated successfully, but these errors were encountered:
To make contributing to tutorials easier, it would be nice to be able to go directly from a tutorial page to the file on github that it is generated from. For example, going from Finding contours in your image to find_contours.markdown is slightly complicated because the file is under shapedescriptors, which you can't tell from the way the tutorials are organized on the docs site.
A possible approach to this I tested out was adding an alias to the DoxyFile and then running a shell command that adds a line to the end of every tutorial markdown file using that alias.
For instance the alias:
github_source{1}="[View on Github (https://github.com/opencv/opencv/blob/master/doc/\1)"
With the following BSD command on a mac:
find tutorials js_tutorials py_tutorials -name "*.markdown" -exec sh -c 'printf "\n@github_source{"$0"}" >> "$0"' {} \;
The command/alias can definitely be improved, but I wanted to see if something like this would be accepted, and receive any feedback on better ways to automate this process moving forward.
The text was updated successfully, but these errors were encountered: