Generate html files

This commit is contained in:
Phyks 2014-07-16 17:31:04 +02:00
parent f6cae76d73
commit d2b57b950d
9 changed files with 226 additions and 0 deletions

23
belgium/index.html Normal file
View File

@ -0,0 +1,23 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<div id="TOC">
<ul>
<li><a href="#travel-notes-on-belgium">Travel notes on Belgium</a><ul>
<li><a href="#brussels">Brussels</a></li>
</ul></li>
</ul>
</div>
<h1 id="travel-notes-on-belgium">Travel notes on Belgium</h1>
<p><a href="../">Go back</a></p>
<h2 id="brussels">Brussels</h2>
<p>Always buy your train ticket in the country of departure. For instance, if you travel from Paris to Brussels with Thalys, buy your ticket at SNCF (French company). But if you travel from Brussels to Paris, buy it at SNCB (Belgium company). If you buy a SNCF ticket from Brussels to Paris, you will have to print it before, for example (or to pay 10€ to print it at Brussels station).</p>
</body>
</html>

28
czech_republic/index.html Normal file
View File

@ -0,0 +1,28 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<div id="TOC">
<ul>
<li><a href="#travel-notes-on-czech-republic">Travel notes on Czech Republic</a><ul>
<li><a href="#general-information">General information</a></li>
<li><a href="#praha">Praha</a></li>
</ul></li>
</ul>
</div>
<h1 id="travel-notes-on-czech-republic">Travel notes on Czech Republic</h1>
<p><a href="../">Go back</a></p>
<h2 id="general-information">General information</h2>
<p>Many czech people dont speak English, especially outside Praha and the main cities. I took a train between Praha and Linz (Austria) and I had to stop in a small czech city, to take a bus because of works on the line. On a Sunday, there wasnt anybody in this place, and noone was able to speak English.</p>
<p>Regional trains are not very comfortable, but fast trains (Pendolinos), on main railways, are very comfortable and quite cheap.</p>
<h2 id="praha">Praha</h2>
<p>Indications at Praha main station are a bit messy. Note that the main station is actually composed of two buildings, which are some minutes far by walking, so be sure to head to the right one.</p>
<p>Note also that although Praha has a bus station, many buses, especially for connections to main cities in Germany and Austria are leaving from the central train station.</p>
</body>
</html>

23
danemark/index.html Normal file
View File

@ -0,0 +1,23 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<div id="TOC">
<ul>
<li><a href="#travel-notes-on-danemark">Travel notes on Danemark</a><ul>
<li><a href="#copenhagen">Copenhagen</a></li>
</ul></li>
</ul>
</div>
<h1 id="travel-notes-on-danemark">Travel notes on Danemark</h1>
<p><a href="../">Go back</a></p>
<h2 id="copenhagen">Copenhagen</h2>
<p>There are direct connections between Copenhagen airport and Skåne in Sweden. These trains are working all night long and there is almost always people in the train !</p>
</body>
</html>

27
france/index.html Normal file
View File

@ -0,0 +1,27 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<div id="TOC">
<ul>
<li><a href="#travel-notes-on-france">Travel notes on France</a><ul>
<li><a href="#paris">Paris</a></li>
<li><a href="#lyon">Lyon</a></li>
</ul></li>
</ul>
</div>
<h1 id="travel-notes-on-france">Travel notes on France</h1>
<p><a href="../">Go back</a></p>
<h2 id="paris">Paris</h2>
<p>When you want to connect from Paris center and the airports, a general advice would be to always take the local train service, RER, which is usually way faster than buses. In fact, there can be big traffic jams which wont affect it. Air France buses are very expensive, and RATP (local public transport) buses and RER have similar prices (~ 10€).</p>
<p>Note that the terminal 2G at Paris CDG is very far from the public transports and you have to take a special bus to connect between terminal 2F and 2G, so take some extra time. Usually, you have power plugs and free wifi in the two parisians airports.</p>
<h2 id="lyon">Lyon</h2>
<p>The ticket to go from the airport to the central train station (La Pardieu) is quite expensive (about 15€).</p>
</body>
</html>

27
generate.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
function generate_html {
echo "Converting $0"
output=`echo "$0" | sed -e "s/md/html/g"`
pandoc -s -S --toc "$0" -o "$output"
echo "Done"
}
function append_index {
echo "<a href=\"$0\">$0</a>" >> index_head.html
}
export -f generate_html
export -f append_index
rm index_head.html
touch index_head.html
find . -type d -not -path '*/\.*' -not -path '.' | sort | xargs -L 1 sh -c '
append_index "$0"
'
find . -name \*.md -exec sh -c '
generate_html "$0"
' {} ';'
pandoc -s -S -B index_head.html index.md -o index.html

25
index.html Normal file
View File

