Skip to content

docs(methods): update component method documentation #4145 #30495

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

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

soundproofboot
Copy link

@soundproofboot soundproofboot commented Jun 17, 2025

Issue number: resolves ionic-team/ionic-docs#4145


What is the current behavior?

Some component methods are missing param tags in the JSDoc comments. Some comments are out of order and the method description is below the last param description. Some back ticks are misplaced around words resulting in incorrect formatting in the docs site.

What is the new behavior?

Method documentation in app, action-sheet, alert, datetime, loading, menu, modal, popover, reorder-group, router, searchbar, and toast now include descriptions for all params, all method descriptions are placed above param descriptions, and back ticks are formatted correctly. All changes are within JSDoc comments so will result in a change to the docs site but no functional change to any components.

Does this introduce a breaking change?

  • Yes
  • No

Other information

In order to preview these changes I took the JSON generated from the build on this branch and used it in the docusaurus script in place of the fetch from unpkg. I set up a preview from my fork on Vercel - https://ionic-docs-git-temptotestdocs-soundproofboots-projects.vercel.app/docs/components . The change I made to the docusaurus script to use this temp data is here - https://github.com/soundproofboot/ionic-docs/pull/1/files. tempDocs.json is the output of the framework build after making these changes.

@soundproofboot soundproofboot requested a review from a team as a code owner June 17, 2025 17:54
Copy link

vercel bot commented Jun 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 10:11pm

@brandyscarney
Copy link
Member

Can we open this against the main branch please? 🙂

@soundproofboot
Copy link
Author

@brandyscarney yes, should I make a new pull request to the main branch?

@brandyscarney
Copy link
Member

@soundproofboot You can edit the branch on this PR by pressing "Edit" next to the PR title - but you may have to update your branch if you created it off of feature-8.7 and it had any commits to it (I don't think it did though, it should match main).

@soundproofboot soundproofboot changed the base branch from feature-8.7 to main June 23, 2025 14:43
Copy link
Member

@brandyscarney brandyscarney 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! Just some minor requests. 🙂

Copy link
Member

@brandyscarney brandyscarney 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, thank you!! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

content: add @param tags and review formatting in method comments
2 participants