Skip to content

Commit 08b0cff

Browse files
committed
feat: improve terraform cheat sheet to 1.0.3
1 parent a2a7f68 commit 08b0cff

File tree

9 files changed

+2876
-35
lines changed

9 files changed

+2876
-35
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ typings/
8484
.dynamodb/
8585

8686
# End of https://www.gitignore.io/api/node
87+
.DS_Store

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Terraform cheat sheet
2+
3+
# Generate cheat sheet PDF
4+
5+
`$ ./bin/asciidoctorjs-pdf terraform-cheat-sheet.adoc --template-require ../examples/cheat-sheet/template/template.js`
51.5 KB
Loading

examples/cheat-sheet/template/template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const getAuthors = function (node) {
2828
const renderAuthors = function (authors) {
2929
return authors.map(author => {
3030
return `<div class="author">
31-
<div class="author-avatar"><img src="http://avatars.io/twitter/${author.twitter}"/></div>
31+
<div class="author-avatar"><img src="https://pbs.twimg.com/profile_images/726148230224949249/g2T2qehD_400x400.jpg"/></div>
3232
<div class="author-name"><a href="${author.email}">@${author.twitter}</a></div>
3333
<div class="author-bio">${author.bio}</div>
3434
</div>
@@ -47,7 +47,7 @@ module.exports = [{
4747
</head>
4848
<body>
4949
<header>
50-
<h1>${ctx.node.getHeader().getTitle()}</h1>
50+
<h1><img width="50" height="50" src="examples/cheat-sheet/template/assets/logo.png"/> ${ctx.node.getHeader().getTitle()}</h1>
5151
</header>
5252
<section class="content">
5353
${ctx.node.getContent()}

0 commit comments

Comments
 (0)