Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
add last-changed preprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Jan 3, 2024
1 parent 7aabe29 commit 3298f69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
uses: actions/configure-pages@v4

- run: |
cargo install mdbook-last-changed
if ! command -v mdbook-last-changed; then
cargo install mdbook-last-changed
fi
mdbook build
- name: Upload artifact
Expand Down
4 changes: 4 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ page-break = true # insert page-break after each chapter

[output.html.search]
enable = true

[preprocessor.last-changed]
command = "mdbook-last-changed"
renderer = ["html"]

0 comments on commit 3298f69

Please sign in to comment.