@@ -5,17 +5,15 @@ default:
55 @ echo " 🚀 Typstify SSG Commands"
66 @ echo " "
77 @ echo " 📖 Documentation Generation:"
8- @ echo " just dev - Generate documentation site with styles "
8+ @ echo " just dev - Generate documentation site"
99 @ echo " just docs - Generate and serve documentation"
1010 @ echo " just serve - Serve generated documentation"
1111 @ echo " "
1212 @ echo " ⚙️ Build & Manage:"
1313 @ echo " just build - Build static site"
1414 @ echo " just build-release - Build static site (release mode)"
1515 @ echo " just build-standalone - Build standalone binary for distribution"
16- @ echo " just build-styles - Build Tailwind CSS styles"
17- @ echo " just watch-styles - Watch and rebuild styles"
18- @ echo " just clean - Clean generated site and styles"
16+ @ echo " just clean - Clean generated site"
1917 @ echo " just new-content - Create new content file"
2018 @ echo " "
2119 @ echo " 🛠️ Setup:"
@@ -26,48 +24,34 @@ default:
2624# Install dependencies
2725install :
2826 cargo build
29- bun install
3027
3128# Generate documentation site (default workflow)
32- dev : build-styles build
33- @ echo " 📖 Generated documentation site with styles . Use 'just serve' to serve it."
29+ dev : build
30+ @ echo " 📖 Generated documentation site. Use 'just serve' to serve it."
3431
3532# Generate and serve documentation
36- docs : build-styles build serve
37-
38- # Build Tailwind CSS styles
39- build-styles :
40- @ echo " 🎨 Building Tailwind CSS styles..."
41- bunx tailwindcss --input ./ style / input.css --output ./ style / output.css --minify
42- @ echo " ✅ Styles built successfully"
43-
44- # Watch and rebuild styles on changes
45- watch-styles :
46- @ echo " 👀 Watching for style changes..."
47- bunx tailwindcss --input ./ style / input.css --output ./ style / output.css --watch
33+ docs : build serve
4834
4935# Build static site using typstify-ssg
50- build : build-styles
36+ build :
5137 @ echo " 🚀 Building static site with typstify-ssg..."
5238 cargo run --bin typstify-ssg
53- @ echo " ✅ Static site generated in site/ directory (CSS embedded in binary) "
39+ @ echo " ✅ Static site generated in site/ directory"
5440
5541# Build static site in release mode (optimized, with embedded CSS)
56- build-release : build-styles
42+ build-release :
5743 @ echo " 🚀 Building static site with typstify-ssg (release mode)..."
5844 cargo build --release --bin typstify-ssg
59- @ echo " ✅ Release binary built in target/release/typstify-ssg with embedded CSS "
45+ @ echo " ✅ Release binary built in target/release/typstify-ssg"
6046
6147# Build standalone binary for distribution (includes embedded CSS)
62- build-standalone : build-styles
48+ build-standalone :
6349 @ echo " 🚀 Building standalone typstify-ssg binary..."
6450 cargo build --release --bin typstify-ssg
6551 @ echo " 📦 Creating standalone binary package..."
6652 mkdir -p dist
6753 cp target/ release/ typstify-ssg dist/
6854 @ echo " ✅ Standalone binary ready in dist/typstify-ssg"
69- @ echo " This binary includes all required CSS files embedded"
70- @ echo " Users can run it without external dependencies"
7155
7256# Serve the generated static site
7357serve :
@@ -83,8 +67,7 @@ serve-release:
8367clean :
8468 rm -rf site/
8569 rm -rf dist/
86- rm -f style / output.css
87- @ echo " 🧹 Cleaned site directory, dist directory, and generated styles"
70+ @ echo " 🧹 Cleaned site directory and dist directory"
8871
8972# Create a new content file
9073new-content name :
0 commit comments