Skip to content

Commit 876ee26

Browse files
committed
feat(ssg): remove tailwind, embed CSS, add theme toggle and clean URLs
1 parent 3761067 commit 876ee26

File tree

17 files changed

+1123
-1336
lines changed

17 files changed

+1123
-1336
lines changed

Cargo.lock

Lines changed: 46 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ resolver = "2"
1111

1212
[workspace.dependencies]
1313
# CLI
14-
clap = "4.5"
14+
clap = "4.5.53"
1515
config = "0.15"
1616

1717
# Core
@@ -34,10 +34,10 @@ wasm-bindgen-futures = "0.4"
3434
web-sys = "0.3"
3535

3636
# Leptos (CSR) and UI
37-
leptos = "0.8"
37+
leptos = "0.8.14"
3838
leptos_meta = "0.8"
3939
leptos_router = "0.8"
40-
singlestage = "0.3"
40+
singlestage = "0.3.10"
4141

4242
# Content processing
4343
pulldown-cmark = "0.13"
@@ -76,8 +76,8 @@ panic = "abort"
7676
# Project identifier
7777
name = "typstify"
7878
# Packages/crates
79-
lib-package = "typstify-site"
80-
bin-package = "typstify-site"
79+
lib-package = "typstify-ssg"
80+
bin-package = "typstify-ssg"
8181
# Output naming
8282
output-name = "typstify"
8383
# Serve/build directories

Justfile

Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -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
2725
install:
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
7357
serve:
@@ -83,8 +67,7 @@ serve-release:
8367
clean:
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
9073
new-content name:

0 commit comments

Comments
 (0)