linkml / linkml-registry

Registry of schemas that use LinkML
https://linkml.github.io/linkml-registry/registry/
11 stars 3 forks source link

"Edit on GitHub" button points to master/ rather than main/ #17

Open nlharris opened 4 months ago

nlharris commented 4 months ago

on https://linkml.io/linkml-registry/registry/

nlharris commented 4 months ago

I thought it would be easy to find where this is set but I don't see it in the code.

gaurav commented 4 months ago

@nlharris I think you need to set edit_uri in mkdocs.yml.

nlharris commented 4 months ago

Thanks, @gaurav! So potentially the fix would be to add edit_uri: edit/main/src/docs/ to mkdocs.yml.

However, it's not quite that simple: the edit link from https://linkml.io/linkml-registry/ goes to https://github.com/linkml/linkml-registry/edit/master/docs/index.md, so with the edit_uri added, it would instead point to https://github.com/linkml/linkml-registry/edit/main/src/docs/index.md -- but that doesn't exist either. There's no index.md in the repo; it must be created dynamically when the site is built?