aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2022-06-13 23:29:17 +0200
committerstuebinm2022-06-13 23:29:17 +0200
commit8dbb321a25705d941f7690281e495ccbd94cbdc3 (patch)
tree72d468adbad7cb2ce1536ed76a7d20585ef4faec
parent1d75f12fa42e05a111474011006d60caa1f2d4a9 (diff)
add build script for mdbook
-rwxr-xr-xbuild.sh4
-rwxr-xr-xcleanup.sh2
-rw-r--r--gtfs-book/SUMMARY.md24
-rw-r--r--gtfs-book/book.toml6
-rw-r--r--gtfs-realtime-book/SUMMARY.md15
-rw-r--r--gtfs-realtime-book/book.toml6
6 files changed, 57 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..a39d0c0
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,4 @@
+set -e
+
+mdbook build gtfs-book -d ../gtfs-book-html
+mdbook build gtfs-realtime-book -d ../gtfs-realtime-book-html
diff --git a/cleanup.sh b/cleanup.sh
new file mode 100755
index 0000000..8826fa7
--- /dev/null
+++ b/cleanup.sh
@@ -0,0 +1,2 @@
+rm -r gtfs-book-html
+rm -r gtfs-realtime-book-html
diff --git a/gtfs-book/SUMMARY.md b/gtfs-book/SUMMARY.md
new file mode 100644
index 0000000..c787fb4
--- /dev/null
+++ b/gtfs-book/SUMMARY.md
@@ -0,0 +1,24 @@
+# Summary
+
+ - [About](./ch-00-definitive-guide-to-gtfs.md)
+ - [Introduction](./ch-01-introduction.md)
+ - [Agencies](./ch-02-agencies.md)
+ - [Stops](./ch-03-stops.md)
+ - [Routes](./ch-04-routes.md)
+ - [Trips](./ch-05-trips.md)
+ - [Stop Times](./ch-06-stop-times.md)
+ - [Calendar](./ch-07-calendar.md)
+ - [Fares](./ch-08-fares.md)
+ - [Shapes](./ch-09-shapes.md)
+ - [Frequencies](./ch-10-frequencies.md)
+ - [Stop Transfers](./ch-11-stop-transfers.md)
+ - [Feed Information](./ch-12-feed-information.md)
+ - [Importing to SQL](./ch-13-importing-to-sql.md)
+ - [Switching to Integer IDs](./ch-14-switching-to-integer-ids.md)
+ - [Optimizing Shapes](./ch-15-optimizing-shapes.md)
+ - [Deleting Unused Data](./ch-16-deleting-unused-data.md)
+ - [Searching for Trips](./ch-17-searching-for-trips.md)
+ - [Working with Trip Blocks](./ch-18-working-with-trip-blocks.md)
+ - [Calculating Fares](./ch-19-calculating-fares.md)
+ - [Trip Patterns](./ch-20-trip-patterns.md)
+ - [Conclusion](./ch-21-conclusion.md)
diff --git a/gtfs-book/book.toml b/gtfs-book/book.toml
new file mode 100644
index 0000000..9e904f0
--- /dev/null
+++ b/gtfs-book/book.toml
@@ -0,0 +1,6 @@
+[book]
+authors = ["Quentin Zervaas"]
+language = "en"
+multilingual = false
+src = "."
+title = "The Definitive Guide to GTFS"
diff --git a/gtfs-realtime-book/SUMMARY.md b/gtfs-realtime-book/SUMMARY.md
new file mode 100644
index 0000000..6dc30e3
--- /dev/null
+++ b/gtfs-realtime-book/SUMMARY.md
@@ -0,0 +1,15 @@
+# Summary
+
+ - [About](./ch-00-definitive-guide-to-gtfs-realtime.md)
+ - [Introduction](./ch-01-introduction.md)
+ - [Service Alerts](./ch-02-service-alerts.md)
+ - [Vehicle Positions](./ch-03-vehicle-positions.md)
+ - [Trip Updates](./ch-04-trip-updates.md)
+ - [Protocol Buffers](./ch-05-protocol-buffers.md)
+ - [Consuming Service Alerts](./ch-06-consuming-service-alerts.md)
+ - [Consuming Vehicle Positions](./ch-07-consuming-vehicle-positions.md)
+ - [Consuming Trip Updates](./ch-08-consuming-trip-updates.md)
+ - [Database Storage](./ch-09-database-storage.md)
+ - [Extensions](./ch-10-extensions.md)
+ - [Publishing Feeds](./ch-11-publishing-feeds.md)
+ - [Conclusion](./ch-12-conclusion.md)
diff --git a/gtfs-realtime-book/book.toml b/gtfs-realtime-book/book.toml
new file mode 100644
index 0000000..4065430
--- /dev/null
+++ b/gtfs-realtime-book/book.toml
@@ -0,0 +1,6 @@
+[book]
+authors = ["Quentin Zervaas"]
+language = "en"
+multilingual = false
+src = "."
+title = "The Definitive Guide to GTFS Realtime"