Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a static personal website for Coffee Byte Dev (coffeebyte.dev), hosted on GitHub Pages. The site is a portfolio and content hub featuring educational tools, creative writing, project showcases, and mini-games.
css/styles.css: Main stylesheet with coffee-themed CSS variablesjs/sidebar.js: Dynamic sidebar generation with navigation linksjs/scripts.js: General utilities and clutter toggle functionalityjs/md2html.js: Markdown-to-HTML converter for inline markdown contentjs/mobile.js: Mobile-specific responsive handling (768px breakpoint)clutter-main/clutter.js: Visual clutter effectschool/: Educational worksheet generators (see Worksheet Architecture below)
fishing_mini_game/: Browser-based fishing game
config.js -> state.js -> pathfinding.js -> terrain.js -> player.js -> fishing.js -> input.js -> render.js -> customize.js -> main.jsosyras_tale/: Markdown story content organized by Parts and Characters
revision_00/: Original 2024 version with Parts 0-3resision_01/: 2025 revision (in progress)All main site pages follow this structure:
<head> <link rel="stylesheet" href="assets/css/styles.css" /> <!-- IMPORTANT: Define image/title BEFORE sidebar.js loads --> <script> image = "page-image.jpg"; // Profile image filename (in assets/images/profiles/) title = "Page Title"; // Sidebar heading </script> <script src="assets/js/sidebar.js" defer></script> <script src="assets/js/scripts.js" defer></script> <script src="assets/clutter-main/clutter.js" defer></script> <script src="assets/js/mobile.js" defer></script> </head> <body> <sidebar></sidebar> <!-- Dynamically populated --> <main><article>...</article></main> </body>
The sidebar is dynamically generated by
sidebar.js using a data-driven approach:
linksData array with: section, href, text, icon, updateDateDAYS_TO_KEEP_NEW)assets/images/icons/To add a navigation link, add an entry to
linksData in sidebar.js:
{ section: 'Projects', href: 'page.html', text: 'Link Text', icon: 'icon.png', alt: 'Alt Text', title: 'Tooltip', updateDate: 20251127 }
Each worksheet is a self-contained HTML file with inline CSS and embedded JavaScript.
.app-container .app-header (title bar with LOGOUT link back to school/index.html) .controls-panel (user options, hidden on print) .worksheet (main content area) .worksheet-header (title, Name/Date/Score fields) .canvas-container (for canvas-based worksheets) #printContainer (dynamically generated print pages)
Canvas-based worksheets use two overlaid canvases:
#questionsCanvas: Questions/problems layer (always visible)#answersCanvas: Answers overlay (toggled via .show class)This separation allows showing/hiding answers without regenerating the worksheet.
// Global state let currentProblems = []; let showingAnswers = false; let questionsCanvas, answersCanvas, questionsCtx, answersCtx; // Required functions initCanvases() // Get canvas contexts generateWorksheet() // Create problems, call drawWorksheet() drawWorksheet() // Render to both canvases createPrintPages() // Generate #printContainer for multi-page printing toggleAnswers() // Toggle showingAnswers, update UI
@media print to hide controls and show #printContainercreatePrintPages() generates separate canvas elements per page with headersSome worksheets (writing-definitions) use DOM elements instead of canvas:
renderWorksheet() instead of drawWorksheet()--espresso: #1e1610; --dark-mocha: #2a1e14; --coffee-bean: #453024; --steamed-milk: #f5f5dc; --light-cream: #f8e5c8; --half-and-half: #d2b48c; --caramel: #d2691e; --pumpkin-spice: #b68d40; --mocha: #8b4513; --dark-caramel: #38271e; --toasted-almond: #5c4937; --dark-chocolate: #120d08;
.primary: Main action (Generate) - pumpkin-spice background.secondary: Other actions (Show Answers, Print) - mocha backgroundCSS variables defined in
:root follow a coffee theme:
--espresso, --dark-mocha, --dark-chocolate--steamed-milk, --light-cream, --half-and-half--caramel, --pumpkin-spice, --mochaCustom font "Peppermint Pen" used for headings and navigation.
Layout uses CSS Grid:
grid-template-columns: 300px 1fr (sidebar + content).
This is a GitHub Pages site:
assets/jail/assets/images/profiles/assets/images/icons/assets/legal/