2 Questions: Referencing md in different directory; multiple summary.md? #113
-
Thanks a lot for the project I am enjoying it! I had a couple of questions. I have some documentation shows how do something via the cli and the same thing via the UI. Because of this there are some common md files. I was trying to construct a
However, this causes the following error
I also tried using the abs path but that didn't work either. I believe the code is here Lines 214 to 217 in 9b8f7f5 Question 2: Can you make a summary file that references and renders another summary file? I may want to render both the UI and CLI bits together. I understand that I could just put them together myself but I was thinking something like this:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hey there! Thanks for the issue. Question 1: The choice to prevent references outside the current directory was partly a security measure. I don't want the program to try to grab, say,
I would be open to adding an Question 2: This isn't possible today, but totally planned. I've been tracking it in #4, although the issue description is different because I wasn't completely sure about the UX. I've left a comment with something closer to what you're describing above. I may poke at it if I have time in the near future. EDIT(2023-11-07): Both pieces of functionality are now available in v0.8.0. |
Beta Was this translation helpful? Give feedback.
-
thanks for the response. I had setup the symlink prior to posting, I was just wondering if there was a native solution regarding your answer to question2, i'd be willing to get my hands dirty if you have some time to show me where some of this code lives and what your current thoughts around it are |
Beta Was this translation helpful? Give feedback.
-
Thanks for following up on this! |
Beta Was this translation helpful? Give feedback.
Hey there! Thanks for the issue.
Question 1: The choice to prevent references outside the current directory was partly a security measure. I don't want the program to try to grab, say,
~/.aws/config
. There are two workarounds to this:Create symlink to
../Intro.md
and../Quay_Prerequisites.md
in the current directory.That explicitly brings them in-scope in the current directory and you should be able to use them.
Place the summary.md in the parent directory -- this will require adjusting the other links though, so this is probably a bad idea for you.
I would be open to adding an
-unsafe
flag to …