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(provider): auto-generate providers list #1295

Merged
merged 5 commits into from
Feb 10, 2021

Conversation

balazsorban44
Copy link
Member

@balazsorban44 balazsorban44 commented Feb 10, 2021

What:

Autogenerate a list of built-in providers from the providers' documentation frontmatter.

Why:

To reduce the effort needed to add a built-in provider even further.

From now on, you only need to add two files in these folders:

Docs: https://github.com/nextauthjs/next-auth/tree/main/www/docs/providers
Provider code: https://github.com/nextauthjs/next-auth/tree/main/src/providers

How:

Iterate over the www/docs/providers folder, and use a regex that writes provider ids and titles to www/providers.json

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

closes #1157

@vercel
Copy link

vercel bot commented Feb 10, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nextauthjs/next-auth/8igh187mi
✅ Preview: https://next-auth-git-feature-autogen-provider-list.nextauthjs.vercel.app

@balazsorban44 balazsorban44 changed the title Feature/autogen provider list docs: auto-generate providers list Feb 10, 2021
@github-actions github-actions bot added the docs Relates to documentation label Feb 10, 2021
@vercel vercel bot temporarily deployed to Preview February 10, 2021 19:26 Inactive
@balazsorban44 balazsorban44 changed the title docs: auto-generate providers list docs(provider): auto-generate providers list Feb 10, 2021
@balazsorban44 balazsorban44 force-pushed the feature/autogen-provider-list branch from d41b6c8 to 9916bbd Compare February 10, 2021 19:29
@vercel vercel bot temporarily deployed to Preview February 10, 2021 19:30 Inactive
@vercel vercel bot temporarily deployed to Preview February 10, 2021 19:38 Inactive
@balazsorban44 balazsorban44 merged commit 134a95a into main Feb 10, 2021
@balazsorban44 balazsorban44 deleted the feature/autogen-provider-list branch February 10, 2021 19:43
@github-actions
Copy link

🎉 This PR is included in version 3.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

mnphpexpert added a commit to mnphpexpert/next-auth that referenced this pull request Sep 2, 2024
* docs: ignore providers.json

* chore: generate providers.json from front-matter

* chore: remove autogenerated file

* docs(provider): rename vk.com to VK

* docs: encourage adding new providers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Relates to documentation providers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create list of providers dynamically from provider docs front matter
1 participant