contentlayerdev / contentlayerdev/contentlayer
Preprocessing and Postprocessing Hooks?
- Lingua principale
- TypeScript
- Stelle
- 3.5k
- Fork
- 192
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I have a metalsmith site I'd like to move over or integrate with contentlayer.
Unlike CL, Metalsmith has straightforward ways of looking at the whole collection while processing individual documents. This allows, for example, ensuring that all internal website links are to documents that already exist. MS also has a large library of useful plugins.
Is there a way to hook metalsmith into content layer reloading, so it is run first before content layer? Or more directly use metalsmith to process files within content layer itself. As a work around, I suppose, I could use metalsmith to generate a directory of json files that is then used as input to content layer. But this requires basically managing two content systems.
Alternatively, is there a way to hook into the contentlayer process with content processors that can transform individual documents while having access to all collections?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
La issue non indica file, test o punti di ingresso. Chiarisci innanzitutto se l’obiettivo è un’integrazione con Metalsmith, un hook di reload o processori con accesso a tutte le collections; quindi esamina i corrispondenti extension point di Contentlayer. Done dovrebbe essere definito come un’integrazione supportata o un comportamento dell’hook, con test e indicazioni sull’utilizzo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100