-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lot of visual aspect fixes required for printing the PDF
* Fix introduction/readme page * Use smaller font size * Switch to DIN-A5 * Center page number * Fix page pargins * Remove travis badge
- Loading branch information
Showing
6 changed files
with
65 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ all: node_modules | |
npm run build | ||
# npm run pdf | ||
|
||
pdf: | ||
npm run pdf | ||
|
||
node_modules: | ||
mkdir -p node_modules | ||
npm i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% block body %} | ||
<div class="pdf-footer"> | ||
<span>{{ page.section }}</span> | ||
<span class="footer-pages-count"><center>{{ page.num }}</center></span> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
{ | ||
"plugins": ["styled-blockquotes"] | ||
} | ||
"title": "The Official Radare2 Book", | ||
"root": "./", | ||
"readme": null, | ||
"author": "pancake <pancake@nopcode.org>", | ||
"plugins": ["styled-blockquotes", "layout"], | ||
"introduction": { | ||
"path": "./intro.md", | ||
"title": "Introduction" | ||
}, | ||
"pdf": { | ||
"toc": true, | ||
"____fontFamily": "Times New Roman", | ||
"fontSize": 8.5, | ||
"pageNumbers": false, | ||
"paperSize": "a5", | ||
"margin": {"top": 40, "left": 30, "right": 30, "bottom": 40 }, | ||
"local-test-margin": {"left": -30, "left": 0, "right": 0, "bottom": 0 }, | ||
"footerTemplate": "<center> _PAGENUM_ </center>" | ||
}, | ||
"layout": { | ||
"footerPath": "_layouts/ebook/pdf_footer.html" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Introduction | ||
|
||
This book is an updated version (initially by maijin) of the original | ||
radare1 book written by pancake. Which is actively maintained and | ||
updated by many contributors over the Internet. | ||
|
||
Check the Github site to add new contents or fix typos: | ||
|
||
* Github: https://github.com/radare/radare2book | ||
* Gitbook: https://www.gitbook.com/book/radare/radare2book/details | ||
|
||
Gitbook autogenerates HTML/PDF/EPUB/MOBIL versions in here: | ||
|
||
* Online: http://radare.gitbooks.io/radare2book/content/ | ||
* PDF: https://www.gitbook.com/download/pdf/book/radare/radare2book | ||
* Epub: https://www.gitbook.com/download/epub/book/radare/radare2book | ||
* Mobi: https://www.gitbook.com/download/mobi/book/radare/radare2book | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters