Skip to content

Commit 3086785

Browse files
committed
add tdd chapter
1 parent 0df3bd9 commit 3086785

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

docs/tdd/_index.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
+++
2+
title = "测试驱动开发"
3+
date = 2022-04-30T16:47:11+08:00
4+
weight = 5
5+
chapter = true
6+
pre = "<b>4. </b>"
7+
+++
8+
9+
### Chapter X
10+
11+
# Some Chapter title
12+
13+
Lorem Ipsum.

new_chapter

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
#-*- coding: utf-8 -*-
3+
4+
hugo new $1 --kind chapter \
5+
--contentDir="docs" \

new_page

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
#-*- coding: utf-8 -*-
3+
4+
hugo new $1 \
5+
--contentDir="docs" \

preview

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ hugo \
88
--layoutDir="layouts" \
99
--config="config.toml" \
1010
--ignoreCache=true \
11-
server -D --bind "0.0.0.0" &
11+
server -D --bind "0.0.0.0" -p 1313 &
1212
sleep 2s
1313
open http://localhost:1313
1414

0 commit comments

Comments
 (0)