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

gatsby-plugin-sitemap: Update README.md #38684

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

char-cole
Copy link

Description

I found this plugin surprisingly difficult to set up and spent quite a bit of time unraveling the errors I was getting (mostly the cryptic "error in default filter").

The descriptions of the functions, and especially the types of their parameters and return values, confused me. (In particular, I still can't parse the second sentence of the description of query, so my edit may actually be incorrect). After I completed setup in my project, I wanted to explain some of the information I'd learned through trial-and-error.

Since the project is not written in TypeScript and there are many object types, I wanted to be more explicit about the expected properties on those objects. For example, it's not obvious that path is a required property in the page objects returned by a custom resolvePages.

I also made some other stylistic/copy changes which to me make the documentation easier to read, but those are less important.

Thank you for your efforts writing this plugin and your time reading, I hope this PR is received well.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Nov 1, 2023
@char-cole char-cole changed the title Update README.md gatsby-plugin-sitemap: Update README.md Nov 2, 2023
@serhalp serhalp added type: documentation An issue or pull request for improving or updating Gatsby's documentation topic: plugins Related to plugin system, themes & catch-all for plugins that don't have a label labels Jun 25, 2024
Revised types and descriptions of config options for clarity.
@serhalp serhalp added status: needs docs review Pull request related to documentation waiting for review and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs docs review Pull request related to documentation waiting for review topic: plugins Related to plugin system, themes & catch-all for plugins that don't have a label type: documentation An issue or pull request for improving or updating Gatsby's documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants