-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'OneBusAway:main' into methodpagefix
- Loading branch information
Showing
84 changed files
with
4,336 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'tmpdir' | ||
|
||
MODULES = { | ||
"onebusaway-gtfs-modules" => (->{ build_gtfs_modules }) | ||
} | ||
|
||
def build_gtfs_modules | ||
repo_url = 'https://github.com/OneBusAway/onebusaway-gtfs-modules.git' | ||
temp_dir = Dir.mktmpdir | ||
|
||
begin | ||
# Clone the repository into the temporary directory | ||
system("git clone --single-branch --branch gh-pages #{repo_url} #{temp_dir}") | ||
|
||
if $?.success? | ||
puts "Repository cloned into temporary directory: #{temp_dir}" | ||
else | ||
puts "Failed to clone repository." | ||
exit | ||
end | ||
|
||
archive_path = Dir.chdir(temp_dir) do |path| | ||
archive_command = "git archive --format=zip -o gh-pages.zip HEAD" | ||
system(archive_command) | ||
|
||
archive_path = File.join(temp_dir, 'gh-pages.zip') | ||
|
||
if $?.success? | ||
puts "Archive created successfully: #{archive_path}" | ||
else | ||
puts "Failed to create archive." | ||
exit | ||
end | ||
archive_path | ||
end | ||
|
||
system("unzip -o #{archive_path} -d ./src/modules/onebusaway-gtfs-modules/current") | ||
ensure | ||
# Clean up the temporary directory | ||
FileUtils.remove_entry(temp_dir) | ||
end | ||
end | ||
|
||
mod = ARGV[0]&.strip | ||
lam = MODULES[mod] | ||
|
||
if lam | ||
lam.call | ||
else | ||
puts "Unknown module: '#{mod}'" | ||
puts "Call this script with one of the following options:" | ||
MODULES.keys.each {|k| puts " - #{k}"} | ||
exit | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: page | ||
title: REST API Elements | ||
--- | ||
|
||
<ul> | ||
<% site.data.rest_api['elements'].each do |k,v| %> | ||
<li> | ||
<a href="/api/where/elements/<%= k %>"> | ||
<%= v['name'] || k %> | ||
</a> | ||
<% if v['description'] %> | ||
- <%= v['description'] %> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: page | ||
title: REST API Methods | ||
--- | ||
|
||
<ul> | ||
<% site.data.rest_api['methods'].each do |k,v| %> | ||
<li> | ||
<a href="/api/where/methods/<%= k %>"> | ||
<%= v['name'] || k %> | ||
</a> | ||
<% if v['description'] %> | ||
- <%= v['description'] %> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
layout: page | ||
title: Features | ||
--- | ||
|
||
OneBusAway offers a rich set of features for transit agencies and end users. | ||
|
||
* [Web UI](/features/web) | ||
* [Phone and SMS](/features/phone-and-sms) | ||
* [Sign Mode](/features/sign-mode) | ||
* [GTFS Realtime](/features/gtfs-realtime) | ||
* [REST API](/api/where) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: Deployment Guides | ||
layout: page | ||
--- | ||
|
||
<p> | ||
This page is the hub for all of our guides and frequently asked questions about | ||
deploying OneBusAway for production use. | ||
</p> | ||
|
||
<p> | ||
Over time, you can expect to find a variety of guides covering deployment to platforms like | ||
Kubernetes, AWS, Google Cloud Platform, Microsoft Azure, and more. For now, if you would like | ||
to help, check out our <a href="https://github.com/OneBusAway/onebusaway-docker/issues">onebusaway-docker issue tracker</a> | ||
where this work is being coordinated. | ||
</p> | ||
|
||
<h2>Docker Images</h2> | ||
|
||
<p> | ||
We maintain official OneBusAway Docker images on <a href='https://hub.docker.com/u/opentransitsoftwarefoundation'>Docker Hub</a>. | ||
We strongly recommend using a versioned image instead of the `latest` tag. You can learn more about using the Docker images with | ||
<a href="https://docs.docker.com/compose/">Docker Compose</a> in the <a href="https://github.com/OneBusAway/onebusaway-docker">onebusaway-docker project README</a>. | ||
</p> | ||
|
||
<h2>Render</h2> | ||
|
||
<p> | ||
<a href='https://www.render.com'>Render.com</a> is a Platform as a Service (PaaS) provider that can be much easier to work with than AWS, GCP, or Azure while still | ||
offering a rich and compelling set of services for creating, orchestrating, and maintaining software using Docker and Render's Infrastructure as Code (IaC) tooling. | ||
</p> | ||
|
||
<p> | ||
<a href="/guides/deployment/render">Learn how to deploy OneBusAway on Render →</a> | ||
</p> |
Oops, something went wrong.