Skip to content

Commit 999011e

Browse files
committed
Remove minor version from the URL.
So, links for version `x.y.z` will be under the `/x.y/` prefix. Thus, links to previous minor versions will not be broken when a new one is released.
1 parent 306fa72 commit 999011e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ffdocs/view/website.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def path_for(obj)
240240
@website_files[obj_key] ||=
241241
case obj
242242
in ::FFDocs::SourceDocs::VersionTag
243-
@output.join(InvalidPathName.check!(obj.version))
243+
@output.join(InvalidPathName.check!(obj.major))
244244

245245
in ::FFDocs::SourceDocs::Group
246246
[ obj.component, obj.media_type ].

0 commit comments

Comments
 (0)