mirror of
https://github.com/vale981/sphinx-multiversion
synced 2025-03-05 09:31:40 -05:00
Add absolute outputdir and confdir to metadata dict
This commit is contained in:
parent
a21fa854c7
commit
75e8b3f96b
1 changed files with 4 additions and 3 deletions
|
@ -180,7 +180,10 @@ def main(argv=None):
|
||||||
"source": gitref.source,
|
"source": gitref.source,
|
||||||
"creatordate": gitref.creatordate.strftime(sphinx.DATE_FMT),
|
"creatordate": gitref.creatordate.strftime(sphinx.DATE_FMT),
|
||||||
"sourcedir": current_sourcedir,
|
"sourcedir": current_sourcedir,
|
||||||
"outputdir": outputdir,
|
"outputdir": os.path.join(
|
||||||
|
os.path.abspath(args.outputdir), outputdir
|
||||||
|
),
|
||||||
|
"confdir": os.path.abspath(confdir),
|
||||||
"docnames": list(project.discover()),
|
"docnames": list(project.discover()),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,8 +203,6 @@ def main(argv=None):
|
||||||
# Run Sphinx
|
# Run Sphinx
|
||||||
argv.extend(["-D", "smv_metadata_path={}".format(metadata_path)])
|
argv.extend(["-D", "smv_metadata_path={}".format(metadata_path)])
|
||||||
for version_name, data in metadata.items():
|
for version_name, data in metadata.items():
|
||||||
data["confdir"] = confdir
|
|
||||||
data["outputdir"] = os.path.join(args.outputdir, data["outputdir"])
|
|
||||||
os.makedirs(data["outputdir"], exist_ok=True)
|
os.makedirs(data["outputdir"], exist_ok=True)
|
||||||
|
|
||||||
defines = itertools.chain(
|
defines = itertools.chain(
|
||||||
|
|
Loading…
Add table
Reference in a new issue