Skip to content

Docs: Clarify smiley assets and bundled parser use. - #10

Merged
JJJ merged 1 commit into
masterfrom
jjj/nbbc-doc-review-followup
Nov 19, 2026
Merged

JJJ merged 1 commit into
masterfrom
jjj/nbbc-doc-review-followup

Conversation

@JJJ

@JJJ JJJ commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow up on the post-merge review of PR #9:

  • Clarify that smiley images are optional assets and show how to configure or disable smileys.
  • Separate standalone use of nbbc.php from bbPress's bundled parser to avoid loading duplicate global classes. Point converter authors to $bbcode_parser_properties.
  • Exercise a fresh smiley token with a real image fixture from a different working directory, so the expected dimensions prove that the configured smiley directory is used.

Validation

  • sh tests/run.sh
  • NBBC_TEST_BUILD=legacy NBBC_LEGACY_PARSER=/path/to/bbpress/src/includes/admin/parser.php php tests/bbpress_compat.php

Explain the optional image assets and distinguish standalone NBBC from bbPress converters. Add an uncached fixture that confirms a configured smiley directory supplies image dimensions.
Copilot AI balanced review requested due to automatic review settings November 19, 2026 00:00
@JJJ
JJJ merged commit 07185be into master Nov 19, 2026
17 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the deployment documentation and smiley compatibility fixture updates.

No open issues 🎉

What changed in this PR

This follow-up to PR #9 clarifies standalone NBBC deployment and bbPress converter configuration, and strengthens the smiley compatibility fixture.

Changes:

  • Document optional smiley assets, directory and URL configuration, and how to disable smileys.
  • Distinguish standalone loading from bbPress’s bundled parser to avoid duplicate global classes.
  • Verify image dimensions using a fresh smiley token from a different working directory.
File Description
tests/​bbpress_compat.php Add an uncached smiley fixture that checks the configured image directory and restores the working directory.
docs/​USAGE.md Clarify smiley deployment, standalone usage, and bundled parser configuration through converter properties.

Review effort: Balanced

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