Socket
Book a DemoInstallSign in
Socket

gitbook-plugin-last-update-time

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-last-update-time

Gitbook 插件, 自动为标题栏添加当前时间以及在页脚位置添加最后更新时间

1.1.5
latest
Source
npmnpm
Version published
Weekly downloads
6
500%
Maintainers
0
Weekly downloads
 
Created
Source

欢迎访问 gitbook-plugin-last-update-time 官网 👋

npm:version npm:download npm:prerequisite npm:license github:snodreams1006 微信公众号:雪之梦技术驿站-brightgreen.svg

Gitbook 插件, 自动为标题栏添加当前时间以及在页脚位置添加最后更新时间

效果

last-update-time-use-preview.png

用法

Step #1 - 更新 book.json 配置文件

  • book.json 配置文件中,添加 last-update-timeplugins 列表.
  • book.json 配置文件中,配置 pluginsConfig 对象.
{
    "plugins": ["last-update-time"],
    "pluginsConfig": {
        "last-update-time": {
            "label": "最后更新时间: ",
            "format": "YYYY-MM-DD HH:mm:ss"
        }
    }
}

其中,配置参数含义如下:

  • label : [可选] 页脚位置当前时间说明,默认最后更新时间:
  • format : [可选] 页脚位置当前时间格式,默认YYYY-MM-DD HH:mm:ss,更多自定义格式请参考: Moment.js

Step #2 - 运行 gitbook 相关命令

  • 运行 gitbook install 命令安装到本地项目
# 方式一: gitbook安装插件
$ gitbook install

# 方式二: npm直接安装
$ npm i gitbook-plugin-last-update-time
  • 运行 gitbook build 命令构建本地项目或者 gitbook serve 启动本地服务.
$ gitbook build

或者

$ gitbook serve

示例

不仅 gitbook-plugin-last-update-time 官方文档已整合 last-update-time 版权保护插件,此外还提供了示例项目,详情参考 example 目录.

作者

👤 snowdreams1006

🤝 贡献

如果你想贡献自己的一份力量,欢迎提交 Issues 或者 Pull Request 请求!

支持

如果本项目对你有所帮助,欢迎 ⭐️ gitbook-plugin-last-update-time 项目,感谢你的支持与认可!

📝 版权

Copyright © 2019 snowdreams1006.

This project is MIT licensed.

Keywords

gitbook-plugin-last-update-time

FAQs

Package last updated on 08 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.