{"id":16724291,"url":"https://github.com/badboy/mdbook-last-changed","last_synced_at":"2026-03-10T02:33:26.524Z","repository":{"id":62427726,"uuid":"553785279","full_name":"badboy/mdbook-last-changed","owner":"badboy","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-19T15:07:51.000Z","size":1554,"stargazers_count":18,"open_issues_count":2,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-04T10:33:33.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://badboy.github.io/mdbook-last-changed/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/badboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-18T19:09:43.000Z","updated_at":"2025-11-19T15:07:40.000Z","dependencies_parsed_at":"2024-10-28T11:34:29.022Z","dependency_job_id":"b71b7382-5d26-4993-968e-3f2770e9f914","html_url":"https://github.com/badboy/mdbook-last-changed","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"9660612724514aa6e8f78b719c36a1c943033b1f"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/badboy/mdbook-last-changed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fmdbook-last-changed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fmdbook-last-changed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fmdbook-last-changed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fmdbook-last-changed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badboy","download_url":"https://codeload.github.com/badboy/mdbook-last-changed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fmdbook-last-changed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30322645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T22:44:42.072Z","updated_at":"2026-03-10T02:33:26.501Z","avatar_url":"https://github.com/badboy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mdbook-last-changed\n\nA preprocessor for [mdbook][] to add a page's last change date and a link to the commit on every page.\n\n[mdbook]: https://github.com/rust-lang/mdBook\n\nIt adds a \"Last change\" footer, including a date and a link to the corresponding commit.\nIt uses the configured `git-repository-url` as the base.\n\n## Requirements\n\n* The `git` command line tool.\n* Access to the git repository checkout while building your book.\n\n## Installation\n\nIf you want to use only this preprocessor, install the tool:\n\n```\ncargo install mdbook-last-changed\n```\n\nAdd it as a preprocessor to your `book.toml`:\n\n```toml\n[preprocessor.last-changed]\ncommand = \"mdbook-last-changed\"\nrenderer = [\"html\"]\n```\n\n## Configuration\n\n`mdbook-last-changed` is configured using additional options under `[output.html]`:\n\n\n```toml\n[output.html]\n# Optional: Your repository URL used in the link.\ngit-repository-url = \"https://github.com/$user/$project\"\n```\n\nIf `git-repository-url` is not configured the footer will not contain the commit and a link to it and instead only show the last changed date.\n\nWithout `git-repository-url` configured:\n```HTML\n\u003cfooter id=\"last-change\"\u003eLast change: \u003ctime datetime=\"2023-07-09\"\u003e2023-07-09\u003c/time\u003e\u003c/footer\u003e\n```\n\nWith `git-repository-url` configured:\n```HTML\n\u003cfooter id=\"last-change\"\u003eLast change: \u003ctime datetime=\"2023-07-09\"\u003e2023-07-09\u003c/time\u003e, commit: \u003ca href=\"https://github.com/$user/$project/commit/$commit\"\u003e0000000\u003c/a\u003e\u003c/footer\u003e\n```\n\nTo style the footer add a custom CSS file for your HTML output:\n\n```toml\n[output.html]\nadditional-css = [\"last-changed.css\"]\n```\n\nAnd in `last-changed.css` style the `\u003cfooter\u003e` element or directly the CSS element id `last-changed`:\n\n```css\nfooter {\n  font-size: 0.8em;\n  text-align: center;\n  border-top: 1px solid black;\n  padding: 5px 0;\n}\n```\n\nThis code block shrinks the text size, center-aligns it under the rest of the content\nand adds a small horizontal bar above the text to separate it from the page content.\n\n\nFinally, build your book as normal:\n\n```\nmdbook path/to/book\n```\n\n## License\n\nMPL. See [LICENSE](LICENSE).  \nCopyright (c) 2022 Jan-Erik Rediger \u003cjanerik@fnordig.de\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadboy%2Fmdbook-last-changed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadboy%2Fmdbook-last-changed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadboy%2Fmdbook-last-changed/lists"}