Discover the directory containing the conf.py file.
This function is useful for building stack docs since it will look in the current working directory and all parents.
str) – The inititial directory to search from. In practice, this is often the directory that the user is running the stack-docs CLI from.
root_dir – The root documentation directory containing
- Return type:
FileNotFoundError – Raised if a
conf.pyfile is not found in the initial directory, or any parents.