From 8dbb321a25705d941f7690281e495ccbd94cbdc3 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 13 Jun 2022 23:29:17 +0200 Subject: add build script for mdbook --- build.sh | 4 ++++ cleanup.sh | 2 ++ gtfs-book/SUMMARY.md | 24 ++++++++++++++++++++++++ gtfs-book/book.toml | 6 ++++++ gtfs-realtime-book/SUMMARY.md | 15 +++++++++++++++ gtfs-realtime-book/book.toml | 6 ++++++ 6 files changed, 57 insertions(+) create mode 100755 build.sh create mode 100755 cleanup.sh create mode 100644 gtfs-book/SUMMARY.md create mode 100644 gtfs-book/book.toml create mode 100644 gtfs-realtime-book/SUMMARY.md create mode 100644 gtfs-realtime-book/book.toml 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" -- cgit v1.2.3