@ -0,0 +1,25 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<a href="./belgium">./belgium</a>
<a href="./czech_republic">./czech_republic</a>
<a href="./danemark">./danemark</a>
<a href="./france">./france</a>
<a href="./italy">./italy</a>
<a href="./sweden">./sweden</a>
<h1 id="phyks-travel-notes">Phyks travel notes</h1>
<p>This is a compilation of some travel experiences I have, and would like to share, stuff Id like to know before leaving.</p>
<p>If you want to add some extra informations, feel free to <a href="https://phyks.me/contact.html">contact me</a>.</p>
<h2 id="general-advices">General advices</h2>
<ul>
<li><strong>Always</strong> buy your tickets to a seller in the country of departure. This concerns maainly the trains and coaches tickets, as flight companies are in almost all the airports, or at least have agreements with other companies to represent them. So, lets imagine you are travelling from Austria to Germany, you should buy your ticket at ÖBB (austrian railways) instead of DB (german railways). If you need to change your ticket before departure, miss your train, or whatever else, they will be able to handle it, whereas if you did not buy a ticket from them, they will simply tell you to go and ask the other company (which is usually not represented in the country of departure). In any cases, if you cant use a ticket, <strong>always</strong> try to get a stamp saying that you did not use it.</li>
</ul>
</body>
</html>

6
index_head.html Normal file
View File

@ -0,0 +1,6 @@
<a href="./belgium">./belgium</a>
<a href="./czech_republic">./czech_republic</a>
<a href="./danemark">./danemark</a>
<a href="./france">./france</a>
<a href="./italy">./italy</a>
<a href="./sweden">./sweden</a>

44
italy/index.html Normal file
View File

@ -0,0 +1,44 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<div id="TOC">
<ul>
<li><a href="#travel-notes-on-italy">Travel notes on Italy</a><ul>
<li><a href="#general-information-mainly-about-northern-italy">General information (mainly about northern Italy)</a></li>
<li><a href="#verona">Verona</a><ul>
<li><a href="#verona-airport">Verona Airport</a></li>
<li><a href="#verona-station">Verona station</a></li>
</ul></li>
<li><a href="#venice">Venice</a></li>
</ul></li>
</ul>
</div>
<h1 id="travel-notes-on-italy">Travel notes on Italy</h1>
<p><a href="../">Go back</a></p>
<h2 id="general-information-mainly-about-northern-italy">General information (mainly about northern Italy)</h2>
<p>Italian people dont speak much english (or are not really enclined to speak english).</p>
<p>There are mainly two categories of train tickets in Italy : Frecce and others. When you go on [Trenitalia website](http://trenitalia.com/“) the search form is only for Frecce, by default, and Frecce are the most expensive trains (more comfortable, but not necessarily faster).</p>
<p>Last trains between cities are usually at 10pm or 11pm, make sure not to miss the last one !</p>
<p>In Frecce trains, there are power plugs, even in 2nd class, but they are not european standard power plug. A small charger will</p>
<p>Regional trains are the equivalent of French TERs, they are not very fast (but depending on the journey, they are not necessarily much slower than Frecce) and dont have any power plug or so. They are not very comfortable neither, with often a lot of people, but are quite cheap.</p>
<h2 id="verona">Verona</h2>
<p>Connection between Verona station and Verona Airport are very easy. There is a bus each 20 minutes during the day, and the connection costs 6€ (tickets can be bought onboard or in Verona station).</p>
<h3 id="verona-airport">Verona Airport</h3>
<p>Verona Airport is a very small airport. All the boarding are done with buses. There is no free wifi, nor power plugs in the airport. As it is a small airport with many tour operators flights, checkin and security controls can be quite long.</p>
<h3 id="verona-station">Verona station</h3>
<p>No power plugs available in the station… =(</p>
<h2 id="venice">Venice</h2>
<p>Venice airport &lt;-&gt; Mestre station (Venice main station) is really difficult, especially the first time.</p>
<p>This connection costs 6€ and two companies are available : ATVO and the regular bus company of Venice. Always take ATVO which is much more comfortable and faster.</p>
<p>When going from the airport to the train station, it is quite easy to find your way, and everyone speaks english at the airport. Just be aware that the bus will drop you on a parking at the end of the street of the train station. If you are starting from the train station, you have to take the bus at the bus stop on the parking in the end of the street, on the right of the train station, when exiting.</p>
<p>Venice is a very turistic place, so note that there are many groups at the airport. Personnally, Venice was my worst experience with security control, <strong>way</strong> too long…</p>
<p>There are power plugs in the airport.</p>
</body>
</html>

23
sweden/index.html Normal file
View File

@ -0,0 +1,23 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<div id="TOC">
<ul>
<li><a href="#travel-notes-on-sweden">Travel notes on Sweden</a><ul>
<li><a href="#skanje-todo">Skanje (TODO)</a></li>
</ul></li>
</ul>
</div>
<h1 id="travel-notes-on-sweden">Travel notes on Sweden</h1>
<p><a href="../">Go back</a></p>
<h2 id="skanje-todo">Skanje (TODO)</h2>
<p>There are direct connections between Copenhagen airport and Skåne in Sweden. These trains are working all night long and there is almost always people in the train ! More generally, the train network in Skanje (TODO) is very good.</p>
</body>
</html>