diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2fe2c2b --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ + +default: serve + +# serve document with docsify (or python) +s: serve +d: serve +serve: + bin/serve + +# generate zh-tw version +translate: + bin/zh-tw.py + +.PHONY: s d serve translate diff --git a/README.md b/README.md index 749d10f..f934244 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,11 @@ # 设计数据密集型应用 - 中文翻译 - 作者: [Martin Kleppmann](https://martin.kleppmann.com) -- 原书名称:[《Designing Data-Intensive Applications》](http://shop.oreilly.com/product/0636920032175.do) -- 译者:[冯若航]( http://vonng.com/about) (fengruohang@outlook.com ) -- Gitbook地址:[ddia-cn](https://vonng.gitbooks.io/ddia-cn) -- 使用[Typora](https://www.typora.io)或Gitbook以获取最佳阅读体验。 - -* [繁體中文版本](zh-tw/README.md) - - +- 原名:[《Designing Data-Intensive Applications》](http://shop.oreilly.com/product/0636920032175.do) +- 译者:[冯若航]( https://vonng.com) (rh@vonng.com ) +- 使用 [Typora](https://www.typora.io)、[Gitbook](https://vonng.gitbooks.io/ddia-cn/content/),以及[Docsify](https://docsify.js.org/#/zh-cn/)以获取最佳阅读体验。 +- 繁体:[繁體中文版本](zh-tw/README.md) +- 执行 `make`可以通过浏览器阅读 ## 译序 diff --git a/_coverpage.md b/_coverpage.md new file mode 100644 index 0000000..591fa3b --- /dev/null +++ b/_coverpage.md @@ -0,0 +1,6 @@ + + +# 设计数据密集型应用 + +> Designing Data Intensive Applications + diff --git a/_navbar.md b/_navbar.md new file mode 100644 index 0000000..8326095 --- /dev/null +++ b/_navbar.md @@ -0,0 +1,3 @@ +- Language + - [:cn: 简体](/) + - [:cn: 繁体](/zh-tw/) \ No newline at end of file diff --git a/bin/serve b/bin/serve new file mode 100755 index 0000000..e60cb0d --- /dev/null +++ b/bin/serve @@ -0,0 +1,11 @@ +#!/bin/bash + +PROG_DIR="$(cd $(dirname $0) && pwd)" +HOME_DIR="$(cd $(dirname ${PROG_DIR}) && pwd)" + +if command -v docsify; then + cd ${HOME_DIR} && docsify serve +else + cd ${HOME_DIR} && python -m SimpleHTTPServer 3001 + echo "open http://localhost:3001 with your browser" +fi \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..613776c --- /dev/null +++ b/index.html @@ -0,0 +1,66 @@ + + +
+ +