Skip to content

Navbar Adjustments #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

AristurtleDev
Copy link
Contributor

Inject Donate Into Navbar

DocFX dynamically generates the navbar on the client side through the docfx.js code, it's not something that is statically rendered when the page is built. In order for the Donate button to be placed to the left of the theme switch button like on the main monogame side, the Donate button needs to be injected after the page loads and then after the navbar is dynamically generated.

Fix Navbar Container Width

DocFX uses Bootstrap 3.4.1 while the main monogame website uses Bootstrap 5.3.2. This adjusts the navbar container only to match the max-width value of the current bootstrap version that is used on the main site so that it appears more centered.

DocFX dynamically generates the navbar on the client side through the docfx.js code, it's not something that is statically rendered when the page is built.  In order for the Donate button to be placed to the left of the theme switch button like on the main monogame side, the Donate button needs to be injected after the page loads and then after the navbar is dynamically generated.
@CartBlanche CartBlanche merged commit 2cdd3b5 into MonoGame:dominique-AddResources Feb 10, 2025
CartBlanche added a commit that referenced this pull request Feb 10, 2025
* Fix link in ReadMe.

* Add Resources to nav-bar, move Donate to button.

* Navbar Adjustments (#100)

* Inject donate into navbar
DocFX dynamically generates the navbar on the client side through the docfx.js code, it's not something that is statically rendered when the page is built.  In order for the Donate button to be placed to the left of the theme switch button like on the main monogame side, the Donate button needs to be injected after the page loads and then after the navbar is dynamically generated.

* Fix navbar container width so it matches main website

---------

Co-authored-by: Christopher Whitley <[email protected]>
Co-authored-by: Simon (Darkside) Jackson <[email protected]>
@AristurtleDev AristurtleDev deleted the aristurtle-Resources branch March 4, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants