Skip to content

TheOtterlord/manual

Folders and files

NameName
Last commit message
Last commit date

Latest commit

88dc27c Β· Oct 2, 2023

History

2 Commits
Feb 25, 2023
Feb 25, 2023
Feb 25, 2023
Oct 2, 2023
Feb 25, 2023
Feb 25, 2023
Oct 2, 2023
Feb 25, 2023
Feb 25, 2023
Feb 25, 2023
Oct 2, 2023
Feb 25, 2023
Feb 25, 2023

Repository files navigation

npx degit TheOtterlord/manual

This repo is no longer actively maintained



Manual

πŸš€ Getting Started

Once you've downloaded the template with npx degit TheOtterlord/manual, install dependencies and start the dev server:

npm install
npm run dev

πŸ“š Features

  • Astro - Blazingly fast static site generation & type-safe frontmatter
  • Tailwind CSS - Quick & efficient styling
  • Pagefind - Powering static search
  • RSS - Syndication feed
  • OpenGraph - Social media previews (including procedurally generated images)

πŸ“ Project Structure

Inside your project, you'll see the following useful folders and files:

/
β”œβ”€β”€ public/
β”‚   └── favicon.svg
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   └── Navigation.astro
β”‚   β”œβ”€β”€ content/
β”‚   β”‚   β”œβ”€β”€ blog/
β”‚   β”‚   β”œβ”€β”€ docs/
β”‚   |   └── config.ts
β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   β”œβ”€β”€ Base.astro
β”‚   β”‚   β”œβ”€β”€ Blog.astro
β”‚   β”‚   └── Docs.astro
β”‚   β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ blog/
β”‚   β”‚   |   β”œβ”€β”€ [id].astro
β”‚   β”‚   |   └── index.astro
β”‚   β”‚   β”œβ”€β”€ docs/
β”‚   β”‚   |   └── [...id].astro
β”‚   β”‚   β”œβ”€β”€ images/
β”‚   β”‚   |   └── [...id].png.ts
β”‚   β”‚   β”œβ”€β”€ 404.astro
β”‚   β”‚   β”œβ”€β”€ index.astro
β”‚   β”‚   └── rss.xml.ts
β”‚   └── site_config.ts
β”œβ”€β”€ astro.config.mjs
β”œβ”€β”€ package.json
└── tailwind.config.js

Content is stored in the src/content folder. This is where you'll find your blog posts (blogs/), documentation (docs/), and configuration (config.ts). The config.ts file is where the frontmatter type definitions are made.

OpenGraph images are procedurally generated from the src/pages/images folder. You can change the default image by editing the HTML defined in src/pages/images/[...id].png.ts.

πŸ“ License

Manual is licensed under the MIT License.