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

ENH Add details tag in methods #108

Merged
merged 4 commits into from
Aug 23, 2022

Conversation

BenjaminBossan
Copy link
Collaborator

Fixes #107

When passing details_tag=True for figures or tables, those are now
folded.

Note that this does not work for content added via the add method, since
that content relies on the existing template. Therefore, to change that,
the template has to be changed.

To see the results, look here:

Fixes skops-dev#107

When passing details_tag=True for figures or tables, those are now
folded.

Note that this does not work for content added via the add method, since
that content relies on the existing template. Therefore, to change that,
the template has to be changed.
@BenjaminBossan
Copy link
Collaborator Author

@adrinjalali ready for review

Copy link
Member

@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I'm happy with the implementation, but I think the fact that the details tag does it, is an implementation detail. WDYT of calling the argument something like expandable instead?

@BenjaminBossan
Copy link
Collaborator Author

WDYT of calling the argument something like expandable instead?

Yes, we can rename the argument. I wanted to use something that would have 0% chance of being actually intended as a section title. If you think "expandable" fits the bill, we can take that. I also thought about "folded" (like "code folding"), just to throw something else out there.

@adrinjalali
Copy link
Member

yeah folded seems a better one to me.

@adrinjalali adrinjalali changed the title Add details tag in methods ENH Add details tag in methods Aug 23, 2022
@adrinjalali adrinjalali merged commit 779cf8c into skops-dev:main Aug 23, 2022
@BenjaminBossan BenjaminBossan deleted the add-details-tag-in-methods branch August 23, 2022 13:46
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.

Add detail tag to new sections
2 participants