Docusaurus customizations
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- react
- Ambito
- documentation, frontend
Direzione di ricerca
Esamina i componenti del tema personalizzati in src/theme/ e confrontali con la struttura più recente dei componenti del tema Docusaurus. Usa come punti di discussione gli esempi di DocPage, DocItem, navbar, doc metadata e custom CSS menzionati nell’issue. Il lavoro è concluso quando vengono identificate esigenze concrete e riutilizzabili di personalizzazione e viene documentato quali refactoring o nomi di classe stabili le soddisferebbero.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi there, I'm the Docusaurus maintainer.
Your site has interesting customizations, and I'd like to discuss those.
In particular, noticed the custom theme components implemented by @jaredcbaum here: https://github.com/ionic-team/ionic-docs/blob/main/src/theme/
Unfortunately, this requires the ejection of a bit too much internal code.
We are trying to make such customizations simpler over time, with less code to manage on your side, and would like to discuss such opportunities with you.
Note that for the next version, we refactored a few theme components. Many large components have been split into smaller ones, so that you can more easily intersperse your own components before/after the default ones.
Please take a look and let us know if any of your use-cases now become simpler to implement, and if some further refactors could help you.
Some random bits:
-
We really want to provide a system for custom navbar item types, but your workaround seem to work fine until then (https://github.com/facebook/docusaurus/issues/7227)
-
We could refactor
DocPageto allow you to more easily add your custom doc navbar -
We could refactor
DocItemmore to allow you to more easily change the layout and plug your demo sandbox -
We could add the doc meta to a React context and provide the hook so that things like
editUrlin TOC do not require an extra prop
Those are just examples, open to anything as long as it's not too specific to your site and reusable by others.
Also open to knowing better which custom CSS rules are fragile and for which we could provide more stable class names
Note that we have a dedicated issue to report customization use-cases: https://github.com/facebook/docusaurus/discussions/5468
- Lingua principale
- MDX
- Stelle
- 621
- Fork
- 3.2k
- Merge medio
- 1g 2h
- PR unite (30g)
- 86
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ionic-team/ionic-docs
-
content
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
ionic-team/ionic-docs#4705 ·
-
content package: angular
Difficoltà 2/5 Mezza giornata Idoneità per principianti 78/100
ionic-team/ionic-docs#4702 ·
-
triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
ionic-team/ionic-docs#4546 ·
-
content: broken link Apertacontent
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ionic-team/ionic-docs#4381 · 2 commenti ·
-
triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
ionic-team/ionic-docs#3639 ·
Tutte le issue di ionic-team/ionic-docs
Issue simili
-
Area: Excel support
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
orbeon/orbeon-forms#7893 ·
-
Theme loads third-party resources on every page (jsdelivr web font, cdnjs Font Awesome) – GDPR Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
docToolchain/docToolchain#1705 ·
-
kb-infra-drift
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
OCHA-DAP/ds-knowledge-base#653 · 1 commento ·
-
area/dev-productivity area/disaster-recovery area/ipcei kind/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Claiming namespace: rasy007 Apertanamespace operations
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
EclipseFdn/open-vsx.org#13419 ·