Coder Social home page Coder Social logo

healeycodes / healeycodes.com Goto Github PK

View Code? Open in Web Editor NEW
64.0 2.0 12.0 62.89 MB

๐Ÿก Personal blog/website running Next.js.

Home Page: https://healeycodes.com

TypeScript 99.30% JavaScript 0.70%
nextjs personal-website vercel blog markdown

healeycodes.com's Introduction

e2e

healeycodes.com

My home on the web! A collection of thoughts and software experiments.

Issues/bug reports are very welcome.

Features

  • Next.js hosted on Vercel
  • Markdown + images
  • RSS feed (links, not full content)
  • Simple design focused on content (responsive for desktop/mobile)
  • Code highlighting via prism-react-renderer
  • Newsletter CTA (powered by Buttondown)
  • All core features work without JavaScript enabled
  • End-to-end tests with playwright

Most configuration is handled via siteConfig.json

Tests

See .github\workflows\e2e.yml for more.

npm i
npx playwright install
npm run test:e2e

Dev

npm i
npm run dev

Copying

Feel free to use any of my writing or code for educational reasons (e.g. you're teaching a class).

Otherwise, check with me before republishing my writing or code (I'll give permission 99% of the time).

healeycodes.com's People

Contributors

healeycodes avatar jameslittle230 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

healeycodes.com's Issues

JSX.IntrinsicElements error in notes.tsx

I have forked your repo with your permission. I've modified a lot of it, deleting your posts, adding some of my own styles, etc.

I am having an issue with the notes.tsx file when running npx next build:

Type error: Property 'className' does not exist on type 'IntrinsicAttributes'.

The issue comes from these lines here:

if (type === "code" && props.className) {
const language = props.className.replace("lang-", "");
return <Code children={children} language={language} />;
}
return React.createElement(type, props, children);

I've tried to add a type in the notes.ts file like so:

const NOTES_DIRECTORY = path.join(process.cwd(), "notes")

export type Note = {
    id: number,
    content: string,
    className?: string
}

however I am still running into the error.

I've checked the React docs for React.createElement and the values you need to pass to it. I've scoured StackOverflow. And I've even tried to look through the markdown-to-jsx repo to see what I am missing.

Can you help out?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.