This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
TinkerHub Learning Paths is a Hugo-based static site that hosts curated learning paths for various technologies. It uses Decap CMS (formerly Netlify CMS) with GitHub backend for content management and is deployed on Netlify.
# Run development server
hugo server
# Build for production
hugo --gc --minify
# Create a new learning path
hugo new path-name.md
# Compile theme SCSS (from themes/tinkerhub/)
cd themes/tinkerhub && yarn && yarn buildcontent/*.md- Learning path markdown files with YAML front mattercontent/_index.md- Home page content (hasmainpage: true)content/category/- Category taxonomy pages
Learning paths require these fields:
title,date,category(language/framework/devops/ai-ml/other)image(path relative to static/, e.g.,images/python.png)tags,authors(GitHub usernames)mainpage: false,draft: false- Optional:
shortDescription,pathType(for filtering)
- Located in
themes/tinkerhub/ - Layouts:
layouts/_default/single.html(learning paths),layouts/index.html(home) - Partials:
layouts/partials/(head, header, footer, intro) - Styles:
less/directory, compiled withyarn build
static/admin/index.html- Decap CMS entry pointstatic/admin/config.yml- CMS collections and field definitions- Uses GitHub backend with open authoring (contributors fork and submit PRs)
Defined in config.toml:
category- language, framework, devops, ai-ml, othertags- searchable keywordspathType- frontend, backend, fullstack, etc. (seetypes.md)
Configured in netlify.toml. Builds trigger on push to main branch.