Feature Request: Basic enhancements required #1985
fmunteanu
started this conversation in
Feature Requests
Replies: 2 comments
-
CC @lorenzolewis for visibility. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Related to Header.astro, I'm wondering why
Basically, I would like to determine if a
In my local tests, everything works as expected. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.24.0
What is your idea?
Coming from Hugo, I find Astro combined with Starlight theme to bring several enhancements. However, I believe there are few basic but quite important neglected features, all related to Header.astro.
Page Width
The current page format is unrealistic. Example:
I had to add into custom CSS the following value, to address the format (which should be implemented by default):
End-user should have the ability to:
Slots missing in Header.astro
I understand the Astro concept, allowing end-user to overwrite a specific component. Still, this forces developers to add modifications to source code, which can be easily fixed by adding slots into key Header.astro locations.
Proposed Header.astro slots:
project
title, similar to https://docs.astro.build.weight
, right now is technically impossible to move for example the search bar next toSocialIcons
without creating a completely custom Header.astro file (blocker for new release versions). See below the Menus suggestion.Example of search bar modification, requiring the creation of an entire Header.astro component, just to add
md:w-64 place-self-end
classes (I personally don't see why the search bar input exists, since there is a new popup opening, maybe is related to Algolia plugin behaviour, a simple 🔍 icon should suffice):Menus
Right now there is no way in Starlight to define specific menus, to be used into specific sub-directories. Logic example in Hugo,
main
represents the ID associated, I can define additional menus, for examplemenus.project
which will be displayed when I visit the/docs/project
link (note theweight
, allowing end-user to easily define the location/order of each menu parent category into header).Hugo is also flexible with the displayed page link, by setting the
pageRef
to/wiki
directory, while displaying the titleDocumentation
into menu:From my perspective, all the above detailed points are important missing features in Astro Starlight.
Why is this feature necessary?
See above explained details.
Do you have examples of this feature in other projects?
Hugo website which I intend to migrate to Starlight.
Participation
Beta Was this translation helpful? Give feedback.
All reactions