# docsify-updated **Repository Path**: pfeak/docsify-updated ## Basic Information - **Project Name**: docsify-updated - **Description**: 为 docsify markdown 添加更新时间。 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2022-05-23 - **Last Updated**: 2024-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # docsify-updated   [](https://www.jsdelivr.com/package/npm/docsify-updated) Add update time for each of your docsify markdown ([English](./README.md)/[中文](./zh-README.md)). ## Install add js CDN to `index.html` ```javascript ``` or ```javascript ``` ## Usage Add javasript to `index.html`, and you can modify the content of the text field arbitrarily ```javascript window.$docsify = { timeUpdater: { text: ">last update time: {docsify-updated}", formatUpdated: "{YYYY}/{MM}/{DD}", whereToPlace: "bottom", // "top" or "bottom", default to "bottom" }, }; ``` or ```javascript window.$docsify = { timeUpdater: { text: ">最后更新时间: {docsify-updated}", formatUpdated: "{YYYY}/{MM}/{DD}", whereToPlace: "bottom", // "top" or "bottom", default to "bottom" }, }; ``` ## Parameter | Field | Describe | Detail | | :-----------: | ----------------------------------- | ------------------------------------------------------------ | | text | label style to show | *text* stores the style and content before the *formatUpdated* | | formatUpdated | updated time format and it's suffix | *formatUpdated* stores time formated and it's suffix, eg. {YYYY}/{MM}/{DD} by Author | | whereToPlace | where the label is placed | "top" or "bottom", default to "bottom" | ## Time Patterns please see [https://github.com/lukeed/tinydate#patterns](https://github.com/lukeed/tinydate#patterns) - `{YYYY}`: full year; eg: **2017** - `{YY}`: short year; eg: **17** - `{MM}`: month; eg: **04** - `{DD}`: day; eg: **01** - `{HH}`: hours; eg: **06** (24h) - `{mm}`: minutes; eg: **59** - `{ss}`: seconds; eg: **09** - `{fff}`: milliseconds; eg: **555** ## Nested modify `timeUpdater.text` to nest HTML ```javascript window.$docsify = { timeUpdater: { text: "