Skip to content

Commit

Permalink
Fix source directory path for other versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Feb 25, 2020
1 parent 318b025 commit 537cb23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sphinx_multiversion/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,17 @@ def main(argv=None):
source_suffixes = current_config.source_suffix
if isinstance(source_suffixes, str):
source_suffixes = [current_config.source_suffix]
project = sphinx_project.Project(sourcedir, source_suffixes)

current_sourcedir = os.path.join(repopath, sourcedir)
project = sphinx_project.Project(current_sourcedir, source_suffixes)
metadata[gitref.name] = {
"name": gitref.name,
"version": current_config.version,
"release": current_config.release,
"is_released": bool(
re.match(config.smv_released_pattern, gitref.refname)),
"source": gitref.source,
"sourcedir": sourcedir,
"sourcedir": current_sourcedir,
"outputdir": outputdir,
"docnames": list(project.discover())
}
Expand Down

0 comments on commit 537cb23

Please sign in to comment.