diff --git a/docs/.vuepress/components/Sponsors.vue b/docs/.vuepress/components/Sponsors.vue index 310eb6c..08a3876 100644 --- a/docs/.vuepress/components/Sponsors.vue +++ b/docs/.vuepress/components/Sponsors.vue @@ -16,11 +16,11 @@ import { format } from "date-fns"; export default { data: () => ({ - sponsors: SPONSORS.map(({ createdAt, sponsor }) => ({ + sponsors: SPONSORS.map(({ createdAt, sponsorEntity }) => ({ createdAt: format(new Date(createdAt), "LLL yyyy"), - ...sponsor + ...sponsorEntity })) - }) + }), }; diff --git a/docs/.vuepress/github/clientDynamicModules.js b/docs/.vuepress/github/clientDynamicModules.js index 0335d3e..e4a76f5 100644 --- a/docs/.vuepress/github/clientDynamicModules.js +++ b/docs/.vuepress/github/clientDynamicModules.js @@ -28,20 +28,28 @@ async function getContributors() { */ async function getSponsors() { const query = ` - { - user(login: "sagalbot") { - sponsorshipsAsMaintainer(first: 100) { - nodes { - createdAt - sponsor { - login - avatarUrl - } + { + user(login: "sagalbot") { + sponsorshipsAsMaintainer(first: 100) { + nodes { + sponsorEntity { + ... on User { + id + avatarUrl + login + } + ... on Organization { + id + avatarUrl + login } } + createdAt } } - `; + } + } + `; try { const { user } = await graphql(query, { diff --git a/docs/.vuepress/theme/layouts/Layout.vue b/docs/.vuepress/theme/layouts/Layout.vue index 7b22cee..c60a619 100644 --- a/docs/.vuepress/theme/layouts/Layout.vue +++ b/docs/.vuepress/theme/layouts/Layout.vue @@ -1,17 +1,13 @@