crossplane / docs

Repo for Crossplane documentation.
https://docs.crossplane.io
Other
46 stars 105 forks source link

[Web Bug] - Composition Functions #771

Open joebowbeer opened 1 month ago

joebowbeer commented 1 month ago

Clicking on View page source returns 404

URL: https://docs.crossplane.io/latest/concepts/composition-functions/

YashPimple commented 1 month ago

Hi @joebowbeer I guess this is the proper url you should be looking for to find composition functions section https://github.com/crossplane/docs/blob/master/content/master/concepts/composition-functions.md

joebowbeer commented 1 month ago

I agree. I'm editing that page now.

How to fix the View page source links on the latest docs, like the one in the lower right of the page below?

https://docs.crossplane.io/latest/concepts/composition-functions/

It is the latest path that is broken. Other variants of this page, such as master, v1.15, etc., render a valid URL.

plumbis commented 1 month ago

This link is generated here: https://github.com/crossplane/docs/blob/3bffefad20f2eb4fcfc99e07e93543213fb0fadb/themes/geekboot/layouts/partials/single-list.html#L60

The problem is that it's using the "path" instead of the version to determine the directory, so it fails for latest