Compare commits
No commits in common. "main" and "0.4.4" have entirely different histories.
@ -1,8 +0,0 @@
|
|||||||
target/
|
|
||||||
.git/
|
|
||||||
.gitignore
|
|
||||||
Dockerfile
|
|
||||||
.dockerignore
|
|
||||||
README.md
|
|
||||||
.env
|
|
||||||
*.md
|
|
||||||
22
CHANGELOG.md
22
CHANGELOG.md
@ -6,7 +6,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
|
|||||||
[Semantic Versioning](https://semver.org/lang/en/).
|
[Semantic Versioning](https://semver.org/lang/en/).
|
||||||
|
|
||||||
|
|
||||||
## v0.4.4 - 2026-03-29
|
## [0.4.4] - 2026-03-29
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed removing newlines.
|
- Fixed removing newlines.
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
## v0.4.3 - 2026-03-28
|
## [0.4.3] - 2026-03-28
|
||||||
### Changed
|
### Changed
|
||||||
- Change footer.
|
- Change footer.
|
||||||
|
|
||||||
@ -22,14 +22,14 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## v0.4.2 - 2026-03-27
|
## [0.4.2] - 2026-03-27
|
||||||
### Added
|
### Added
|
||||||
- Added version and project name in footer.
|
- Added version and project name in footer.
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## v0.4.1 - 2026-03-26
|
## [0.4.1] - 2026-03-26
|
||||||
### Fixed
|
### Fixed
|
||||||
- Added support for rendering individual files, not just directories (e.g.,
|
- Added support for rendering individual files, not just directories (e.g.,
|
||||||
`mdpreview dir/file.md`).
|
`mdpreview dir/file.md`).
|
||||||
@ -39,7 +39,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
## v0.4.0 - 2026-03-25
|
## [0.4.0] - 2026-03-25
|
||||||
### Added
|
### Added
|
||||||
- Added a button to copy the edit command (`note edit current_note.md`).
|
- Added a button to copy the edit command (`note edit current_note.md`).
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
## v0.3.0 - 2026-03-24
|
## [0.3.0] - 2026-03-24
|
||||||
### Added
|
### Added
|
||||||
- Added the `--random` flag to open the browser on a random page when used with
|
- Added the `--random` flag to open the browser on a random page when used with
|
||||||
`--browser` (`--browser --random`).
|
`--browser` (`--browser --random`).
|
||||||
@ -56,7 +56,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
## v0.2.1 - 2026-03-23
|
## [0.2.1] - 2026-03-23
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed an issue where listening on port 0 (`--port 0`) caused the browser to
|
- Fixed an issue where listening on port 0 (`--port 0`) caused the browser to
|
||||||
open the wrong port.
|
open the wrong port.
|
||||||
@ -65,7 +65,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
## v0.2.0 - 2026-03-23
|
## [0.2.0] - 2026-03-23
|
||||||
### Added
|
### Added
|
||||||
- Added the `--browser` flag to automatically open the page in the browser.
|
- Added the `--browser` flag to automatically open the page in the browser.
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
## v0.1.3 - 2026-03-23
|
## [0.1.3] - 2026-03-23
|
||||||
### Added
|
### Added
|
||||||
- Added a "Random File" button to the header.
|
- Added a "Random File" button to the header.
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
## v0.1.2 - 2026-03-22
|
## [0.1.2] - 2026-03-22
|
||||||
### Added
|
### Added
|
||||||
- Added a "Random File" button.
|
- Added a "Random File" button.
|
||||||
- Added an "On Main" button.
|
- Added an "On Main" button.
|
||||||
@ -102,6 +102,6 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
## v0.1.1 - 2026-03-21
|
## [0.1.1] - 2026-03-21
|
||||||
### Added
|
### Added
|
||||||
- Added page titles.
|
- Added page titles.
|
||||||
|
|||||||
43
Dockerfile
43
Dockerfile
@ -1,43 +0,0 @@
|
|||||||
FROM rust:1.94 AS chef
|
|
||||||
|
|
||||||
RUN cargo install --locked cargo-chef
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY Cargo.toml Cargo.lock .
|
|
||||||
RUN mkdir src && touch src/main.rs
|
|
||||||
|
|
||||||
RUN cargo chef prepare --recipe-path recipe.json
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM chef AS builder
|
|
||||||
|
|
||||||
COPY --from=chef /app/recipe.json recipe.json
|
|
||||||
|
|
||||||
RUN cargo chef cook --release --recipe-path recipe.json
|
|
||||||
|
|
||||||
|
|
||||||
COPY rust-toolchain.toml rust-toolchain.toml
|
|
||||||
|
|
||||||
RUN cargo fetch
|
|
||||||
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN cargo build --release
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM debian:bookworm-slim AS runtime
|
|
||||||
|
|
||||||
RUN useradd -m -s /bin/bash appuser
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY --from=builder /app/target/release/mdpreview /usr/local/bin/mdpreview
|
|
||||||
|
|
||||||
USER appuser
|
|
||||||
|
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
CMD ["mdpreview"]
|
|
||||||
@ -1,3 +1,3 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "stable"
|
channel = "stable"
|
||||||
components = ["clippy", "rustfmt"]
|
components = ["clippy", "rustfmt", "chef"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user