├── README.rst └── createRSTBook.sh /README.rst: -------------------------------------------------------------------------------- 1 | Creates a directory with boilerplate for building rst books. 2 | -------------------------------------------------------------------------------- /createRSTBook.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DIR=$1 4 | 5 | if [ ! -d "$DIR" ]; then 6 | mkdir $DIR 7 | mkdir $DIR/assets 8 | mkdir $DIR/rst 9 | mkdir $DIR/img 10 | mkdir $DIR/build 11 | mkdir $DIR/meta 12 | 13 | cat > $DIR/meta/amzn_description.rst < $DIR/meta/amzn_notes.rst < $DIR/requirements.txt < $DIR/Makefile < $DIR/rst/book.rst < 107 | .. include:: 108 | 109 | .. |date| date:: 110 | 111 | .. image:: img/funccover.png 112 | :class: cover 113 | 114 | :creator: \${AUTHOR} 115 | :title: \${TITLE} 116 | :language: en 117 | :publisher: \${PUB} 118 | :description: Learn Intermediate Python Programming quickly, and correctly |date| 119 | :subject: Python Programming Language 120 | :rights: Copyright |copy| \${YEAR} — \${AUTHOR} — All rights reserved 121 | 122 | 123 | .. http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#id59 for curly quotes, em dash, etc 124 | 125 | 126 | .. titlepage 127 | 128 | .. raw:: html 129 | 130 |
131 |
132 |

\${TITLE}

133 |

\${SUBTITLE}

134 |

\${AUTHOR}

135 |
136 |

\${PUB}

137 |
138 | 139 | 140 | .. newpage: 141 | 142 | .. raw:: html 143 | 144 | 148 |

While every precaution has been taken in the preparation of this 149 | book, the publisher and author assumes no responsibility for errors 150 | or omissions, or for damages resulting from the use of the 151 | information contained herein.

152 | 153 | |date| 154 | 155 | 156 | .. toc:show 157 | 158 | Chapters Go Here 159 | ================== 160 | 161 | Content 162 | Test 163 | EOF 164 | 165 | fi 166 | --------------------------------------------------------------------------------