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

🐛 FIX: Path to custom output directory for _sources #346

Merged
merged 6 commits into from
Jul 8, 2021
Merged

🐛 FIX: Path to custom output directory for _sources #346

merged 6 commits into from
Jul 8, 2021

Conversation

dfm
Copy link
Contributor

@dfm dfm commented Jun 20, 2021

In #339 I introduced a fix for the _sources directory path that works with the default sphinx Makefile. But I have since discovered that this doesn't work with a custom output directory (as used by ReadTheDocs, for example). This updated PR should do the trick more generally. Sorry about the noise!

@welcome
Copy link

welcome bot commented Jun 20, 2021

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.

Welcome to the EBP community! 🎉

@choldgraf
Copy link
Member

oops I missed this PR, sorry! Is there a way that we can confirm this really solves the problem this time? E.g., is there a test that could make it fail w/o this PR, and passes with this PR?

@dfm
Copy link
Contributor Author

dfm commented Jul 6, 2021

No worries at all! I'll do some poking around and see what I can come up with.

@dfm
Copy link
Contributor Author

dfm commented Jul 6, 2021

@choldgraf: ok - I added a test that checks to make sure that the ipynb generated for a myst notebook ends up in the right _sources directory. It uses subprocess because I couldn't figure out how to pass outdir to sphinx_build_factory. Happy to update if there is a better way. This fails on master but passes with this fix. Thanks!

@choldgraf
Copy link
Member

Nice - that seems reasonable, I added in a comment to make it clear why we're using sphinx-build there. Thanks for this improvement!

@choldgraf choldgraf changed the title Fixing path to output directory for _sources 🐛 FIX: Path to custom output directory for _sources Jul 8, 2021
@choldgraf choldgraf merged commit e05def5 into executablebooks:master Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants