Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add deprecation notice #109

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/bin/mdbook-catppuccin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use clap::{
ArgMatches, Command,
};
use clap_complete::{generate, Generator, Shell};
use log::warn;
use mdbook::errors::Error;
use mdbook::preprocess::{CmdPreprocessor, Preprocessor};
use semver::{Version, VersionReq};
Expand All @@ -13,6 +14,14 @@ use mdbook_catppuccin::Catppuccin;

fn main() {
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));

warn!(
r#"mdbook-catppuccin will no longer support automatic tracking of assets in the next release and this package will be deprecated.
Please uninstall this preprocessor by running 'cargo uninstall mdbook-catppuccin' and remove '[preprocessor.catppuccin]' from your 'book.toml' file.
For further information on why this package will no longer work, please refer to https://github.com/catppuccin/mdBook/issues/107.
"#
);

let matches = make_app().get_matches();

if let Some(generator) = matches.subcommand_matches("completion") {
Expand Down
Loading