Remove content template and migrate blog project to research template
- Delete scripts/templates/content.sh template - Remove content template case from project-launcher.sh - Update blog project configuration to use research template with remote sync 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
558bb529e0
commit
bfea8a3d5f
3 changed files with 4 additions and 50 deletions
|
|
@ -22,11 +22,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
blog = {
|
blog = {
|
||||||
template = "content";
|
template = "research";
|
||||||
name = "blog";
|
name = "blog";
|
||||||
codePath = "/Users/yanlin/Documents/Projects/personal-blog";
|
codePath = "/Users/yanlin/Documents/Projects/personal-blog";
|
||||||
contentPath = "/Users/yanlin/Documents/Projects/personal-blog/content";
|
paperPath = "/Users/yanlin/Documents/Projects/personal-blog/content";
|
||||||
description = "Personal blog project";
|
description = "Personal blog project";
|
||||||
|
server = "personal-vps";
|
||||||
|
remoteDir = "~/blog";
|
||||||
};
|
};
|
||||||
|
|
||||||
homepage = {
|
homepage = {
|
||||||
|
|
|
||||||
|
|
@ -108,13 +108,6 @@ case "$TEMPLATE" in
|
||||||
"basic")
|
"basic")
|
||||||
exec "$TEMPLATES_DIR/basic.sh" "$SESSION_NAME" "$CODE_PATH"
|
exec "$TEMPLATES_DIR/basic.sh" "$SESSION_NAME" "$CODE_PATH"
|
||||||
;;
|
;;
|
||||||
"content")
|
|
||||||
if [ -z "$CONTENT_PATH" ]; then
|
|
||||||
echo "Error: Content template requires contentPath"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
exec "$TEMPLATES_DIR/content.sh" "$SESSION_NAME" "$CODE_PATH" "$CONTENT_PATH"
|
|
||||||
;;
|
|
||||||
"research")
|
"research")
|
||||||
if [ -z "$PAPER_PATH" ]; then
|
if [ -z "$PAPER_PATH" ]; then
|
||||||
echo "Error: Research template requires paperPath"
|
echo "Error: Research template requires paperPath"
|
||||||
|
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Content workflow template - code + separate content directory
|
|
||||||
# Usage: content.sh SESSION_NAME CODE_PATH CONTENT_PATH
|
|
||||||
|
|
||||||
SESSION_NAME="$1"
|
|
||||||
CODE_PATH="$2"
|
|
||||||
CONTENT_PATH="$3"
|
|
||||||
|
|
||||||
if [ -z "$SESSION_NAME" ] || [ -z "$CODE_PATH" ] || [ -z "$CONTENT_PATH" ]; then
|
|
||||||
echo "Usage: $0 SESSION_NAME CODE_PATH CONTENT_PATH"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if tmux has-session -t $SESSION_NAME 2>/dev/null; then
|
|
||||||
tmux attach-session -t $SESSION_NAME
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create windows for code
|
|
||||||
tmux new-session -d -s $SESSION_NAME -c "$CODE_PATH"
|
|
||||||
tmux rename-window -t $SESSION_NAME:1 "code"
|
|
||||||
tmux send-keys -t $SESSION_NAME:1 "nvim" C-m
|
|
||||||
tmux new-window -t $SESSION_NAME:2 -n "code-ai" -c "$CODE_PATH"
|
|
||||||
tmux send-keys -t $SESSION_NAME:2 "claude -c" C-m
|
|
||||||
tmux split-window -t $SESSION_NAME:2 -h -c "$CODE_PATH"
|
|
||||||
tmux split-window -t $SESSION_NAME:2.2 -v -c "$CODE_PATH"
|
|
||||||
tmux select-pane -t $SESSION_NAME:2.1
|
|
||||||
tmux new-window -t $SESSION_NAME:3 -n "git" -c "$CODE_PATH"
|
|
||||||
tmux send-keys -t $SESSION_NAME:3 "lazygit" C-m
|
|
||||||
|
|
||||||
# Create windows for content
|
|
||||||
tmux new-window -t $SESSION_NAME:4 -n "content-ai" -c "$CONTENT_PATH"
|
|
||||||
tmux send-keys -t $SESSION_NAME:4 "claude -c" C-m
|
|
||||||
tmux split-window -t $SESSION_NAME:4 -h -c "$CONTENT_PATH"
|
|
||||||
tmux split-window -t $SESSION_NAME:4.2 -v -c "$CONTENT_PATH"
|
|
||||||
tmux select-pane -t $SESSION_NAME:4.1
|
|
||||||
|
|
||||||
tmux select-window -t $SESSION_NAME:1
|
|
||||||
|
|
||||||
tmux attach-session -t $SESSION_NAME
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue