🚧 Rspress 2.0 文档还在开发中
close

DocFooter eject-only

Warning

该组件是 eject-only 组件,专门为 wrap/eject 设计,不建议在 MDX 文件中直接使用

DocFooter 用于渲染文档页面底部的页脚区域,包含编辑链接、最后更新时间和上一页/下一页导航。

用法

该组件会在文档页面底部自动渲染,通常不需要手动使用。如需自定义,可通过 eject 修改:

theme/components/DocFooter/index.tsx
import { EditLink, LastUpdated, PrevNextPage } from '@rspress/core/theme';

export function DocFooter() {
  return (
    <footer className="my-doc-footer">
      <EditLink />
      <LastUpdated />
      <PrevNextPage />
      {/* 添加自定义内容 */}
    </footer>
  );
}

包含的组件

DocFooter 由以下组件组成: