docs: added timestamp generation for footer

This commit is contained in:
Richard Moore 2022-12-11 03:04:23 -05:00
parent 40f64b4db3
commit 04dd528586

View File

@ -1,6 +1,8 @@
import * as ethers from "../lib.esm/index.js";
import { version } from "../lib.esm/_version.js";
import { getModifiedTime } from "../lib.esm/_admin/utils/git.js";
const title = "ethers";
const subtitle = (function(version) {
@ -22,6 +24,9 @@ export default {
},
srcBaseUrl: "https:/\/github.com/ethers-io/ethers.js/blob/v6-beta-exports/src.ts/{FILENAME}#L{LINENO}",
getTimestamp: function(path) {
return getModifiedTime(path);
},
docRoot: ".",