Skip to content

1-hour/site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1hour.guide

Deployment site for 1hour.guide — Learn anything in 1 hour.

This repository is a thin deployment layer that combines:

Structure

1hour-guide/
├─ framework/          # tutorial-kit submodule (Next.js app)
├─ content/            # 1hour-guide-content submodule (MDX tutorials)
├─ build.sh            # Cloudflare Pages build script
├─ package.json        # Convenience scripts
└─ README.md

Local Development

First time setup

git clone --recurse-submodules https://github.com/jiusanzhou/1hour-guide.git
cd 1hour-guide
cd framework && pnpm install

If you forgot --recurse-submodules:

git submodule update --init --recursive

Build

./build.sh

Or step by step:

cd framework
CONTENT_DIR=../../content pnpm build

Preview

pnpm preview
# Open http://localhost:8000

Dev server

cd framework
CONTENT_DIR=../../content pnpm dev

Updating

Pull latest content

pnpm update:content
git push

Pull latest framework

pnpm update:framework
git push

Deployment (Cloudflare Pages)

Setup

  1. Go to Cloudflare Dashboard → Pages
  2. Create a new project → Connect to Git
  3. Select this repository
  4. Build settings:
Field Value
Production branch main
Framework preset None
Build command ./build.sh
Build output directory out
Root directory /
  1. Environment variables (optional):

    • NODE_VERSION: 22
  2. Important: Enable Include submodules in the Git settings.

Auto-deploy on content update

When content is updated in 1hour-guide-content:

  1. Update this repo's submodule: pnpm update:content
  2. Push to main
  3. Cloudflare rebuilds automatically

Or set up a GitHub Action to auto-bump submodules on content pushes (see .github/workflows/bump-content.yml — TODO).

Custom Domain

  1. Cloudflare Pages → Your project → Custom domainsSet up a custom domain
  2. Add 1hour.guide (and www.1hour.guide if desired)
  3. If your domain uses Cloudflare DNS: auto-configured
  4. Otherwise: add CNAME 1hour-guide.pages.dev

License

Content: CC BY-SA 4.0 Framework: MIT

About

1hour.guide — Learn anything in 1 hour. Site deployment repo with tutorial-kit + content submodules.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages