hydephp / develop

The HydePHP Source Code Monorepo
https://hydephp.com
MIT License
12 stars 6 forks source link

Support setting custom navigation links in the YAML configuration #1790

Open caendesilva opened 1 week ago

caendesilva commented 1 week ago

Splitting this out so that we have one issue for authors and one for navigation links

Originally posted by @caendesilva in https://github.com/hydephp/develop/issues/1719#issuecomment-2211720897


From the docs:

Note that YAML settings cannot call any PHP functions, so you can't access helpers like env() for environment variables, nor declare authors or navigation links, as you cannot use facades and objects. https://hydephp.com/docs/1.x/customization

We should find a way to support authors and navigation links from here, possibly by matching input arrays to constructors. We may want to do this in v2 as the navigation system is reworked, so we don't introduce a change that will be broken soon.

caendesilva commented 1 week ago

See sister issue https://github.com/hydephp/develop/issues/1719