File tree Expand file tree Collapse file tree 6 files changed +73
-0
lines changed Expand file tree Collapse file tree 6 files changed +73
-0
lines changed Original file line number Diff line number Diff line change 1+ < html >
2+ < head >
3+ < title > Cover</ title >
4+ < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 " />
5+ < link href ="https://fonts.googleapis.com/css?family=Roboto " rel ="stylesheet ">
6+ < style >
7+ html {
8+ font-family : 'Roboto' , sans-serif;
9+ color : black;
10+ }
11+ .page {
12+ margin-top : 0mm ;
13+ }
14+ .page .cover-image .title {
15+ position : absolute;
16+ top : 20px ;
17+ left : 25px ;
18+ color : white;
19+ font-size : 66pt ;
20+ font-weight : bold;
21+ }
22+ .page .cover-image .subtitle {
23+ position : relative;
24+ bottom : 58px ;
25+ left : 25px ;
26+ color : white;
27+ font-size : 28pt ;
28+ font-weight : bold;
29+ }
30+ .page .version {
31+ position : relative;
32+ top : -20px ;
33+ font-size : 14pt ;
34+ }
35+ .page .copyright {
36+ font-size : 11pt ;
37+ }
38+ .page .logo {
39+ position : absolute;
40+ bottom : 0px ;
41+ right : 0px ;
42+ }
43+ </ style >
44+ < body >
45+ < div class ="page ">
46+ < div class ="cover-image ">
47+ < img src ="images/cover.png " style ="width: 100%; "/>
48+ < div class ="title ">
49+ PL/SQL & SQL< br /> Codinging Guidelines
50+ </ div >
51+ < div class ="subtitle ">
52+ Tips for Development & Operation
53+ </ div >
54+ </ div >
55+ < div class ="version ">
56+ Document Version #VERSION#
57+ < div class ="copyright ">
58+ © #YEAR# Trivadis AG
59+ </ div >
60+ </ div >
61+ < div class ="logo ">
62+ < img src ="images/trivadis-logo.jpg " style ="height: 60px; "/>
63+ </ div >
64+ </ div >
65+ </ body >
66+ </ html >
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ function copy_resources() {
1111 cp -r ${DATA_DIR} /docs/stylesheets ${TARGET_DIR} /docs/stylesheets
1212}
1313
14+ function create_cover() {
15+ sed -e " s/#VERSION#/$( get_version) /g" ${DATA_DIR} /docs/cover-template.html \
16+ | sed -e " s/#YEAR#/$( date +' %Y' ) /g" > ${TARGET_DIR} /docs/cover.html
17+ }
18+
1419function write_file(){
1520 FILE=$1
1621 echo " " >> ${TARGET_DIR} /docs/index.md
@@ -56,6 +61,7 @@ function convert_to_pdf(){
5661 --footer-left " Version $( get_version) " \
5762 --footer-right " Page [page] of [topage]" \
5863 --title " PL/SQL & SQL Coding Guidelines Version $( get_version) " \
64+ cover ../docs/cover.html \
5965 toc \
6066 --xsl-style-sheet stylesheets/toc.xsl \
6167 index.html ${DATA_DIR} /PLSQL-and-SQL-Coding-Guidelines.pdf
@@ -66,6 +72,7 @@ TARGET_DIR=${DATA_DIR}/pdf
6672
6773create_target_dir
6874copy_resources
75+ create_cover
6976write_file " index.md"
7077write_file " 1-introduction/introduction.md"
7178write_file " 2-naming-conventions/naming-conventions.md"
You can’t perform that action at this time.
0 commit comments