- SCSS 53.2%
- JavaScript 35.1%
- Nunjucks 9%
- TypeScript 2.7%
|
|
||
|---|---|---|
| .app | ||
| .obsidian | ||
| .plans | ||
| guides | ||
| public | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .node-version | ||
| app.mjs | ||
| app.styles.scss | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| index.md | ||
| LICENSE | ||
| n.njk | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| renovate.json | ||
| TODO.md | ||
| wrangler.toml | ||
AI Prompts
This repository contains an Obsidian notes vault with AI prompts and documentation, configured to generate a static website using Eleventy and the eleventy-notes starter template.
Overview
This project combines the power of Obsidian for note-taking with Eleventy's static site generation capabilities, providing:
- Local Editing: Use Obsidian to edit and manage your notes locally
- Static Site Output: Automatically generate a beautiful, searchable website from your notes
- Wikilinks Support: Internal linking using
[[Note Name]]syntax - Organised Content: Separate sections for different types of content (prompts, documentation, etc.)
- Version Control: Full Git integration for tracking changes
Project Structure
/
├── .app/ # Eleventy-notes core application files
├── .plans/ # Planning and setup documentation
├── prompts/ # AI prompt collection
├── public/ # Static assets (images, etc.)
├── _site/ # Generated static site (git-ignored)
├── README.md # This file (also serves as the site landing page)
└── [other notes].md # Additional documentation and notes
Quick Start
Prerequisites
- Node.js 16+ and npm
- Git
- Obsidian (optional, for enhanced editing experience)
Setup
-
Clone the repository
git clone https://github.com/ryanlewis/ai-prompts.git cd ai-prompts -
Install dependencies
cd .app npm install cd .. -
Start the development server
npm start -
View your site Open http://localhost:8080 in your browser
Building for Production
npm run build
The static site will be generated in the _site directory.
Configuration
Site Settings
Edit app.mjs to customize:
- Site title and description
- Theme colors
- Sidebar navigation
- External links
Content Organization
- Main Notes: Place markdown files in the root directory or organize in folders
- Prompts: Add AI prompts to the
prompts/directory - Assets: Store images and other static files in
public/
Features
Wikilinks & Navigation
- Use
[[Note Name]]to link between notes - Automatic backlinks show which notes reference the current page
- Hierarchical sidebar navigation with collapsible sections
Search
- Full-text search across all notes
- Instant results as you type
- Works offline once the site is loaded
Themes
- Multiple color schemes available
- Light/dark mode support
- Responsive design for mobile devices
Writing Notes
Markdown Support
- Standard Markdown syntax
- Code blocks with syntax highlighting
- Tables, lists, and blockquotes
- Task lists with checkboxes
Frontmatter Options
---
title: Custom Page Title
tags: [tag1, tag2]
date: 2024-01-01
---
Special Features
- Callout blocks for important information
- Mermaid diagram support
- Math equations with KaTeX
Deployment
The generated site can be deployed to:
- GitHub Pages
- Netlify
- Vercel
- Cloudflare Pages
- Any static hosting service
See .plans/00-SETUP.md for detailed deployment instructions.
Development
Available Scripts
npm start- Start development server with live reloadnpm run build- Build production sitenpm run clean- Clean build artifacts
Customization
- Styles: Add custom CSS to
public/custom.css - JavaScript: Add functionality in
public/custom.js - Templates: Modify layouts in
.app/_layouts/
Troubleshooting
Common Issues
- Build Errors: Ensure Node.js 16+ is installed
- Missing Notes: Check file paths and wikilink syntax
- Search Not Working: Only available in production build
If you encounter other issues, please create an issue on GitHub.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
License
This project uses the eleventy-notes template by Sandro Roth, which is licensed under the MIT License. Your content remains your own.
Resources
- Claude Code - AI coding assistant by Anthropic
- Eleventy Documentation
- Eleventy Notes Documentation
- Obsidian
- Markdown Guide