file_manager: serve Klipper's "docs" directory

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-11-23 06:17:23 -05:00
parent 93fd850b63
commit b0f781ec16
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ class FileManager:
if klipper_path is not None:
example_cfg_path = os.path.join(klipper_path, "config")
self.register_directory("config_examples", example_cfg_path)
docs_path = os.path.join(klipper_path, "docs")
self.register_directory("docs", docs_path)
# Register log path
log_file = paths.get('log_file')