feat: Markdown to HTML rendering#36
feat: Markdown to HTML rendering#36validcube wants to merge 60 commits intoLawnchairLauncher:masterfrom
Conversation
|
@validcube is attempting to deploy a commit to the Lawnchair Team Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Pull request overview
This pull request introduces a markdown-to-HTML rendering system for the Lawnchair website, replacing manual HTML editing with markdown files that can be rendered either client-side or pre-rendered during build time for better performance.
Changes:
- Added build script (
scripts/build.js) to pre-render markdown to HTML - Added client-side markdown renderer (
assets/markdown.js) for dynamic rendering - Introduced custom markdown features: metadata (author info, dates), inline ToC, and GitHub-flavored admonitions
- Converted existing blog posts and FAQ from static HTML to markdown format
- Added author metadata system (
data/authors.json) - Updated deployment workflow to include build step
- Added CSS styling for new markdown components (author cards, admonitions, metadata)
Reviewed changes
Copilot reviewed 18 out of 20 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/build.js | Node.js build script that pre-renders markdown to static HTML, processes metadata, and handles admonitions/ToC |
| assets/markdown.js | Client-side JavaScript for dynamic markdown rendering with same features as build script |
| package.json & package-lock.json | Added dependencies for jsdom (27.0.0) and marked (17.0.1) markdown parser |
| faq/index.html | Converted to use markdown rendering with data-md attribute pointing to faq.md |
| faq/faq.md | New markdown version of FAQ content with metadata support |
| faq/script.js | Updated ToC script to work with both static and dynamically rendered content |
| blog/*/index.html | Updated blog post HTML files to use markdown rendering |
| blog/*/index.md | New markdown source files for blog posts with author metadata |
| data/authors.json | Author information database for rendering author cards |
| assets/document.css | Added CSS for metadata display, author cards, and markdown alerts |
| .github/workflows/deploy_website.yml | Updated to run build script before deployment |
| .github/README.md | Documentation for static site generation and custom markdown components |
| .gitignore | Added node_modules and dist directories |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 35 out of 38 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
# Conflicts: # .gitignore # blog/index.html # blog/lawnchair-14/index.html # blog/lawnchair-15-beta-1/index.html # blog/lawnstate-2025-reflection/index.html # blog/lawnstate-building-momentum/index.html # downloads/index.html # faq/index.html # index.html # privacy-policy/index.html # support/index.html
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 36 out of 39 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 37 out of 40 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Instead of editing HTML manually, we can write markdown file instead!
fix #35
Support for extended components like:
Important
Admonition like this! Hi!
The script is partly AI for trivial parts or for cleaning up incomprehensible code I made during 2 AM (as of writing).