How to move the "generator" to right side of footer #8003
santaimpersonator
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Result
This is definitely use case specific for our needs, but in case anyone else is also interested:

Reasoning for Use
In our
mkdocs.ymlconfiguration file, we include our street address with our company name and copyright. (This was mostly to match our website)This makes the footer uneven, when the "generator" is displayed:

Modification
This is accomplished through the use of modifications to the partials
*.htmlfiles in the~/overrides/partialsdirectory andextra.cssstylesheet in the~/docs/stylesheetdirectory:extra.csscopyright.htmlsocials.htmlcreate
generator.htmlImplementation of Feature
In the
mkdocs.ymlconfiguration file, users can provide three values for thegeneratorargument, which includes the functionality from the original implementationtruefalserightBy declaring the
rightvalue, the generator will now relocate to beneath the social icons:Considerations
Something for users to consider, this implementation also changes how the footer appears on mobile devices. Examples, are shown in the table below:
rightvalueBeta Was this translation helpful? Give feedback.
All reactions