redhat-developer / vscode-didact

Framework and tools for providing interactive tutorials with active links that call VS Code commands
https://marketplace.visualstudio.com/items?itemName=redhat.vscode-didact
Apache License 2.0
80 stars 25 forks source link

Resources not correctly linked when the files are in subdirectories #617

Open squakez opened 3 years ago

squakez commented 3 years ago

I am creating a series of tutorials, each one in a different subdirectory, ie:

basic/readme.didact.md
basic/file.txt
advanced/readme.didact.md
basic/file.txt
...

When I execute the basic tutorial, any reference to the local file.txt is not following the path. As far as I can see, the tutorial assume the file is in the root directory instead. I am not sure if it is a bug or there is some configuration that I should apply to tell the tutorial the execution has to run in a directory.

As an example, you can see the tutorial command executed here: https://github.com/openshift-integration/camel-k-example-kafka/tree/main/basic#saslplain-authentication-method

bfitzpat commented 3 years ago

@squakez I will take a look! I think we assume that the tutorials are in a nested subdirectory setup right now

Sorry I missed this. We've mostly moved issues to JIRA and I forgot to check!