Skip to content

Commit

Permalink
Update redirects for all the tools
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx committed Oct 6, 2017
1 parent 4a93b07 commit 4e4d2a1
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 21 deletions.
2 changes: 1 addition & 1 deletion cert/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/cert#readme"
location.href = "https://docs.fastlane.tools/actions/cert"
</script>
2 changes: 1 addition & 1 deletion deliver/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/deliver#readme"
location.href = "https://docs.fastlane.tools/actions/deliver"
</script>
17 changes: 15 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
skip_docs

lane :generate do
require 'fileutils'
tools = %w(fastlane fastlane_core deliver snapshot frameit pem sigh produce cert gym pilot credentials_manager spaceship scan supply watchbuild match screengrab precheck)
tools = %w(fastlane fastlane_core deliver snapshot frameit pem sigh produce cert gym pilot credentials_manager spaceship scan supply match screengrab precheck)
manual_mapping = {
"fastlane" => "https://docs.fastlane.tools",
"spaceship" => "https://github.com/fastlane/fastlane/blob/master/spaceship/README.md#readme",
"fastlane_core" => "https://github.com/fastlane/fastlane/tree/master/fastlane_core#readme",
"credentials_manager" => "https://github.com/fastlane/fastlane/tree/master/credentials_manager#readme"
}
puts "Generating short links for: \n#{tools.join(', ')}"

Dir.chdir("..") do
tools.each do |current|
FileUtils.mkdir(current) unless File.directory?(current)

url = "https://docs.fastlane.tools/actions/#{current}"
if manual_mapping[current].to_s.length > 0
url = manual_mapping[current]
end

index = <<-eos
<script type=\"text/javascript\">
location.href = \"https://github.com/fastlane/fastlane/tree/master/#{current}#readme\"
location.href = \"#{url}\"
</script>
eos

Expand Down
2 changes: 1 addition & 1 deletion fastlane/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/fastlane#readme"
location.href = "https://docs.fastlane.tools"
</script>
2 changes: 1 addition & 1 deletion frameit/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/frameit#readme"
location.href = "https://docs.fastlane.tools/actions/frameit"
</script>
2 changes: 1 addition & 1 deletion gym/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/gym#readme"
location.href = "https://docs.fastlane.tools/actions/gym"
</script>
2 changes: 1 addition & 1 deletion match/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/match#readme"
location.href = "https://docs.fastlane.tools/actions/match"
</script>
2 changes: 1 addition & 1 deletion pem/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/pem#readme"
location.href = "https://docs.fastlane.tools/actions/pem"
</script>
2 changes: 1 addition & 1 deletion pilot/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/pilot#readme"
location.href = "https://docs.fastlane.tools/actions/pilot"
</script>
2 changes: 1 addition & 1 deletion precheck/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/precheck#readme"
location.href = "https://docs.fastlane.tools/actions/precheck"
</script>
2 changes: 1 addition & 1 deletion produce/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/produce#readme"
location.href = "https://docs.fastlane.tools/actions/produce"
</script>
2 changes: 1 addition & 1 deletion scan/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/scan#readme"
location.href = "https://docs.fastlane.tools/actions/scan"
</script>
2 changes: 1 addition & 1 deletion screengrab/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/screengrab#readme"
location.href = "https://docs.fastlane.tools/actions/screengrab"
</script>
2 changes: 1 addition & 1 deletion sigh/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/sigh#readme"
location.href = "https://docs.fastlane.tools/actions/sigh"
</script>
2 changes: 1 addition & 1 deletion snapshot/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/snapshot#readme"
location.href = "https://docs.fastlane.tools/actions/snapshot"
</script>
2 changes: 1 addition & 1 deletion spaceship/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/spaceship#readme"
location.href = "https://github.com/fastlane/fastlane/blob/master/spaceship/README.md#readme"
</script>
2 changes: 1 addition & 1 deletion supply/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<script type="text/javascript">
location.href = "https://github.com/fastlane/fastlane/tree/master/supply#readme"
location.href = "https://docs.fastlane.tools/actions/supply"
</script>
3 changes: 0 additions & 3 deletions watchbuild/index.html

This file was deleted.

0 comments on commit 4e4d2a1

Please sign in to comment.