Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

feat: data files (site.Data)

Abierto
#31 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp, json, yaml

Línea de trabajo

Start with the existing YAML parser at Fanstatic/Parsers/YAMLParser.cs, then inspect site data loading, serve reload handling, and tests in Fanstatic.Test/ with fixture sites in .TestSites/. Run ./build.sh test and add coverage for site-over-theme precedence, nested YAML/JSON/CSV data, invalid-file errors, and reloads; done means the acceptance template renders the expected score and the documentation is updated.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

c:content p:high size:S t:feature

Part of the Phase 2 epic (#23).

Current State

There is no data/ directory support; custom data must go into Params. Data files are required for render hooks
and content adapters (Phase 3), e.g. a data/ratings.yaml for [Pentiment](_rating) links.

Tasks:
  • Load data/**/*.{yaml,yml,json} from the site and the theme (site wins) into site.Data, nested by folder and
    file name (data/games/ratings.yaml → site.Data.games.ratings)
  • CSV support (first row = headers → list of dictionaries)
  • JSON via System.Text.Json; YAML via the existing parser (Fanstatic/Parsers/YAMLParser.cs)
  • Clear error with file name on invalid data
  • serve: reload on data change
  • Document on the docs site

Tests live in Fanstatic.Test/ (xUnit + NSubstitute); fixture sites in .TestSites/. Run ./build.sh test; new/changed methods need CRAP ≤ 15 and ≥ 75 % line coverage.

Acceptance Criteria:
  • {{ site.Data.games.ratings["Pentiment"].score }} renders on a fixture site.
Related:
  • #23 (Phase 2 epic, parent)
Lenguaje dominante
C#
Estrellas
1
Forks
0
Merge medio
13 h 50 min
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de MASS4ORG/Fanstatic

Todos los issues de MASS4ORG/Fanstatic

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.