Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion script/book.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,15 @@ def save
front_matter["aliases"] = [
"/book/#{@language_code}/v#{@edition}/index.html",
"/book/#{@language_code}/v1/index.html",
"/book/#{@language_code}/index.html"
"/book/#{@language_code}/v1.html",
"/book/#{@language_code}/index.html",
"/book/#{@language_code}.html"
]
if @language_code == "en"
front_matter["aliases"].push("/book/index.html")
front_matter["aliases"].push("/book.html")
front_matter["aliases"].push("/book/v1/index.html")
front_matter["aliases"].push("/book/v1.html")
end
front_matter["book"]["front_page"] = true
front_matter["book"]["repository_url"] = "https://github.com/#{@@all_books[@language_code]}"
Expand Down
Loading