Markdown Blog Post Import / Sync - Serve the blog post content from a markdown directory
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- csharp, markdown
- Área
- backend, database, documentation
Línea de trabajo
Comienza leyendo la entidad BlogPost y el punto de entrada NCronJob.IJob; después, inspecciona appsettings.json y el área de migraciones de UpgradeAssistent. El issue también solicita documentar la interfaz de markdown. Se considera terminado cuando la importación propuesta desde un directorio plano, el manejo de metadatos, el seguimiento de ExternalId, la configuración, la migración y la documentación estén todos definidos e implementados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The current state of the blog is: Users write Markdown inside the blog post and the blog renders this to the enduser to HTML.
An obvious automation for that is that we introduce a background job that monitors (via NCronJob.IJob) a directory/repository/... and automatically imports them into the blog. That allows the blog post as a vehicle, but authoring/versioning happens via GitHub for example.
The question is, how should we get certain metadata:
- Via folder structure
- One markdown with a header section
- A Mix of both?
My current way of thinking is the second option, as we also need some way of having a unique ID in the markdown file in case users change the title and we can't associated markdown file to the blog post in the blog itself. It might look something like:
----------
id: some-string-that-has-to-be-unique
title: Here comes the title
tags: tag 1, tag 2
image: https://some-image.url/image.webp
fallbackimage: https://some-image.url/fallback-image.jpg
published: true
----------
The first block is the Short Description that allows arbitrary Markdown
----------
The second block is the Content that allows arbitrary Markdown
The "interface" has to be well documented in our docs. Our BlogPost entity needs the new ExternalId as property to keep track of the source.
The configuration of the target will happen in the appsettings.json file and we need a new migration for the UpgradeAssistent. We may want a new section like:
{
"markdownImport": {
"sourceType": "GitHub",
"url": "https://github.com/...."
}
}
For starters we can begin with a flat directory as this doesn't need any additional packages and knowledge about the source. So for example url would be https://github.com/linkdotnet/blog-source/main/md/ and in there would be all files, which we would parse from top to bottom in alphatical order.
- Lenguaje dominante
- C#
- Estrellas
- 428
- Forks
- 95
- Merge medio
- 3 min
- PR fusionados (30 d)
- 7
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de linkdotnet/Blog
-
Blog series feature Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
linkdotnet/Blog#523 · 4 comentarios · 1 reacción ·
-
Navbar rework/improvements Abiertogood first issue
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
linkdotnet/Blog#501 · 6 comentarios · 1 reacción ·
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
linkdotnet/Blog#150 · 8 comentarios ·
Todos los issues de linkdotnet/Blog
Issues similares
-
core dependencies
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
-
bug frontend good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Down / Waiting for removal
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100