Skip to content

Commit

Permalink
feat: last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
julio4 committed Nov 22, 2023
1 parent 232cc95 commit 0eda034
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/install-mdbook/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ runs:
run: cargo install mdbook --locked --version 0.4.28
shell: bash

- name: Install mdbook-i18n-helpers
run: cargo install mdbook-i18n-helpers --locked --version 0.1.0
- name: Install mdbook-last-changed
run: cargo install mdbook-last-changed --locked --version 0.1.4
shell: bash
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Starknet by Example is a collection of examples of how to use the [Cairo](https:
1. Clone this repository.
2. Rust related packages:
- Install toolchain providing `cargo` using [rustup](https://rustup.rs/).
- Install [mdBook](https://rust-lang.github.io/mdBook/guide/installation.html).
- Install [mdBook](https://rust-lang.github.io/mdBook/guide/installation.html) and the required extension with `cargo install mdbook mdbook-last-changed`.
3. Install `scarb` using [asdf](https://asdf-vm.com/) with `asdf install`. Alternatively, you can install `scarb` manually by following the instructions [here](https://docs.swmansion.com/scarb/).

### Local development
Expand Down
7 changes: 6 additions & 1 deletion book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ extra-watch-dirs = ["listings"]
[preprocessor.gettext]
after = ["links"]

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

[output.html]
git-repository-url = "https://github.com/NethermindEth/StarknetByExample/"
edit-url-template = "https://github.com/NethermindEth/StarknetByExample/edit/main/{path}"
playground.runnable = false
fold.enable = true
fold.level = 2
fold.level = 2
additional-css = ["theme/css/last-changed.css"]
5 changes: 5 additions & 0 deletions theme/css/last-changed.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
footer {
font-size: 0.8em;
text-align: right;
padding: 10px 0;
}

0 comments on commit 0eda034

Please sign in to comment.