extra-watch-dirs does not work if cwd is not the root of the book #2113
Labels
C-bug
Category: A bug, incorrect or unintended behavior
Command-serve
Command: serve
E-Help-wanted
Experience: Help Needed
Problem
command
mdbook
allows to serve a book from a different cwd likesame works from an inner folder of the book folder like
but if we set configuration
extra-watch-dirs
- the config is using thecwd
- not the root of the book.Case 1
mdbook serve
from root of the repoerror from output:
Case 2
mdbook serve
from assets directoryerror from output:
Case 3
mdbook serve
from root of the bookerror from output: No Error
Additional info
If u set configuration to path the resolves the cwd to the target directory like
or like
no error will be produced...but this is not expected.
Steps
extra-watch-dirs
mdbook serve
from an different folder than the root of the bookPossible Solution(s)
Just change the loading of
extra-watch-dirs
from the root of the book like thesrc
configuration and not from the cwdNotes
How I came to it?
I created a
justfile
to run some book command from root and got the errorVersion
The text was updated successfully, but these errors were encountered: