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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: provide API overview in docs #4046

Open
isaac-mcfadyen opened this issue Mar 30, 2024 · 4 comments
Open

Enhancement: provide API overview in docs #4046

isaac-mcfadyen opened this issue Mar 30, 2024 · 4 comments

Comments

@isaac-mcfadyen
Copy link

Feature request

First of all, thank you for creating Sharp! It's proven very useful for a number of my projects and is what I reach to first when needing any sort of image transformations or conversion. 馃槃

I'd be open to writing a PR for the following if it's something that is wanted on the Sharp docs.

What are you trying to achieve?

  • Currently to start using Sharp, you need to visit the Installation page and install, and then scroll through the Constructor page to find out how to construct Sharp (and import sharp - is it a default import? Named import? Docs don't really say), and then search through the docs on Resizing Images or other API doc pages for common use-cases.
  • It would be nice to have a "quickstart" or "getting started" guide on the docs, similar to many other open-source documentation sites.
  • A getting started guide is useful to help the user in getting Sharp installed and used as fast as possible.
  • It doesn't need to be comprehensive or very long, that's what the rest of the docs are for, but a simple "visit the Installation page to install, then import sharp like this, construct sharp like this, here are some common use-cases, see docs for the rest" might be useful.

When you searched for similar feature requests, what did you find that might be related?

  • No related issues or feature requests.

What would you expect the API to look like?

  • N/A, docs change only.

What alternatives have you considered?

  • A section on importing Sharp within the existing Installation section. This would allow easier onboarding but would still require the user to look through the rest of the docs for common use-cases.
@chriscurnow

This comment was marked as duplicate.

@lovell
Copy link
Owner

lovell commented Mar 31, 2024

Thanks for the suggestion, I guess this is partly what the readme in the repo tries to do, however this is not currently part of the documentation site.

(This task should probably... include... updating the existing readme to add an import example alongside the existing require example.)

@robbyemmert

This comment was marked as off-topic.

@lovell lovell changed the title Feature request: quickstart guide on docs Enhancement: provide API overview in docs Apr 2, 2024
@lovell
Copy link
Owner

lovell commented Apr 2, 2024

@robbyemmert This issue relates to the provision of an API overview. There is already extensive installation help available. If you still require help, please open a new installation issue and answer all of the questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants