From f2c4d6a8764add16e71de296312ac9198d05d7a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henr=C3=A9=20Botha?= <5593874+henrebotha@users.noreply.github.com> Date: Tue, 27 May 2025 09:49:27 +0200 Subject: [PATCH 1/2] Fix spelling --- README.rdoc | 2 +- doc/{rational.rdoc => rationale.rdoc} | 0 rake.gemspec | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename doc/{rational.rdoc => rationale.rdoc} (100%) diff --git a/README.rdoc b/README.rdoc index 7716e782e..0d8d64011 100644 --- a/README.rdoc +++ b/README.rdoc @@ -76,7 +76,7 @@ Type "rake --help" for all available options. * {Rake command-line}[link:doc/command_line_usage.rdoc] * {Writing Rakefiles}[link:doc/rakefile.rdoc] -* The original {Rake announcement}[link:doc/rational.rdoc] +* The original {Rake announcement}[link:doc/rationale.rdoc] * Rake {glossary}[link:doc/glossary.rdoc] === Presentations and Articles about Rake diff --git a/doc/rational.rdoc b/doc/rationale.rdoc similarity index 100% rename from doc/rational.rdoc rename to doc/rationale.rdoc diff --git a/rake.gemspec b/rake.gemspec index 49cec19a9..be01280bc 100644 --- a/rake.gemspec +++ b/rake.gemspec @@ -45,7 +45,7 @@ Gem::Specification.new do |s| "doc/proto_rake.rdoc", "doc/rake.1", "doc/rakefile.rdoc", - "doc/rational.rdoc", + "doc/rationale.rdoc", "exe/rake", "lib/rake.rb", "lib/rake/application.rb", From cfa438b5c80872f3611ae215aa4836bd32a33a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henr=C3=A9=20Botha?= <5593874+henrebotha@users.noreply.github.com> Date: Tue, 27 May 2025 10:49:30 +0200 Subject: [PATCH 2/2] Redirect from old location The previous commit moved a page, so here we add a redirect at the old location pointing to the new. There appears to be no pre-existing mechanism to accommodate redirects, so this adds a step to the build process that copies the raw HTML representing the redirecting page into the target directory. --- Rakefile | 4 ++++ doc/_html/rational.html | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 doc/_html/rational.html diff --git a/Rakefile b/Rakefile index d778df5ff..7a6ef334a 100644 --- a/Rakefile +++ b/Rakefile @@ -29,4 +29,8 @@ RDoc::Task.new do |doc| doc.rdoc_dir = "_site" # for github pages end +task :rdoc do + sh %{cp doc/_html/*.html _site/doc/.} +end + task default: :test diff --git a/doc/_html/rational.html b/doc/_html/rational.html new file mode 100644 index 000000000..1170005bb --- /dev/null +++ b/doc/_html/rational.html @@ -0,0 +1,7 @@ + + + + +Redirecting to rationale + +