Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jaredgalanis
Copy link
Contributor

@jaredgalanis jaredgalanis commented Nov 12, 2023

Description

This is a fix for decorator handling in code comment blocks. This introduces part of https://github.com/cibernox/ember-cli-yuidoc, a dep of ember.js and is what processes the ember.js docs and allows ember.js yui doc generation to handle decorator syntax. Since we have our own bespoke doc compilation process in EmberData that the addon doesn't address, we are introducing this 1 change here rather than adding ember-cli-yuidoc itself as a dependency.

See: https://github.com/cibernox/ember-cli-yuidoc/blob/master/lib/broccoli-yuidoc.js

This also fixes a few code blocks that were unclosed and only became exposed in failing tests once decorators were being handled properly and the docs were fully building (previously we were missing some of the code comments in docs because of the decorator issue).

BEFORE:
Screenshot 2023-11-12 at 8 49 34 AM

AFTER:

Screenshot 2023-11-12 at 8 41 17 AM

@jaredgalanis jaredgalanis marked this pull request as draft November 12, 2023 13:42
@jaredgalanis jaredgalanis marked this pull request as ready for review November 12, 2023 16:50
@jaredgalanis jaredgalanis force-pushed the fix-allow-decorator-syntax-in-code-comments branch from 6662826 to 9b56d46 Compare November 12, 2023 17:01
This is a fix for decorator handling in code comment blocks that is part of https://github.com/cibernox/ember-cli-yuidoc and is what allows ember.js yui doc generation to handle decorator syntax.

See: https://github.com/cibernox/ember-cli-yuidoc/blob/master/lib/broccoli-yuidoc.js
@jaredgalanis jaredgalanis force-pushed the fix-allow-decorator-syntax-in-code-comments branch from 9b56d46 to fc36f2e Compare November 12, 2023 17:02
@jaredgalanis jaredgalanis added 🏷️ bug This PR primarily fixes a reported issue 🎯 release PR should be backported to release 🎯 canary PR is targeting canary (default) and removed 🏷️ bug This PR primarily fixes a reported issue 🎯 release PR should be backported to release labels Nov 12, 2023
Copy link
Contributor

@mansona mansona left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@runspired runspired merged commit 9917fe1 into main Nov 14, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix-allow-decorator-syntax-in-code-comments branch November 14, 2023 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎯 canary PR is targeting canary (default) 🏷️ bug This PR primarily fixes a reported issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants