Conversation
…Elements Manifest generation
Reviewer's GuideThis PR overhauls the documentation generator by refactoring markdown rendering into modular sections, replacing manual tables with the markdown-table utility, and introducing helper methods for escaping and type extraction. It also updates path utilities for locating config files, updates the CLI invocation to use a custom CEM config, and adds necessary dependencies and configuration files. Class diagram for updated Docs documentation generatorclassDiagram
class Docs {
+static renderAllElements(elements: CustomElementDeclaration[]): string
+static renderElement(element: CustomElementDeclaration, includeTitle = true): string
+static renderPropertiesAttributesTable(element: CustomElementDeclaration): string
+static renderParameters(parameters: Parameter[]): string
+static renderTable(name: string, properties: string[], data: Record<string, unknown>[]): string
+static escapeMarkdown(text: string): string
+static getType(obj: any): string
+static get(obj: any, path: string): any
+static capitalize(s: string): string
}
Docs --> CustomElementDeclaration
Docs --> ClassMember
Docs --> Parameter
Docs --> MergedTableData
Class diagram for updated path utilitiesclassDiagram
class pathUtils {
+getAuroHomeDir(): string
+withHomeDir(...args): string
+fromCliRoot(...relativePath): string
+configPath(file): string
}
pathUtils --> os
pathUtils --> path
pathUtils --> process
pathUtils --> fs
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Closed
There was a problem hiding this comment.
Hey there - I've reviewed your changes - here's some feedback:
- It looks like you’re using markdownTable in docs-generator.ts but didn’t import it—add
import markdownTable from 'markdown-table';at the top of the file. - The renderElement method has a lot of repeated table-pushing logic for Methods, Events, Slots, etc.—consider abstracting that into a loop or helper to reduce boilerplate.
- docs-generator.ts is missing a trailing newline at the end of the file; adding it can help avoid lint or build warnings.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- It looks like you’re using markdownTable in docs-generator.ts but didn’t import it—add `import markdownTable from 'markdown-table';` at the top of the file.
- The renderElement method has a lot of repeated table-pushing logic for Methods, Events, Slots, etc.—consider abstracting that into a loop or helper to reduce boilerplate.
- docs-generator.ts is missing a trailing newline at the end of the file; adding it can help avoid lint or build warnings.
## Individual Comments
### Comment 1
<location> `src/scripts/docs/docs-generator.ts:340` </location>
<code_context>
const type = obj.type;
</code_context>
<issue_to_address>
**suggestion (code-quality):** Prefer object destructuring when accessing and using properties. ([`use-object-destructuring`](https://docs.sourcery.ai/Reference/Rules-and-In-Line-Suggestions/TypeScript/Default-Rules/use-object-destructuring))
```suggestion
const {type} = obj;
```
<br/><details><summary>Explanation</summary>Object destructuring can often remove an unnecessary temporary reference, as well as making your code more succinct.
From the [Airbnb Javascript Style Guide](https://airbnb.io/javascript/#destructuring--object)
</details>
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
StephenRiosDev
approved these changes
Oct 23, 2025
Member
|
🎉 This PR is included in version 3.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Alaska Airlines Pull Request
Checklist:
By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team
Summary by Sourcery
Refactor the documentation generator to improve markdown rendering and type handling, add a manifest configuration for custom-elements-analyzer, and streamline path utilities
New Features:
Enhancements:
Chores: