Julio Biason
4 years ago
2 changed files with 120 additions and 0 deletions
@ -0,0 +1,94 @@ |
|||||||
|
<!DOCTYPE html> |
||||||
|
<html class="no-js" lang="en"> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8"> |
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
||||||
|
<title>Welcome to JulioBiason.Me</title> |
||||||
|
|
||||||
|
<style type="text/css" media="all"> |
||||||
|
/*! |
||||||
|
* Hack typeface https://github.com/source-foundry/Hack |
||||||
|
* License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md |
||||||
|
*/@font-face { |
||||||
|
font-family:'Hack'; |
||||||
|
src:url("fonts/hack-regular.woff2?sha=3114f1256") format("woff2"), |
||||||
|
url("fonts/hack-regular.woff?sha=3114f1256") format("woff"); |
||||||
|
font-weight:400; |
||||||
|
font-style:normal |
||||||
|
} |
||||||
|
@font-face { |
||||||
|
font-family:'Hack'; |
||||||
|
src:url("fonts/hack-bold.woff2?sha=3114f1256") format("woff2"), |
||||||
|
url("fonts/hack-bold.woff?sha=3114f1256") format("woff"); |
||||||
|
font-weight:700; |
||||||
|
font-style:normal |
||||||
|
} |
||||||
|
@font-face { |
||||||
|
font-family:'Hack'; |
||||||
|
src:url("fonts/hack-italic.woff2?sha=3114f1256") format("woff2"), |
||||||
|
url("fonts/hack-italic.woff?sha=3114f1256") format("woff"); |
||||||
|
font-weight:400; |
||||||
|
font-style:italic |
||||||
|
} |
||||||
|
@font-face { |
||||||
|
font-family:'Hack'; |
||||||
|
src:url("fonts/hack-bolditalic.woff2?sha=3114f1256") format("woff2"), |
||||||
|
url("fonts/hack-bolditalic.woff?sha=3114f1256") format("woff"); |
||||||
|
font-weight:700; |
||||||
|
font-style:italic |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
body { |
||||||
|
background-color: #1d212c; |
||||||
|
color: white; |
||||||
|
padding: 20px 10px; |
||||||
|
max-width: 50rem; |
||||||
|
margin: 0 auto; |
||||||
|
font-family:Hack, DejaVu Sans Mono, Monaco, Consolas, Ubuntu Mono, monospace; |
||||||
|
} |
||||||
|
|
||||||
|
.hero { |
||||||
|
margin: 0 auto; |
||||||
|
text-align: center; |
||||||
|
} |
||||||
|
|
||||||
|
a { |
||||||
|
color: white; |
||||||
|
border-bottom: 1px solid white; |
||||||
|
text-decoration: none; |
||||||
|
} |
||||||
|
|
||||||
|
.tabs { |
||||||
|
margin-bottom: 10px; |
||||||
|
padding: 2px; |
||||||
|
} |
||||||
|
|
||||||
|
.tabs .active { |
||||||
|
background-color: rgb(35, 176, 255); |
||||||
|
color: black; |
||||||
|
padding: 2px; |
||||||
|
} |
||||||
|
|
||||||
|
.hidden { |
||||||
|
display: none; |
||||||
|
} |
||||||
|
|
||||||
|
h1 { |
||||||
|
color: rgb(35, 176, 255); |
||||||
|
} |
||||||
|
|
||||||
|
</style> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<div class="hero"> |
||||||
|
<h1>Books.JulioBiason.Me</h1> |
||||||
|
</div> |
||||||
|
|
||||||
|
<h2>English</h2> |
||||||
|
|
||||||
|
<ul> |
||||||
|
<li><a href="things-i-learnt/index.html">Things I Learnt the Hard Way (in 30 Years of Software Development)</a></li> |
||||||
|
</ul> |
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,26 @@ |
|||||||
|
build_book() { |
||||||
|
BOOK_PATH=$1 |
||||||
|
|
||||||
|
cd $BOOK_PATH |
||||||
|
mdbook build |
||||||
|
cd .. |
||||||
|
} |
||||||
|
|
||||||
|
publish_book() { |
||||||
|
BOOK_PATH=$1 |
||||||
|
SOURCE=${BOOK_PATH}book/* |
||||||
|
TARGET=$BOOK_PATH |
||||||
|
|
||||||
|
echo "rsync -r $SOURCE books@books.juliobiason.me:$TARGET" |
||||||
|
rsync -r $SOURCE books@books.juliobiason.me:$TARGET |
||||||
|
} |
||||||
|
|
||||||
|
publish_index() { |
||||||
|
rsync index.html books@books.juliobiason.me: |
||||||
|
} |
||||||
|
|
||||||
|
for book in `ls -d */`; do |
||||||
|
build_book $book |
||||||
|
publish_book $book |
||||||
|
publish_index |
||||||
|
done |
Loading…
Reference in new issue