Show the relative path of conf.py file used
* Show the relative path of conf.py file used
Instead of showing just "cat conf.py" now we show "cat docs/conf.py"
as a relative path starting from the checkout path (repository
directory).
* Use self.version.slug to get the checkout path
@@ -129,8 +129,9 @@ class BaseSphinx(BaseBuilder):
# Print the contents of conf.py in order to make the rendered
# configfile visible in the build logs
self.run(
- 'cat', os.path.basename(outfile_path),
- cwd=os.path.dirname(outfile_path),
+ 'cat', os.path.relpath(outfile_path,
+ project.checkout_path(self.version.slug)),
+ cwd=project.checkout_path(self.version.slug),
)
def build(self, **kwargs):
