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

docs: updated integrations with more information #425 #386 #479

Merged
merged 2 commits into from
Sep 15, 2020

Conversation

RobotOptimist
Copy link
Contributor

@RobotOptimist RobotOptimist commented Sep 14, 2020

Types of changes

  • [x ] Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

The existing documentation for integrating with nuxt/feed does not work when statically generating pages. Also, it does not include a process for getting all of the content for the content field of the feed. This change will provide that missing information. This change also adds a process for integrating with nuxt/sitemap. Closes #425 Closes #386

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

Introduces alternate way of using the feed integration that will work with nuxt generate. Also allows users to generate the content field for the feed that will include all of the  html including (but not limited to) from Vue components and remark plugins., introduces way to retrieve just the markdown for the feed using a hook - which allows for easy integration to dev.to and medium.

Finally, includes the nuxtjs/sitemap integration as a bonus since the method to create the custom routes is similar to feed.

Closes nuxt#425
@RobotOptimist RobotOptimist changed the title docs: updated integrations with more information #425 docs: updated integrations with more information #425 #386 Sep 14, 2020
@benjamincanac
Copy link
Member

Thank you @RobotOptimist, this section will be really helpful!

@benjamincanac benjamincanac merged commit 83a2cd6 into nuxt:dev Sep 15, 2020
@narduin
Copy link

narduin commented Sep 15, 2020

Hi!

In the sitemap section, is posts supposed to be defined as a variable somewhere or is it a native element?
I'm getting an error posts is not defined when trying the snippet.

Thanks a lot!

@RobotOptimist
Copy link
Contributor Author

Hi @narduin, sorry about that - I had it defined as a separate variable in a previous example

let posts = [];

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.

Generate HTML for RSS Feed content property generate sitemap.xml
3 participants