Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix #944. #945

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions breathe/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import os
import fnmatch
from pathlib import Path


from typing import Dict
Expand Down Expand Up @@ -113,14 +114,15 @@ def __init__(self, app: Sphinx):
# Assume general build directory is the doctree directory without the last component.
# We strip off any trailing slashes so that dirname correctly drops the last part.
# This can be overridden with the breathe_build_directory config variable
self._default_build_dir = os.path.dirname(app.doctreedir.rstrip(os.sep))
self._default_build_dir = Path(app.doctreedir).parent

self.project_count = 0
self.project_info_store: Dict[str, ProjectInfo] = {}
self.project_info_for_auto_store: Dict[str, AutoProjectInfo] = {}
self.auto_project_info_store: Dict[str, AutoProjectInfo] = {}

@property
def build_dir(self) -> str:
def build_dir(self) -> str | os.PathLike:
config = self.app.config
if config.breathe_build_directory:
return config.breathe_build_directory
Expand Down