-
Notifications
You must be signed in to change notification settings - Fork 663
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
add no_title argument to toc #571
Conversation
Ah yep this is great! Could you add a test? :-). I believe test_toc is the module (sorry, at my phone now) |
cool will do later. Also looks like you're using black, right? |
yep! |
hm so I overwrote the |
oh good call, maybe it was accidentally checked in - do the tests pass if it is deleted before running the test suite? (if so, we can probably delete it and add to .gitignore) |
I gave up trying to run the tests locally. Seems pretty tricky. Do you run tests locally? |
it's not tough if you don't run the PDF tests since those require latex etc...we should document that too! |
Actually - now that I look at this and think about some of your comments, I wonder if we should make this PR's behavior the default behavior? AKA, by default titles are not included in the |
I'm happy either way :) Maybe having this be the default makes more sense, happy to change the PR. I usually go with backward compatible by default which is why I did it this way first ;) |
I think I'd be +1 to change it and make the flag |
this is looking good to me - lemme know when it's ready to go |
should be good, I think? |
nice! Thanks so much @amueller :-) |
no tests yet, let me know if you think this is useful.
basically calling
jb toc
overwrote the titles with the file names every time and it seem tricky to control. I'd rather just use the titles I gave in the documents inside the toc as well.