vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
12.89k stars 2.08k forks source link

Allow footer compatible with sidebar #1037

Open Otto-J opened 2 years ago

Otto-J commented 2 years ago

Is your feature request related to a problem? Please describe.

Now footer and sidebar cannot be used at the same time. We hope they can appear at the same time.

Describe the solution you'd like

Describe alternatives you've considered

If allowed, maybe I can provide a PR?

Additional context

No response

Validations

Otto-J commented 2 years ago

footer support v-html now https://github.com/vuejs/vitepress/pull/1034#issue-1313570701

brc-dd commented 2 years ago

It doesn't look nice with sidebar, that's why its not there. If you want to create a PR, then make it optional to enable footer (using frontmatter or some theme config) on doc pages.

xsjcTony commented 1 year ago

Yeah honestly it would be good, especially if we need to display some must-have copyright info or something else.

rocex commented 3 months ago

Here's how I solved it in .vitepress\theme\style.css add this

footer.VPFooter {
    display: block !important;
}