Docs: generate a share image for every docs page
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- nextjs, react, typescript
- Domínio
- documentation, frontend
Direção de pesquisa
Start in app/docs/[...slug]/page.tsx and lib/marketing/metadata.ts, where the per-page title and description are set, then look for an existing opengraph-image route in app/ (the blog may have one) to copy. Add the image URL, width, height and alt text to the Open Graph and Twitter metadata, and add a test for at least one docs page. Done when every /docs page has its own image showing its title and section, long titles wrap without overflowing, and pnpm test and pnpm build pass.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Copied from DeadantCo/answerLoops#108 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/479 — originally opened by
@NathanTarberton 2026-10-26
Problem
When a docs page is shared (Slack, Discord, X, a link preview) it shows the same generic card for every page, so every shared link looks the same. A shared link to the Slack guide should say it is the Slack guide.
Where
app/docs/[...slug]/page.tsxbuilds each docs page's metadata. It already sets the title and description throughpublicPageMetadatainlib/marketing/metadata.ts.- Next.js supports generated Open Graph images through an
opengraph-imageroute file, and the blog may already do something similar; checkapp/for an existing example to reuse.
Suggested approach
Generate a share image per docs page at build time: the page title, its section (for example "Integrations"), and the answerLoops mark, on the docs navy and teal. Keep it deterministic so the same page always produces the same image. Add the image to the page's Open Graph and Twitter card metadata.
Acceptance criteria
- Every page under
/docshas its own share image showing its title and section. - The metadata includes the image URL, width, height and alt text.
- Long titles wrap or shrink without overflowing the card.
- Images are generated at build time (no per-request cost) and the build time stays reasonable.
-
pnpm testandpnpm buildpass, and a test covers the metadata for at least one page.
Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.
- Linguagem predominante
- TypeScript
- Estrelas
- 0
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de DeadantCo/answerLoopsdev
-
Widget: match the chat bubble color to the rest of the widgetTalvez já em andamento @sethr07 assumiu hoje. Abertaenhancement frontend help wanted
Dificuldade 2/5 Meio dia Facilidade para iniciantes 75/100
DeadantCo/answerLoopsdev#68 · 3 comentários ·
-
Widget: make the chat window fit on small phonesTalvez já em andamento @sethr07 assumiu hoje. Abertaenhancement frontend good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
DeadantCo/answerLoopsdev#67 · 9 comentários ·
-
Add 'select all' option to Slack channel picker in SettingsTalvez já em andamento @sethr07 assumiu hoje. Abertafrontend good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
DeadantCo/answerLoopsdev#22 · 5 comentários ·
-
enhancement frontend help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
DeadantCo/answerLoopsdev#140 ·
Todas as issues de DeadantCo/answerLoopsdev
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
External sources always come back in English: `lc` isn't passed to `/api/v3/external_sources`Talvez já em andamento @Anurag1428 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
openfoodfacts/openfoodfacts-explorer#2264 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
cloudflare/workers-sdk#17139 ·
Mantenedores costumam responder em até 1 dia
-
area: editor P3 type: feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
halisonworks/mod-codeling#290 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
colinhacks/zod#6776 ·
Mantenedores costumam responder em até 1 dia