feat(callouts): callout Notion-style come admonition Docusaurus#2
Merged
Conversation
Aggiunge 9 keyword custom (prereq, learn, exercise, definition, history, code, cleancode, nutshell, mindmap) e ristila i 4 default in uso (info -> "Informazioni utili", tip, warning -> "Attenzione" con fiamma, danger) nel registry. Swizzle eject di theme/Admonition con tabella interna titolo IT + filename PNG, palette OKLCH light/dark per ciascun tipo in src/css/custom.css. Icone PNG da mettere in static/img/callouts/ (13 file, vedi registry per i nomi). Pagina demo a /docs/_callouts-demo per QA visivo, non in sidebar. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- aggiunge le 13 PNG in static/img/callouts/ - rinomina docs/_callouts-demo.mdx -> callouts-demo.mdx (Docusaurus esclude i file con prefisso _ dalle route), frontmatter `unlisted: true` invece di `sidebar_class_name: hidden` - titolo callout: ora <h4>, font-size 1.5rem, line-height 1, margin 0; specificity boost via `.callout .callout__title` per battere `.markdown h4` di Infima (era la causa dei titoli "piccoli") - body callout: line-height 1.4 (più compatto del default 1.65) - icone: max 30x30 (era 22), gap header 12px - palette: swap code<->cleancode, swap info<->tip, warning spostato verso arancione (hue 55), code grigio neutro - demo: blocco codice statico + fence PyRunner live in :::code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
prereq,learn,exercise,definition,history,code,cleancode,nutshell,mindmap) e ristila i 4 default in uso (info→ "Informazioni utili",tip,warning→ "Attenzione",danger) come callout Notion-style, applicati al presetdocse ai 4 plugin-content-docs (programmatore/artefice/archivista/apprendista).theme/AdmonitionconCALLOUT_REGISTRY(titolo IT + filename PNG per tipo) e 13 icone instatic/img/callouts/. Palette OKLCH light/dark insrc/css/custom.csscon un hue distinto per ciascun callout./docs/callouts-demo(frontmatterunlisted: true, non in sidebar) per QA visivo.Nessun duplicato semantico:
:::noteresta come fallback minimale (rimosso dal registry, 0 usi nei.mdxesistenti);:::infoe:::warningassorbono i corrispettivi callout Notion. Retro-compatibilità completa con tutti i.mdxgià scritti.Test plan
npm run starte aprire/docs/callouts-demoper QA visivo dei 13 callout in light e dark modedocs/basi-del-linguaggio/le-variabili.mdx,output.mdx,le-stringhe.mdx,moduli.mdx,input.mdxnpm run buildper verificare assenza di errori (onBrokenLinks: 'throw') — già verificato localmentedocs/callouts-demo.mdxpost-merge o spostarla indocs/reference/Follow-up (fuori scope)
@docusaurus/theme-mermaidper il rendering del grafo Mermaid dentro:::mindmap(oggi è solo il contenitore)🤖 Generated with Claude Code