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
Hello,
I have some documentation with mdbook which heavily reference material under the form of source files, which I include for instance like this :
```
{{ #include some/file }}
```
Now I would like to globally control how this pattern is rendered, for instance automatically display a link to the source file in the git repository for easy access. What would be the best way to do this ? Most likely this cannot be done in the theme as by then the content has already been copied.
Proposed Solution
What would solve my immediate problem: an option in [output.html] such as display-include-file-links = true which would render a small bar above each code block with a link to the included file. The host could be provided in another option, e.g. for instance to point to source files hosted on github in the source repository.
Notes
No response
The text was updated successfully, but these errors were encountered:
Problem
Hello,
I have some documentation with mdbook which heavily reference material under the form of source files, which I include for instance like this :
Now I would like to globally control how this pattern is rendered, for instance automatically display a link to the source file in the git repository for easy access. What would be the best way to do this ? Most likely this cannot be done in the theme as by then the content has already been copied.
Proposed Solution
What would solve my immediate problem: an option in
[output.html]
such asdisplay-include-file-links = true
which would render a small bar above each code block with a link to the included file. The host could be provided in another option, e.g. for instance to point to source files hosted on github in the source repository.Notes
No response
The text was updated successfully, but these errors were encountered: