Skip to content

dannysmith/dannyis-astro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

587 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

danny.is

Built with Astro

Danny Smith's personal website – http://danny.is

🗂️ Project Structure

src/
├── components/       # Organized component library
│   ├── layout/       # Page structure components
│   ├── mdx/          # Components for MDX content
│   ├── navigation/   # Navigation components
│   └── ui/           # Reusable UI utilities
├── content/          # Content collections
│   ├── articles/     # Long-form articles
│   └── notes/        # Short-form notes
├── icons/            # Custom SVG icons
├── config/           # Centralized configuration
├── styles/           # CSS architecture (layered partials)
└── utils/            # Utility functions

Commands

All commands are run from the root of the project, from a terminal:

Command Action
bun install Installs dependencies
bun run dev Starts local dev server at localhost:4321
bun run build Build your production site to ./dist/
bun run preview Preview your build locally, before deploying
bun run check Run Astro type checking
bun run check:lint Run ESLint to check for issues
bun run check:knip Check for unused dependencies, exports, and files
bun run check:dupes Check for duplicate code blocks
bun run lint:fix Run ESLint and automatically fix issues
bun run format Format code with Prettier
bun run check:format Check if code is properly formatted
bun run scrape-toolbox Scrape toolbox data from betterat.work
bun run astro ... Run CLI commands like astro add, astro check
bun run newnote Create a new note

Creating a New Note

You can run bun newnote to create a new note in src/content/notes with the correct frontmatter and filename. Examples:

bun run newnote                          # Asks the user for a title
bun run newnote "Some Title Here"        # Uses the supplied title
bun run newnote "https://some-url.com"   # Fetches the og:title or <title> and sets sourceUR to the URL.

New draft notes can also be created using this Chrome extension or Astro Editor.

About

Danny Smith's Personal Website

Resources

License

Stars

Watchers

Forks

Contributors 5