Skip to content

Support Rails v6.0 document #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 42 commits into from
May 5, 2021
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
f2f318a
Create collections
toshimaru Apr 19, 2021
d05181e
Define collections
toshimaru Apr 25, 2021
313ef55
Create mkdir rake task
toshimaru Apr 25, 2021
f2eb681
Add: switch_rails method
toshimaru May 2, 2021
48722cf
Define specific_version under version
toshimaru May 2, 2021
7af781a
Enhance switch_rails
toshimaru May 2, 2021
6d8a637
mkdir && switch_rails
toshimaru May 2, 2021
251f8c7
Update submodule: v6.0.3
toshimaru May 3, 2021
9536519
Set frozen_string_literal
toshimaru May 3, 2021
6687c24
Change collection config format
toshimaru May 3, 2021
fc51f74
Use just each
toshimaru May 3, 2021
95bdd73
Float to String
toshimaru May 3, 2021
5d9f1aa
Create version directory inside src
toshimaru May 3, 2021
a39ae06
Add: generate_rails_rdoc, generate_src
toshimaru May 3, 2021
e2281a5
Add target_version to generate_src
toshimaru May 3, 2021
99f1ce7
Define INDEX_HTML
toshimaru May 3, 2021
be9cf8c
mv navigation.html
toshimaru May 3, 2021
5f413b1
collections→rails_versions
toshimaru May 4, 2021
62d7516
main: Rails v6, sub: Rails v5
toshimaru May 5, 2021
9628143
Create build_multi task
toshimaru May 5, 2021
4b99562
Set scope for Rails 5.2 path
toshimaru May 5, 2021
ba9cce8
Change navigation path
toshimaru May 5, 2021
2bc59ec
Replace link path
toshimaru May 5, 2021
8b3f31a
Replace path
toshimaru May 5, 2021
c4ac759
Add files for Rails v5.2
toshimaru May 5, 2021
7953137
Bump bootstrap from 4.5 to 4.6
toshimaru May 5, 2021
122cdd5
Set navbar-expand to header
toshimaru May 5, 2021
3fe09c8
Display version selector
toshimaru May 5, 2021
ae17110
target_rails_version→default_rails_version
toshimaru May 5, 2021
ef372d5
Add doc-build to CI
toshimaru May 5, 2021
47c465a
Add require
toshimaru May 5, 2021
55fe56e
Create symbolic link for default version
toshimaru May 5, 2021
8b8574f
Set default page.version
toshimaru May 5, 2021
3b56a72
checkout with submodule
toshimaru May 5, 2021
2aa5826
Use macOS for doc build
toshimaru May 5, 2021
d1fc82b
Bump rails: 6.0.3→6.0.3.6
toshimaru May 5, 2021
ad064b3
sed shell script → ruby File read/write
toshimaru May 5, 2021
6fb4413
Revert "Use macOS for doc build"
toshimaru May 5, 2021
00aa5d6
switch_default_rails→build
toshimaru May 5, 2021
79ac42a
Revert "switch_default_rails→build"
toshimaru May 5, 2021
0c40dad
Update ci.yml
toshimaru May 5, 2021
3eea9fd
Generate Rails v6.0 doc
toshimaru May 5, 2021
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
Prev Previous commit
Next Next commit
Replace path
  • Loading branch information
toshimaru committed May 5, 2021
commit 8b3f31ae4fd50f677c37412a264a2c305d8552ad
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ def generate_src(target_version: nil)
if target_version.nil?
mv 'navigation.html', '_includes/navigation.html', force: true
else
# Replace absolute path in navigation.html
content = File.read("navigation.html")
content.gsub!("<a href=\"/", "<a href=\"/#{target_version}/")
File.write("navigation.html", content)

mv 'navigation.html', "../_includes/navigation#{target_version}.html", force: true
end
end
Expand Down