To include a link to download a file contained within the documentation, use:

{% include link_file.html file="<path to file starting directly under files/>" text="my link text" %}

For example, to link the NcML file $PATH_TO_GIT_REPO/docs/src/public/userguide/files/netcdfJava_tutorial/ncml/basic_ncml/exercise1.ncml , like this:

my link text

use:

{% include link_file.html file="netcdfJava_tutorial/ncml/basic_ncml/exercise1.ncml" text="my link text" %}