Skip to content

Add Knocket live chat service (alongside Chatra/Tidio)#970

Merged
stevenjoezhang merged 1 commit into
next-theme:masterfrom
rrivory:feat/knocket-chat
Jul 1, 2026
Merged

Add Knocket live chat service (alongside Chatra/Tidio)#970
stevenjoezhang merged 1 commit into
next-theme:masterfrom
rrivory:feat/knocket-chat

Conversation

@rrivory

@rrivory rrivory commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Adds Knocket as a third chat service, next to the existing Chatra and Tidio integrations.

Knocket is a 100% free live chat widget (one <script> tag) aimed at indie developers and bloggers — free forever, no ads, no seat limits. Powered by Tencent RTC.

Changes

  • New partial layout/_third-party/chat/knocket.njk
  • Add an elif theme.knocket.enable branch in layout/_third-party/index.njk
  • Add a knocket: block to the Chat Services section of _config.yml

Behaviour

  • Disabled by default (enable: false); the widget only renders when enabled and identifier is set — no impact on existing sites.
  • Mirrors the existing Chatra/Tidio pattern (single async script).

Config example

knocket:
  enable: true
  async: true
  identifier: YOUR_ID   # from https://trtc.io/solutions/knocket

Happy to add a corresponding docs page (third-party-services/chat-services) if you would like.

More info: https://trtc.io/solutions/knocket

Knocket is a free-forever live chat widget (one script tag). Disabled by
default; renders only when knocket.enable is true and identifier is set.
@github-actions

Copy link
Copy Markdown

This pull request contains changes to the configuration file. Please make sure the documentation in NexT website is changed or added.
Please edit relevant source files here: https://github.com/next-theme/theme-next-docs/tree/master/source/docs and create a pull request with the changes here: https://github.com/next-theme/theme-next-docs/pulls

@CLAassistant

CLAassistant commented Jun 30, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@rrivory

rrivory commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Documentation PR opened: next-theme/theme-next-docs#159

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 28449421448

Warning

Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →

Coverage remained the same at 97.451%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 405
Covered Lines: 400
Line Coverage: 98.77%
Relevant Branches: 105
Covered Branches: 97
Branch Coverage: 92.38%
Branches in Coverage %: Yes
Coverage Strength: 3.63 hits per line

💛 - Coveralls

@stevenjoezhang stevenjoezhang added this to the 8.28.0 milestone Jul 1, 2026
@stevenjoezhang stevenjoezhang merged commit 12b2ee2 into next-theme:master Jul 1, 2026
13 checks passed
@welcome

welcome Bot commented Jul 1, 2026

Copy link
Copy Markdown

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.

4 participants