Skip to content
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

chore(api-docs-template): Update ApiModal styling/markup. Move breadcrumbs to ApiModalBreadcrumbs #7956

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

hbuchel
Copy link
Contributor

@hbuchel hbuchel commented Sep 10, 2024

Description of changes:

  • Adds some initial typing to ApiModal
  • Moves breadcrumb related markup to its own component file
  • Update styling
CleanShot.2024-09-10.at.12.39.25.mp4

Related GitHub issue #, if available:

Instructions

If this PR should not be merged upon approval for any reason, please submit as a DRAFT

Which product(s) are affected by this PR (if applicable)?

  • amplify-cli
  • amplify-ui
  • amplify-studio
  • amplify-hosting
  • amplify-libraries

Which platform(s) are affected by this PR (if applicable)?

  • JS
  • Swift
  • Android
  • Flutter
  • React Native

Please add the product(s)/platform(s) affected to the PR title

Checks

  • Does this PR conform to the styleguide?

  • Does this PR include filetypes other than markdown or images? Please add or update unit tests accordingly.

  • Are any files being deleted with this PR? If so, have the needed redirects been created?

  • Are all links in MDX files using the MDX link syntax rather than HTML link syntax?

    ref: MDX: [link](https://docs.amplify.aws/)
    HTML: <a href="https://docs.amplify.aws/">link</a>

When this PR is ready to merge, please check the box below

  • Ready to merge

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hbuchel hbuchel requested a review from a team as a code owner September 10, 2024 16:42
@hbuchel hbuchel merged commit 4ec76ba into feature/api-docs-template Sep 10, 2024
2 checks passed
@hbuchel hbuchel deleted the api-docs-template-modal branch September 10, 2024 19:17
jacoblogan added a commit that referenced this pull request Sep 27, 2024
* initial template implementation

* additional template functionality

* update modal

* add api references json

* add api categories

* update to template and display

* revert changes to dev script

* pass references to components

* remove build cache

* remove pass through references

* clean references

* add categories into clean references

* update references

* update references with correct categories

* update references

* cleaned references

* update to clean references

* update header and Toc

* update directories

* update generate directory

* add sub categories

* move references and rename to raw-references

* update api docs template

* undo unwanted changes

* remove colons, some type updates, add keys (#7952)

* update TypeLink to output a button (#7953)

* chore(api-docs-template): Update ApiModal styling/markup. Move breadcrumbs to ApiModalBreadcrumbs (#7956)

* update Modal styling/ add Breadcrumbs

* remove commented out code

* update to generateDirectory to add api reference pages (#7950)

Co-authored-by: Jacob Logan <[email protected]>

* add getApiStaticPath util function (#7949)

* add getApiStaticPath util function

* add typing

* update type and comment on paths

---------

Co-authored-by: Jacob Logan <[email protected]>

* parse out markdown links in comments

* update link to display literal type

* Feature/api docs workflow (#7948)

* update api disapatch workflow

* set github commit user in workflow

* update references file name

* rename raw and clean references

* update workflow add comments to clean script

---------

Co-authored-by: Jacob Logan <[email protected]>

* add dark mode to modal description text

* update api function returns to use typeParameters

* remove space in promise display

* close modal when click outside modal (#7969)

Co-authored-by: katiegoines <[email protected]>

* focus modal on open (#7970)

Co-authored-by: katiegoines <[email protected]>

* fix typo;

* fix error in modal close

* format "Returns" as code (#7971)

* .

* format Returns as code

---------

Co-authored-by: katiegoines <[email protected]>

* add api link legend

* update breadcrumbs separator, render nested typeArgs, render nested arraytypes

* add function type display

* add error type

* update api legend and link colors

* update cleaned references location

* update base references files

* update scroll behavior

* reverting uneeded changes to base.scss

* update formatting

* add spacing to breadcrumbs

* remove extra space and add legend header

* add formatting to api comments (#8000)

Co-authored-by: Jacob Logan <[email protected]>

* update list parsing

---------

Co-authored-by: Jacob Logan <[email protected]>
Co-authored-by: Heather Buchel <[email protected]>
Co-authored-by: Katie Goines <[email protected]>
Co-authored-by: katiegoines <[email protected]>
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