I'm a bit lost now.
I see 4 way to go about it:

1.  Use only major.minor version.

2.  Have different file for major/minor version and revision version.

3.  Create a version of the documentation per revision version.

4.  Change the behavior server side.

1) I could put a regex which doesn't feel right, but would work
2) I'm not sure what impact and what kind of headache that will cause later on
3) I don't know what are the plan for documentation versioning , if the 1.2 will be the same than 1.2.25 or not etc..
4) What about redirecting ```x.y.z``` to ```x.y``` on the server side and ask ourself this question when an actual problem appears?