Compare commits
5 Commits
24a71b7fb0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97f999a137 | ||
|
|
9377b2c427 | ||
|
|
2f182393d5 | ||
|
|
05900e635e | ||
|
|
ef93baf97c |
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
.DS_Store
|
||||
/book
|
||||
/src
|
||||
!/src/SUMMARY.md
|
||||
@@ -1,5 +1,5 @@
|
||||
[book]
|
||||
authors = ["Bel LaPointe"]
|
||||
authors = ["ZachGoldberg"]
|
||||
language = "en"
|
||||
multilingual = false
|
||||
src = "src"
|
||||
|
||||
67
scrape.sh
Normal file
67
scrape.sh
Normal file
@@ -0,0 +1,67 @@
|
||||
#! /bin/bash
|
||||
|
||||
main() (
|
||||
set -ueo pipefail
|
||||
|
||||
if [ ! -f ./raw.md.gz ]; then
|
||||
wget -q -O - https://raw.githubusercontent.com/ZachGoldberg/Startup-CTO-Handbook/main/StartupCTOHandbook.md \
|
||||
| gzip \
|
||||
> ./raw.md.gz
|
||||
fi
|
||||
|
||||
rm -f ./src/* || true
|
||||
mkdir -p ./src
|
||||
|
||||
printf "# Summary\n\n" > ./src/SUMMARY.md
|
||||
|
||||
|
||||
cat ./raw.md.gz \
|
||||
| gzip -d \
|
||||
| (
|
||||
n=0
|
||||
n_f() {
|
||||
printf %03d.txt $n
|
||||
}
|
||||
while read -r line; do
|
||||
local depth=$(
|
||||
echo "$line" \
|
||||
| grep -o -E '^[^a-z]*#+ ' \
|
||||
| grep -o '#' \
|
||||
| wc -l \
|
||||
| awk '{print $1}'
|
||||
)
|
||||
case "$depth" in
|
||||
1|2 )
|
||||
n=$((n+1))
|
||||
printf "%s- [%s](%s)\n" \
|
||||
"$(
|
||||
i=0
|
||||
while ((i<depth-1)); do
|
||||
printf " "
|
||||
i=$((i+1))
|
||||
done
|
||||
)" \
|
||||
"${line#* }" \
|
||||
"$(n_f)" \
|
||||
| tee -a ./src/SUMMARY.md >&2
|
||||
;;
|
||||
esac
|
||||
echo "$line" | tee -a "./src/$(n_f)" &> /dev/null
|
||||
done
|
||||
)
|
||||
|
||||
|
||||
mdbook build
|
||||
|
||||
)
|
||||
|
||||
log() {
|
||||
echo "| $*" >&2
|
||||
}
|
||||
|
||||
if [ "$0" == "$BASH_SOURCE" ]; then
|
||||
main "$@"
|
||||
ret=$?
|
||||
echo ret=$? >&2
|
||||
exit $ret
|
||||
fi
|
||||
@@ -1,3 +1,42 @@
|
||||
# Summary
|
||||
|
||||
- [Chapter 1](./chapter_1.md)
|
||||
- [THE STARTUP CTO'S HANDBOOK](001.txt)
|
||||
- [Essential Skills And Best Practices For High Performing Engineering Teams](002.txt)
|
||||
- [By Zach Goldberg](003.txt)
|
||||
- [Dedications](004.txt)
|
||||
- [Praise](005.txt)
|
||||
- [Contents](006.txt)
|
||||
- [Introduction](007.txt)
|
||||
- [The Author](008.txt)
|
||||
- [Using this Book](009.txt)
|
||||
- [Business Processes](010.txt)
|
||||
- [People & Culture](011.txt)
|
||||
- [Management Fundamentals](012.txt)
|
||||
- [Hiring and Interviewing](013.txt)
|
||||
- [Onboarding](014.txt)
|
||||
- [Performance Management](015.txt)
|
||||
- [Team Makeup](016.txt)
|
||||
- [Leadership Responsibilities](017.txt)
|
||||
- [Which Type of Startup CTO Are You?](018.txt)
|
||||
- [Technical Team Management](019.txt)
|
||||
- [Tech Culture and General Philosophy](020.txt)
|
||||
- [Tech Debt](021.txt)
|
||||
- [Technology Roadmap](022.txt)
|
||||
- [Tech Process](023.txt)
|
||||
- [Developer Experience (DX)](024.txt)
|
||||
- [Tech Architecture](025.txt)
|
||||
- [Architecture](026.txt)
|
||||
- [Data And Analytics](027.txt)
|
||||
- [Tools](028.txt)
|
||||
- [DevOps](029.txt)
|
||||
- [Testing](030.txt)
|
||||
- [Source Control](031.txt)
|
||||
- [Production Escalations](032.txt)
|
||||
- [IT](033.txt)
|
||||
- [Security and Compliance](034.txt)
|
||||
- [Conclusion: Measuring Success](035.txt)
|
||||
- [Book References](036.txt)
|
||||
- [Digital References](037.txt)
|
||||
- [Glossary](038.txt)
|
||||
- [About the author](039.txt)
|
||||
- [About the publisher](040.txt)
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
# Chapter 1
|
||||
Reference in New Issue
Block a user