docs: add version switcher to docs page#10135
Open
paulbalandan wants to merge 1 commit intocodeigniter4:developfrom
Open
docs: add version switcher to docs page#10135paulbalandan wants to merge 1 commit intocodeigniter4:developfrom
paulbalandan wants to merge 1 commit intocodeigniter4:developfrom
Conversation
Contributor
|
Since this is not any change to the framework code, I think develop is the right branch for this. Just one thing that caught me was the text color of the selected item. As you can see in the On Load screenshot, the currently selected item is be kind of less visible than the above CodeIgniter logo. Idk how the theming works in the docs, but from a general viewer's perspective, it would be nicer if the Local build or any selected item's text color would be white. Also, if possible, then maybe capitalize the first letter of each word? |
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Implements a switch in the documentation page to allow us to switch between the (1) stable version hosted at https://codeigniter.com/user_guide/ and (2) latest (in-progress) hosted at https://codeigniter4.github.io/userguide/. If a local build, another option will also be displayed. The CSS theme uses the already supplied CSS by RTD.
On load:

When clicked:

I'm not sure if this should be in
developor on4.8. Happy to change if needed.Checklist: