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

Support folding code blocks in tabs #694

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

PeichengLiu
Copy link
Contributor

@PeichengLiu PeichengLiu commented Aug 23, 2023

PR Checklist

PR Type

  • Bugfix.
  • Feature.
  • Improvement.
  • Code style update (formatting, linting).
  • Refactoring (no functional changes).
  • Documentation.
  • Translation.
  • Other... Please describe:

What is the current behavior?

Non-default tab is not folded.
See also #679.

What is the new behavior?

Non-default tab is folded on the fly based on the event dispatched when user switch to a new tab.

How to use?

In NexT _config.yml:

codeblock:
  # Fold code block
  fold:
    enable: true
    threshold: 500

@welcome
Copy link

welcome bot commented Aug 23, 2023

Thanks so much for opening your first PR here!

@CLAassistant
Copy link

CLAassistant commented Aug 23, 2023

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 5954202769

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.416%

Totals Coverage Status
Change from base Build 5728719282: 0.0%
Covered Lines: 394
Relevant Lines: 399

💛 - Coveralls

Copy link
Member

@stevenjoezhang stevenjoezhang 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 your contribution!

@stevenjoezhang stevenjoezhang added this to the 8.18.1 milestone Sep 8, 2023
@stevenjoezhang stevenjoezhang merged commit 3fe071e into next-theme:master Sep 8, 2023
13 checks passed
@welcome
Copy link

welcome bot commented Sep 8, 2023

Congrats on merging your first pull request here! 🎉 How awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants