diff --git a/.envrc b/.envrc deleted file mode 100644 index 86b0cca..0000000 --- a/.envrc +++ /dev/null @@ -1,2 +0,0 @@ -use flake . -layout node diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 27c207f..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,12 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "cargo" # See documentation for possible values - directory: "/" # Location of package manifests - schedule: - interval: "monthly" - open-pull-requests-limit: 5 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ec3f37..f43ba64 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,129 +1,30 @@ -# Copyright (c) 2023 Catppuccin -# Copyright (c) 2015 Andrew Gallant - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - name: build on: workflow_dispatch: push: - branches: - - main - paths: - - "src/**" - - "Cargo.toml" - - "Cargo.lock" + branches: ["main"] pull_request: -env: - BINARY: mdbook-catppuccin - jobs: build: - runs-on: ${{ matrix.os }} - env: - CARGO: cargo - # When CARGO is set to CROSS, this is set to `--target matrix.target`. - TARGET_FLAGS: '' - # When CARGO is set to CROSS, TARGET_DIR includes matrix.target. - TARGET_DIR: ./target - # Emit backtraces on panics. - RUST_BACKTRACE: 1 - defaults: - run: - shell: bash - strategy: - fail-fast: false - matrix: - build: - - linux-gnu - - linux-arm - - macos - - win-msvc - include: - - build: linux-gnu - os: ubuntu-22.04 - rust: nightly - target: x86_64-unknown-linux-gnu - - build: linux-arm - os: ubuntu-22.04 - rust: nightly - target: arm-unknown-linux-gnueabihf - - build: macos - os: macos-12 - rust: nightly - target: x86_64-apple-darwin - - build: win-msvc - os: windows-2022 - rust: nightly - target: x86_64-pc-windows-msvc - + runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v4 - - - name: Install Packages (Ubuntu) - if: matrix.os == 'ubuntu-22.04' - run: sudo apt-get update && sudo apt-get install -y --no-install-recommends musl-tools - - - name: Install Rust - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - - - name: Cache Rust - uses: Swatinem/rust-cache@v2 + - name: Setup PNPM + uses: pnpm/action-setup@v3 + - name: Setup Node + uses: actions/setup-node@v4 with: - key: ${{ matrix.rust }} - - - name: Use Cross - if: matrix.os == 'ubuntu-22.04' && matrix.target != '' - run: | - cargo install cross --git https://github.com/cross-rs/cross - echo "CARGO=cross" >> $GITHUB_ENV - echo "TARGET_FLAGS=--target ${{ matrix.target }}" >> $GITHUB_ENV - echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV - - - name: Show Cargo Command - run: | - echo "cargo command is: ${{ env.CARGO }}" - echo "target flag is: ${{ env.TARGET_FLAGS }}" - echo "target dir is: ${{ env.TARGET_DIR }}" - - - name: Compile - run: ${{ env.CARGO }} build --release --verbose ${{ env.TARGET_FLAGS }} - - - name: Strip Binary (linux and macos) - if: matrix.build == 'linux-musl' || matrix.build == 'linux-gnu' || matrix.build == 'macos' - run: strip "${{ env.TARGET_DIR }}/release/${{ env.BINARY }}" - - - name: Strip Binary (linux-arm) - if: matrix.build == 'linux-arm' - run: | - docker run --rm -v \ - "$PWD/target:/target:Z" \ - rustembedded/cross:arm-unknown-linux-gnueabihf \ - arm-linux-gnueabihf-strip \ - /target/arm-unknown-linux-gnueabihf/release/${{ env.BINARY }} - - - name: Create Artifact - id: create-artifact - run: | - if [ "${{ matrix.os }}" == "windows-2022" ]; then - echo "name=${{ env.TARGET_DIR }}/release/${{ env.BINARY }}.exe" >> $GITHUB_OUTPUT - else - echo "name=${{ env.TARGET_DIR }}/release/${{ env.BINARY }}" >> $GITHUB_OUTPUT - fi - - - name: Upload Artifact - uses: actions/upload-artifact@v3 + node-version: "lts/*" + cache: "pnpm" + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm build + - name: Upload CSS + uses: actions/upload-artifact@v4 with: - name: ${{ env.BINARY }}-${{ matrix.target }} - path: ${{ steps.create-artifact.outputs.name }} + name: "catppuccin-mdbook-css-files" + path: dist/ diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml deleted file mode 100644 index 011c2d4..0000000 --- a/.github/workflows/cachix.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Build and populate cache - -on: - push: - branches: [main] - paths: - - "src/**" - - "Cargo.toml" - - "Cargo.lock" - - "flake.nix" - - "flake.lock" - pull_request: - paths: - - "src/**" - - "Cargo.toml" - - "Cargo.lock" - - "flake.nix" - - "flake.lock" - -jobs: - build: - strategy: - matrix: - os: ["ubuntu-latest", "macos-latest"] - - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v4 - - - uses: cachix/install-nix-action@v23 - with: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - - - name: Setup cachix - uses: cachix/cachix-action@v12 - with: - name: "catppuccin" - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - - name: Flake check - run: nix flake check - - - name: Build package - run: nix build -L . diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec5381d..1f403d5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,14 +1,4 @@ -# Copyright (c) 2023 Catppuccin -# Copyright (c) 2015 Andrew Gallant - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -name: build-and-release +name: release on: workflow_dispatch: @@ -16,9 +6,6 @@ on: branches: - main -env: - BINARY: mdbook-catppuccin - permissions: contents: write pull-requests: write @@ -30,121 +17,28 @@ jobs: release_created: ${{ steps.release.outputs.release_created }} tag_name: ${{ steps.release.outputs.tag_name }} steps: - - uses: google-github-actions/release-please-action@v3 + - uses: googleapis/release-please-action@v4 id: release - with: - command: manifest build: needs: ["release-please"] if: needs.release-please.outputs.release_created - runs-on: ${{ matrix.os }} - env: - CARGO: cargo - # When CARGO is set to CROSS, this is set to `--target matrix.target`. - TARGET_FLAGS: '' - # When CARGO is set to CROSS, TARGET_DIR includes matrix.target. - TARGET_DIR: ./target - # Emit backtraces on panics. - RUST_BACKTRACE: 1 - defaults: - run: - shell: bash - strategy: - fail-fast: false - matrix: - build: - - linux-gnu - - linux-arm - - macos - - win-msvc - include: - - build: linux-gnu - os: ubuntu-22.04 - rust: nightly - target: x86_64-unknown-linux-gnu - - build: linux-arm - os: ubuntu-22.04 - rust: nightly - target: arm-unknown-linux-gnueabihf - - build: macos - os: macos-12 - rust: nightly - target: x86_64-apple-darwin - - build: win-msvc - os: windows-2022 - rust: nightly - target: x86_64-pc-windows-msvc - + runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v4 - - - name: Install Packages (Ubuntu) - if: matrix.os == 'ubuntu-22.04' - run: sudo apt-get update && sudo apt-get install -y --no-install-recommends musl-tools - - - name: Install Rust - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - - - name: Cache Rust - uses: Swatinem/rust-cache@v2 + - name: Setup PNPM + uses: pnpm/action-setup@v3 + - name: Setup Node + uses: actions/setup-node@v4 with: - key: ${{ matrix.rust }} - - - name: Use Cross - if: matrix.os == 'ubuntu-22.04' && matrix.target != '' - run: | - cargo install cross --git https://github.com/cross-rs/cross - echo "CARGO=cross" >> $GITHUB_ENV - echo "TARGET_FLAGS=--target ${{ matrix.target }}" >> $GITHUB_ENV - echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV - - - name: Show Cargo Command - run: | - echo "cargo command is: ${{ env.CARGO }}" - echo "target flag is: ${{ env.TARGET_FLAGS }}" - echo "target dir is: ${{ env.TARGET_DIR }}" - - - name: Compile - run: ${{ env.CARGO }} build --release --verbose ${{ env.TARGET_FLAGS }} - - - name: Strip Binary (linux and macos) - if: matrix.build == 'linux-musl' || matrix.build == 'linux-gnu' || matrix.build == 'macos' - run: strip "${{ env.TARGET_DIR }}/release/${{ env.BINARY }}" - - - name: Strip Binary (linux-arm) - if: matrix.build == 'linux-arm' - run: | - docker run --rm -v \ - "$PWD/target:/target:Z" \ - rustembedded/cross:arm-unknown-linux-gnueabihf \ - arm-linux-gnueabihf-strip \ - /target/arm-unknown-linux-gnueabihf/release/${{ env.BINARY }} - - - name: Create Artifact - id: create-artifact - run: | - staging="${{ env.BINARY }}-${{ matrix.target }}" - mkdir "$staging" - cp LICENSE "$staging/" - - if [ "${{ matrix.os }}" == "windows-2022" ]; then - artifact="${{ env.TARGET_DIR }}/release/${{ env.BINARY }}.exe" - cp "$artifact" "$staging/" - 7z a "$staging.zip" "$staging" - echo "asset=$staging.zip" >> $GITHUB_OUTPUT - else - artifact="${{ env.TARGET_DIR}}/release/${{ env.BINARY }}" - cp "$artifact" "$staging/" - tar czf "$staging.tar.gz" "$staging" - echo "asset=$staging.tar.gz" >> $GITHUB_OUTPUT - fi - + node-version: "lts/*" + cache: "pnpm" + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm build - name: Upload Artifacts to Release - run: gh release upload ${{ needs.release-please.outputs.tag_name }} ${{ steps.create-artifact.outputs.asset }} + run: gh release upload ${{ needs.release-please.outputs.tag_name }} dist/*.css env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index adae25e..4704c50 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,7 @@ -# Generated by Cargo -# will have compiled files and executables -/target/ - -# These are backup files generated by rustfmt -**/*.rs.bk - -# Added by cargo -/target - # node node_modules/ - -# nix -result +dist/ # ide -.vscode \ No newline at end of file +.vscode +.idea \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock deleted file mode 100644 index eaf7c9a..0000000 --- a/Cargo.lock +++ /dev/null @@ -1,364 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "aho-corasick" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" -dependencies = [ - "memchr", -] - -[[package]] -name = "anstream" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ab91ebe16eb252986481c5b62f6098f3b698a45e34b5b98200cf20dd2484a44" -dependencies = [ - "anstyle", - "anstyle-parse", - "anstyle-query", - "anstyle-wincon", - "colorchoice", - "utf8parse", -] - -[[package]] -name = "anstyle" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b84bf0a05bbb2a83e5eb6fa36bb6e87baa08193c35ff52bbf6b38d8af2890e46" - -[[package]] -name = "anstyle-parse" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333" -dependencies = [ - "utf8parse", -] - -[[package]] -name = "anstyle-query" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" -dependencies = [ - "windows-sys 0.48.0", -] - -[[package]] -name = "anstyle-wincon" -version = "3.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0699d10d2f4d628a98ee7b57b289abbc98ff3bad977cb3152709d4bf2330628" -dependencies = [ - "anstyle", - "windows-sys 0.48.0", -] - -[[package]] -name = "clap" -version = "4.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac495e00dcec98c83465d5ad66c5c4fabd652fd6686e7c6269b117e729a6f17b" -dependencies = [ - "clap_builder", -] - -[[package]] -name = "clap_builder" -version = "4.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c77ed9a32a62e6ca27175d00d29d05ca32e396ea1eb5fb01d8256b669cec7663" -dependencies = [ - "anstream", - "anstyle", - "clap_lex", - "strsim", -] - -[[package]] -name = "clap_complete" -version = "4.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bffe91f06a11b4b9420f62103854e90867812cd5d01557f853c5ee8e791b12ae" -dependencies = [ - "clap", -] - -[[package]] -name = "clap_lex" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1" - -[[package]] -name = "colorchoice" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" - -[[package]] -name = "env_logger" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580" -dependencies = [ - "humantime", - "is-terminal", - "log", - "regex", - "termcolor", -] - -[[package]] -name = "hermit-abi" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc" - -[[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - -[[package]] -name = "is-terminal" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "261f68e344040fbd0edea105bef17c66edf46f984ddb1115b775ce31be948f4b" -dependencies = [ - "hermit-abi", - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "libc" -version = "0.2.158" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" - -[[package]] -name = "log" -version = "0.4.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" - -[[package]] -name = "mdbook-catppuccin" -version = "3.0.0" -dependencies = [ - "clap", - "clap_complete", - "env_logger", - "log", -] - -[[package]] -name = "memchr" -version = "2.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" - -[[package]] -name = "regex" -version = "1.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" -dependencies = [ - "aho-corasick", - "memchr", - "regex-automata", - "regex-syntax", -] - -[[package]] -name = "regex-automata" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" - -[[package]] -name = "strsim" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" - -[[package]] -name = "termcolor" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "utf8parse" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" - -[[package]] -name = "winapi-util" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" -dependencies = [ - "windows-sys 0.48.0", -] - -[[package]] -name = "windows-sys" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" -dependencies = [ - "windows-targets 0.48.1", -] - -[[package]] -name = "windows-sys" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" -dependencies = [ - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-targets" -version = "0.48.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05d4b17490f70499f20b9e791dcf6a299785ce8af4d709018206dc5b4953e95f" -dependencies = [ - "windows_aarch64_gnullvm 0.48.0", - "windows_aarch64_msvc 0.48.0", - "windows_i686_gnu 0.48.0", - "windows_i686_msvc 0.48.0", - "windows_x86_64_gnu 0.48.0", - "windows_x86_64_gnullvm 0.48.0", - "windows_x86_64_msvc 0.48.0", -] - -[[package]] -name = "windows-targets" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" -dependencies = [ - "windows_aarch64_gnullvm 0.52.6", - "windows_aarch64_msvc 0.52.6", - "windows_i686_gnu 0.52.6", - "windows_i686_gnullvm", - "windows_i686_msvc 0.52.6", - "windows_x86_64_gnu 0.52.6", - "windows_x86_64_gnullvm 0.52.6", - "windows_x86_64_msvc 0.52.6", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" - -[[package]] -name = "windows_i686_gnu" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" - -[[package]] -name = "windows_i686_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" - -[[package]] -name = "windows_i686_msvc" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" diff --git a/Cargo.toml b/Cargo.toml deleted file mode 100644 index a8967d5..0000000 --- a/Cargo.toml +++ /dev/null @@ -1,26 +0,0 @@ -[package] -name = "mdbook-catppuccin" -authors = ["Goudham Suresh ", "winston "] -description = "🎊 Soothing pastel theme for mdBook" -version = "3.0.0" -edition = "2021" -license = "MIT" -readme = "README.md" -repository = "https://github.com/catppuccin/mdBook" -keywords = ["mdbook", "markdown", "catppuccin", "preprocessor", "plugin"] -include = ["/src", "/assets", "/README.md", "/LICENSE"] - -[[bin]] -name = "mdbook-catppuccin" -path = "src/main.rs" - -[dependencies] -clap = { version = "4.4.7", features = ["cargo"] } -clap_complete = "4.4.4" -env_logger = "0.10.0" -log = "0.4.20" - -[profile.release] -lto = true -opt-level = "z" -strip = true diff --git a/README.md b/README.md index 26f8302..280b147 100644 --- a/README.md +++ b/README.md @@ -60,11 +60,11 @@ rm -d fonts css ``` -3. Download the following CSS assets from this repository to the `theme` directory: +3. Download the CSS files from the [latest GitHub release](https://github.com/catppuccin/mdBook/releases/latest) to the `theme` directory: - - [catppuccin.css](palette/dist/catppuccin.css) - - [catppuccin-admonish.css](palette/dist/catppuccin-admonish.css) (**Only - required if you are using + - [catppuccin.css](https://github.com/catppuccin/mdBook/releases/latest/download/catppuccin.css) + - [catppuccin-admonish.css](https://github.com/catppuccin/mdBook/releases/latest/download/catppuccin-admonish.css) + (**Only required if you are using [mdbook-admonish](https://github.com/tommilligan/mdbook-admonish)**) 4. Update `additional-css` key within the `book.toml` as shown below diff --git a/flake.lock b/flake.lock deleted file mode 100644 index e812d6f..0000000 --- a/flake.lock +++ /dev/null @@ -1,27 +0,0 @@ -{ - "nodes": { - "nixpkgs": { - "locked": { - "lastModified": 1726755586, - "narHash": "sha256-PmUr/2GQGvFTIJ6/Tvsins7Q43KTMvMFhvG6oaYK+Wk=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "c04d5652cfa9742b1d519688f65d1bbccea9eb7e", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "nixpkgs": "nixpkgs" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index 3b21e33..0000000 --- a/flake.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - - outputs = { - self, - nixpkgs, - ... - }: let - systems = ["aarch64-darwin" "aarch64-linux" "armv6l-linux" "armv7l-linux" "x86_64-darwin" "x86_64-linux"]; - version = builtins.substring 0 8 self.lastModifiedDate; - inherit (nixpkgs) lib; - forAllSystems = f: lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system}); - in { - checks = forAllSystems (pkgs: { - default = self.packages.${pkgs.system}.default; - }); - - packages = forAllSystems (pkgs: rec { - mdbook-catppuccin = pkgs.rustPlatform.buildRustPackage { - pname = "mdbook-catppuccin"; - inherit version; - src = pkgs.nix-gitignore.gitignoreSource [] ./.; - cargoLock.lockFile = ./Cargo.lock; - }; - default = mdbook-catppuccin; - }); - - devShells = forAllSystems (pkgs: rec { - default = pkgs.mkShell { - buildInputs = with pkgs; ([ - rustc - cargo - gcc - rustfmt - clippy - rust-analyzer - mdbook - mdbook-admonish - node2nix - nodejs - ] - ++ lib.optionals stdenv.isDarwin [libiconv]); - RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; - }; - demo = pkgs.mkShell { - buildInputs = default.buildInputs ++ [self.packages.${pkgs.system}.mdbook-catppuccin]; - }; - }); - }; - - nixConfig = { - extra-substituters = ["https://catppuccin.cachix.org"]; - extra-trusted-public-keys = ["catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU="]; - }; -} diff --git a/palette/package-lock.json b/package-lock.json similarity index 100% rename from palette/package-lock.json rename to package-lock.json diff --git a/palette/package.json b/package.json similarity index 79% rename from palette/package.json rename to package.json index 385aebb..9dd1a60 100644 --- a/palette/package.json +++ b/package.json @@ -2,8 +2,9 @@ "name": "catppuccin-mdbook", "version": "3.0.0", "description": "Soothing pastel theme for mdBook", + "private": true, "scripts": { - "build": "sass -I node_modules --no-charset --no-source-map catppuccin.scss:dist/catppuccin.css catppuccin-admonish.scss:dist/catppuccin-admonish.css" + "build": "sass -I node_modules --no-charset --no-source-map src/catppuccin.scss:dist/catppuccin.css src/catppuccin-admonish.scss:dist/catppuccin-admonish.css" }, "repository": { "type": "git", @@ -19,5 +20,6 @@ "@catppuccin/highlightjs": "^1.0.0", "@catppuccin/palette": "^1.4.0", "sass": "^1.79.3" - } + }, + "packageManager": "pnpm@9.11.0" } \ No newline at end of file diff --git a/palette/dist/catppuccin-admonish.css b/palette/dist/catppuccin-admonish.css deleted file mode 100644 index d223ee9..0000000 --- a/palette/dist/catppuccin-admonish.css +++ /dev/null @@ -1,363 +0,0 @@ -.latte :is(.admonition):is(.admonish-hint, .admonish-important, .admonish-tip) { - border-color: #df8e1d; -} -.latte :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(223, 142, 29, 0.2); -} -.latte :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #df8e1d; -} -.latte :is(.admonition):is(.admonish-abstract, .admonish-summary, .admonish-tldr) { - border-color: #dd7878; -} -.latte :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(221, 120, 120, 0.2); -} -.latte :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #dd7878; -} -.latte :is(.admonition):is(.admonish-example) { - border-color: #8839ef; -} -.latte :is(.admonish-example) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(136, 57, 239, 0.2); -} -.latte :is(.admonish-example) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #8839ef; -} -.latte :is(.admonition):is(.admonish-info, .admonish-todo) { - border-color: #04a5e5; -} -.latte :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(4, 165, 229, 0.2); -} -.latte :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #04a5e5; -} -.latte :is(.admonition):is(.admonish-check, .admonish-done, .admonish-success) { - border-color: #40a02b; -} -.latte :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(64, 160, 43, 0.2); -} -.latte :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #40a02b; -} -.latte :is(.admonition):is(.admonish-note) { - border-color: #1e66f5; -} -.latte :is(.admonish-note) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(30, 102, 245, 0.2); -} -.latte :is(.admonish-note) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #1e66f5; -} -.latte :is(.admonition):is(.admonish-attention, .admonish-caution, .admonish-warning) { - border-color: #fe640b; -} -.latte :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(254, 100, 11, 0.2); -} -.latte :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #fe640b; -} -.latte :is(.admonition):is(.admonish-faq, .admonish-help, .admonish-question) { - border-color: #179299; -} -.latte :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(23, 146, 153, 0.2); -} -.latte :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #179299; -} -.latte :is(.admonition):is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) { - border-color: #d20f39; -} -.latte :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(210, 15, 57, 0.2); -} -.latte :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #d20f39; -} -.latte :is(.admonition):is(.admonish-cite, .admonish-quote) { - border-color: #ea76cb; -} -.latte :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(234, 118, 203, 0.2); -} -.latte :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #ea76cb; -} - -.frappe :is(.admonition):is(.admonish-hint, .admonish-important, .admonish-tip) { - border-color: #e5c890; -} -.frappe :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(229, 200, 144, 0.2); -} -.frappe :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #e5c890; -} -.frappe :is(.admonition):is(.admonish-abstract, .admonish-summary, .admonish-tldr) { - border-color: #eebebe; -} -.frappe :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(238, 190, 190, 0.2); -} -.frappe :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #eebebe; -} -.frappe :is(.admonition):is(.admonish-example) { - border-color: #ca9ee6; -} -.frappe :is(.admonish-example) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(202, 158, 230, 0.2); -} -.frappe :is(.admonish-example) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #ca9ee6; -} -.frappe :is(.admonition):is(.admonish-info, .admonish-todo) { - border-color: #99d1db; -} -.frappe :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(153, 209, 219, 0.2); -} -.frappe :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #99d1db; -} -.frappe :is(.admonition):is(.admonish-check, .admonish-done, .admonish-success) { - border-color: #a6d189; -} -.frappe :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(166, 209, 137, 0.2); -} -.frappe :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #a6d189; -} -.frappe :is(.admonition):is(.admonish-note) { - border-color: #8caaee; -} -.frappe :is(.admonish-note) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(140, 170, 238, 0.2); -} -.frappe :is(.admonish-note) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #8caaee; -} -.frappe :is(.admonition):is(.admonish-attention, .admonish-caution, .admonish-warning) { - border-color: #ef9f76; -} -.frappe :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(239, 159, 118, 0.2); -} -.frappe :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #ef9f76; -} -.frappe :is(.admonition):is(.admonish-faq, .admonish-help, .admonish-question) { - border-color: #81c8be; -} -.frappe :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(129, 200, 190, 0.2); -} -.frappe :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #81c8be; -} -.frappe :is(.admonition):is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) { - border-color: #e78284; -} -.frappe :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(231, 130, 132, 0.2); -} -.frappe :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #e78284; -} -.frappe :is(.admonition):is(.admonish-cite, .admonish-quote) { - border-color: #f4b8e4; -} -.frappe :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(244, 184, 228, 0.2); -} -.frappe :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #f4b8e4; -} - -.macchiato :is(.admonition):is(.admonish-hint, .admonish-important, .admonish-tip) { - border-color: #eed49f; -} -.macchiato :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(238, 212, 159, 0.2); -} -.macchiato :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #eed49f; -} -.macchiato :is(.admonition):is(.admonish-abstract, .admonish-summary, .admonish-tldr) { - border-color: #f0c6c6; -} -.macchiato :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(240, 198, 198, 0.2); -} -.macchiato :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #f0c6c6; -} -.macchiato :is(.admonition):is(.admonish-example) { - border-color: #c6a0f6; -} -.macchiato :is(.admonish-example) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(198, 160, 246, 0.2); -} -.macchiato :is(.admonish-example) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #c6a0f6; -} -.macchiato :is(.admonition):is(.admonish-info, .admonish-todo) { - border-color: #91d7e3; -} -.macchiato :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(145, 215, 227, 0.2); -} -.macchiato :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #91d7e3; -} -.macchiato :is(.admonition):is(.admonish-check, .admonish-done, .admonish-success) { - border-color: #a6da95; -} -.macchiato :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(166, 218, 149, 0.2); -} -.macchiato :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #a6da95; -} -.macchiato :is(.admonition):is(.admonish-note) { - border-color: #8aadf4; -} -.macchiato :is(.admonish-note) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(138, 173, 244, 0.2); -} -.macchiato :is(.admonish-note) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #8aadf4; -} -.macchiato :is(.admonition):is(.admonish-attention, .admonish-caution, .admonish-warning) { - border-color: #f5a97f; -} -.macchiato :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(245, 169, 127, 0.2); -} -.macchiato :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #f5a97f; -} -.macchiato :is(.admonition):is(.admonish-faq, .admonish-help, .admonish-question) { - border-color: #8bd5ca; -} -.macchiato :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(139, 213, 202, 0.2); -} -.macchiato :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #8bd5ca; -} -.macchiato :is(.admonition):is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) { - border-color: #ed8796; -} -.macchiato :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(237, 135, 150, 0.2); -} -.macchiato :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #ed8796; -} -.macchiato :is(.admonition):is(.admonish-cite, .admonish-quote) { - border-color: #f5bde6; -} -.macchiato :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(245, 189, 230, 0.2); -} -.macchiato :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #f5bde6; -} - -.mocha :is(.admonition):is(.admonish-hint, .admonish-important, .admonish-tip) { - border-color: #f9e2af; -} -.mocha :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(249, 226, 175, 0.2); -} -.mocha :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #f9e2af; -} -.mocha :is(.admonition):is(.admonish-abstract, .admonish-summary, .admonish-tldr) { - border-color: #f2cdcd; -} -.mocha :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(242, 205, 205, 0.2); -} -.mocha :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #f2cdcd; -} -.mocha :is(.admonition):is(.admonish-example) { - border-color: #cba6f7; -} -.mocha :is(.admonish-example) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(203, 166, 247, 0.2); -} -.mocha :is(.admonish-example) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #cba6f7; -} -.mocha :is(.admonition):is(.admonish-info, .admonish-todo) { - border-color: #89dceb; -} -.mocha :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(137, 220, 235, 0.2); -} -.mocha :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #89dceb; -} -.mocha :is(.admonition):is(.admonish-check, .admonish-done, .admonish-success) { - border-color: #a6e3a1; -} -.mocha :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(166, 227, 161, 0.2); -} -.mocha :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #a6e3a1; -} -.mocha :is(.admonition):is(.admonish-note) { - border-color: #89b4fa; -} -.mocha :is(.admonish-note) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(137, 180, 250, 0.2); -} -.mocha :is(.admonish-note) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #89b4fa; -} -.mocha :is(.admonition):is(.admonish-attention, .admonish-caution, .admonish-warning) { - border-color: #fab387; -} -.mocha :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(250, 179, 135, 0.2); -} -.mocha :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #fab387; -} -.mocha :is(.admonition):is(.admonish-faq, .admonish-help, .admonish-question) { - border-color: #94e2d5; -} -.mocha :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(148, 226, 213, 0.2); -} -.mocha :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #94e2d5; -} -.mocha :is(.admonition):is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) { - border-color: #f38ba8; -} -.mocha :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(243, 139, 168, 0.2); -} -.mocha :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #f38ba8; -} -.mocha :is(.admonition):is(.admonish-cite, .admonish-quote) { - border-color: #f5c2e7; -} -.mocha :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title) { - background-color: rgba(245, 194, 231, 0.2); -} -.mocha :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title)::before { - background-color: #f5c2e7; -} diff --git a/palette/dist/catppuccin.css b/palette/dist/catppuccin.css deleted file mode 100644 index 7cb4c4a..0000000 --- a/palette/dist/catppuccin.css +++ /dev/null @@ -1,787 +0,0 @@ -.latte.hljs { - color: #4c4f69; - background: #eff1f5; -} -.latte .hljs-keyword { - color: #8839ef; -} -.latte .hljs-built_in { - color: #d20f39; -} -.latte .hljs-type { - color: #df8e1d; -} -.latte .hljs-literal { - color: #fe640b; -} -.latte .hljs-number { - color: #fe640b; -} -.latte .hljs-operator { - color: #179299; -} -.latte .hljs-punctuation { - color: #5c5f77; -} -.latte .hljs-property { - color: #179299; -} -.latte .hljs-regexp { - color: #ea76cb; -} -.latte .hljs-string { - color: #40a02b; -} -.latte .hljs-char.escape_ { - color: #40a02b; -} -.latte .hljs-subst { - color: #6c6f85; -} -.latte .hljs-symbol { - color: #dd7878; -} -.latte .hljs-variable { - color: #8839ef; -} -.latte .hljs-variable.language_ { - color: #8839ef; -} -.latte .hljs-variable.constant_ { - color: #fe640b; -} -.latte .hljs-title { - color: #1e66f5; -} -.latte .hljs-title.class_ { - color: #df8e1d; -} -.latte .hljs-title.function_ { - color: #1e66f5; -} -.latte .hljs-params { - color: #4c4f69; -} -.latte .hljs-comment { - color: #acb0be; -} -.latte .hljs-doctag { - color: #d20f39; -} -.latte .hljs-meta { - color: #fe640b; -} -.latte .hljs-section { - color: #1e66f5; -} -.latte .hljs-tag { - color: #6c6f85; -} -.latte .hljs-name { - color: #8839ef; -} -.latte .hljs-attr { - color: #1e66f5; -} -.latte .hljs-attribute { - color: #40a02b; -} -.latte .hljs-bullet { - color: #179299; -} -.latte .hljs-code { - color: #40a02b; -} -.latte .hljs-emphasis { - color: #d20f39; - font-style: italic; -} -.latte .hljs-strong { - color: #d20f39; - font-weight: bold; -} -.latte .hljs-formula { - color: #179299; -} -.latte .hljs-link { - color: #209fb5; - font-style: italic; -} -.latte .hljs-quote { - color: #40a02b; - font-style: italic; -} -.latte .hljs-selector-tag { - color: #df8e1d; -} -.latte .hljs-selector-id { - color: #1e66f5; -} -.latte .hljs-selector-class { - color: #179299; -} -.latte .hljs-selector-attr { - color: #8839ef; -} -.latte .hljs-selector-pseudo { - color: #179299; -} -.latte .hljs-template-tag { - color: #dd7878; -} -.latte .hljs-template-variable { - color: #dd7878; -} -.latte .hljs-addition { - color: #40a02b; - background: rgba(64, 160, 43, 0.15); -} -.latte .hljs-deletion { - color: #d20f39; - background: rgba(210, 15, 57, 0.15); -} -.latte code { - color: #4c4f69; - background: #e6e9ef; -} -.latte blockquote blockquote { - border-top: 0.1em solid #acb0be; - border-bottom: 0.1em solid #acb0be; -} -.latte hr { - color: #acb0be; -} -.latte del { - color: #7c7f93; -} -.latte .ace_gutter { - color: #8c8fa1; - background: #e6e9ef; -} -.latte .ace_gutter-active-line.ace_gutter-cell { - color: #ea76cb; - background: #e6e9ef; -} - -.frappe.hljs { - color: #c6d0f5; - background: #303446; -} -.frappe .hljs-keyword { - color: #ca9ee6; -} -.frappe .hljs-built_in { - color: #e78284; -} -.frappe .hljs-type { - color: #e5c890; -} -.frappe .hljs-literal { - color: #ef9f76; -} -.frappe .hljs-number { - color: #ef9f76; -} -.frappe .hljs-operator { - color: #81c8be; -} -.frappe .hljs-punctuation { - color: #b5bfe2; -} -.frappe .hljs-property { - color: #81c8be; -} -.frappe .hljs-regexp { - color: #f4b8e4; -} -.frappe .hljs-string { - color: #a6d189; -} -.frappe .hljs-char.escape_ { - color: #a6d189; -} -.frappe .hljs-subst { - color: #a5adce; -} -.frappe .hljs-symbol { - color: #eebebe; -} -.frappe .hljs-variable { - color: #ca9ee6; -} -.frappe .hljs-variable.language_ { - color: #ca9ee6; -} -.frappe .hljs-variable.constant_ { - color: #ef9f76; -} -.frappe .hljs-title { - color: #8caaee; -} -.frappe .hljs-title.class_ { - color: #e5c890; -} -.frappe .hljs-title.function_ { - color: #8caaee; -} -.frappe .hljs-params { - color: #c6d0f5; -} -.frappe .hljs-comment { - color: #626880; -} -.frappe .hljs-doctag { - color: #e78284; -} -.frappe .hljs-meta { - color: #ef9f76; -} -.frappe .hljs-section { - color: #8caaee; -} -.frappe .hljs-tag { - color: #a5adce; -} -.frappe .hljs-name { - color: #ca9ee6; -} -.frappe .hljs-attr { - color: #8caaee; -} -.frappe .hljs-attribute { - color: #a6d189; -} -.frappe .hljs-bullet { - color: #81c8be; -} -.frappe .hljs-code { - color: #a6d189; -} -.frappe .hljs-emphasis { - color: #e78284; - font-style: italic; -} -.frappe .hljs-strong { - color: #e78284; - font-weight: bold; -} -.frappe .hljs-formula { - color: #81c8be; -} -.frappe .hljs-link { - color: #85c1dc; - font-style: italic; -} -.frappe .hljs-quote { - color: #a6d189; - font-style: italic; -} -.frappe .hljs-selector-tag { - color: #e5c890; -} -.frappe .hljs-selector-id { - color: #8caaee; -} -.frappe .hljs-selector-class { - color: #81c8be; -} -.frappe .hljs-selector-attr { - color: #ca9ee6; -} -.frappe .hljs-selector-pseudo { - color: #81c8be; -} -.frappe .hljs-template-tag { - color: #eebebe; -} -.frappe .hljs-template-variable { - color: #eebebe; -} -.frappe .hljs-addition { - color: #a6d189; - background: rgba(166, 209, 137, 0.15); -} -.frappe .hljs-deletion { - color: #e78284; - background: rgba(231, 130, 132, 0.15); -} -.frappe code { - color: #c6d0f5; - background: #292c3c; -} -.frappe blockquote blockquote { - border-top: 0.1em solid #626880; - border-bottom: 0.1em solid #626880; -} -.frappe hr { - color: #626880; -} -.frappe del { - color: #949cbb; -} -.frappe .ace_gutter { - color: #838ba7; - background: #292c3c; -} -.frappe .ace_gutter-active-line.ace_gutter-cell { - color: #f4b8e4; - background: #292c3c; -} - -.macchiato.hljs { - color: #cad3f5; - background: #24273a; -} -.macchiato .hljs-keyword { - color: #c6a0f6; -} -.macchiato .hljs-built_in { - color: #ed8796; -} -.macchiato .hljs-type { - color: #eed49f; -} -.macchiato .hljs-literal { - color: #f5a97f; -} -.macchiato .hljs-number { - color: #f5a97f; -} -.macchiato .hljs-operator { - color: #8bd5ca; -} -.macchiato .hljs-punctuation { - color: #b8c0e0; -} -.macchiato .hljs-property { - color: #8bd5ca; -} -.macchiato .hljs-regexp { - color: #f5bde6; -} -.macchiato .hljs-string { - color: #a6da95; -} -.macchiato .hljs-char.escape_ { - color: #a6da95; -} -.macchiato .hljs-subst { - color: #a5adcb; -} -.macchiato .hljs-symbol { - color: #f0c6c6; -} -.macchiato .hljs-variable { - color: #c6a0f6; -} -.macchiato .hljs-variable.language_ { - color: #c6a0f6; -} -.macchiato .hljs-variable.constant_ { - color: #f5a97f; -} -.macchiato .hljs-title { - color: #8aadf4; -} -.macchiato .hljs-title.class_ { - color: #eed49f; -} -.macchiato .hljs-title.function_ { - color: #8aadf4; -} -.macchiato .hljs-params { - color: #cad3f5; -} -.macchiato .hljs-comment { - color: #5b6078; -} -.macchiato .hljs-doctag { - color: #ed8796; -} -.macchiato .hljs-meta { - color: #f5a97f; -} -.macchiato .hljs-section { - color: #8aadf4; -} -.macchiato .hljs-tag { - color: #a5adcb; -} -.macchiato .hljs-name { - color: #c6a0f6; -} -.macchiato .hljs-attr { - color: #8aadf4; -} -.macchiato .hljs-attribute { - color: #a6da95; -} -.macchiato .hljs-bullet { - color: #8bd5ca; -} -.macchiato .hljs-code { - color: #a6da95; -} -.macchiato .hljs-emphasis { - color: #ed8796; - font-style: italic; -} -.macchiato .hljs-strong { - color: #ed8796; - font-weight: bold; -} -.macchiato .hljs-formula { - color: #8bd5ca; -} -.macchiato .hljs-link { - color: #7dc4e4; - font-style: italic; -} -.macchiato .hljs-quote { - color: #a6da95; - font-style: italic; -} -.macchiato .hljs-selector-tag { - color: #eed49f; -} -.macchiato .hljs-selector-id { - color: #8aadf4; -} -.macchiato .hljs-selector-class { - color: #8bd5ca; -} -.macchiato .hljs-selector-attr { - color: #c6a0f6; -} -.macchiato .hljs-selector-pseudo { - color: #8bd5ca; -} -.macchiato .hljs-template-tag { - color: #f0c6c6; -} -.macchiato .hljs-template-variable { - color: #f0c6c6; -} -.macchiato .hljs-addition { - color: #a6da95; - background: rgba(166, 218, 149, 0.15); -} -.macchiato .hljs-deletion { - color: #ed8796; - background: rgba(237, 135, 150, 0.15); -} -.macchiato code { - color: #cad3f5; - background: #1e2030; -} -.macchiato blockquote blockquote { - border-top: 0.1em solid #5b6078; - border-bottom: 0.1em solid #5b6078; -} -.macchiato hr { - color: #5b6078; -} -.macchiato del { - color: #939ab7; -} -.macchiato .ace_gutter { - color: #8087a2; - background: #1e2030; -} -.macchiato .ace_gutter-active-line.ace_gutter-cell { - color: #f5bde6; - background: #1e2030; -} - -.mocha.hljs { - color: #cdd6f4; - background: #1e1e2e; -} -.mocha .hljs-keyword { - color: #cba6f7; -} -.mocha .hljs-built_in { - color: #f38ba8; -} -.mocha .hljs-type { - color: #f9e2af; -} -.mocha .hljs-literal { - color: #fab387; -} -.mocha .hljs-number { - color: #fab387; -} -.mocha .hljs-operator { - color: #94e2d5; -} -.mocha .hljs-punctuation { - color: #bac2de; -} -.mocha .hljs-property { - color: #94e2d5; -} -.mocha .hljs-regexp { - color: #f5c2e7; -} -.mocha .hljs-string { - color: #a6e3a1; -} -.mocha .hljs-char.escape_ { - color: #a6e3a1; -} -.mocha .hljs-subst { - color: #a6adc8; -} -.mocha .hljs-symbol { - color: #f2cdcd; -} -.mocha .hljs-variable { - color: #cba6f7; -} -.mocha .hljs-variable.language_ { - color: #cba6f7; -} -.mocha .hljs-variable.constant_ { - color: #fab387; -} -.mocha .hljs-title { - color: #89b4fa; -} -.mocha .hljs-title.class_ { - color: #f9e2af; -} -.mocha .hljs-title.function_ { - color: #89b4fa; -} -.mocha .hljs-params { - color: #cdd6f4; -} -.mocha .hljs-comment { - color: #585b70; -} -.mocha .hljs-doctag { - color: #f38ba8; -} -.mocha .hljs-meta { - color: #fab387; -} -.mocha .hljs-section { - color: #89b4fa; -} -.mocha .hljs-tag { - color: #a6adc8; -} -.mocha .hljs-name { - color: #cba6f7; -} -.mocha .hljs-attr { - color: #89b4fa; -} -.mocha .hljs-attribute { - color: #a6e3a1; -} -.mocha .hljs-bullet { - color: #94e2d5; -} -.mocha .hljs-code { - color: #a6e3a1; -} -.mocha .hljs-emphasis { - color: #f38ba8; - font-style: italic; -} -.mocha .hljs-strong { - color: #f38ba8; - font-weight: bold; -} -.mocha .hljs-formula { - color: #94e2d5; -} -.mocha .hljs-link { - color: #74c7ec; - font-style: italic; -} -.mocha .hljs-quote { - color: #a6e3a1; - font-style: italic; -} -.mocha .hljs-selector-tag { - color: #f9e2af; -} -.mocha .hljs-selector-id { - color: #89b4fa; -} -.mocha .hljs-selector-class { - color: #94e2d5; -} -.mocha .hljs-selector-attr { - color: #cba6f7; -} -.mocha .hljs-selector-pseudo { - color: #94e2d5; -} -.mocha .hljs-template-tag { - color: #f2cdcd; -} -.mocha .hljs-template-variable { - color: #f2cdcd; -} -.mocha .hljs-addition { - color: #a6e3a1; - background: rgba(166, 227, 161, 0.15); -} -.mocha .hljs-deletion { - color: #f38ba8; - background: rgba(243, 139, 168, 0.15); -} -.mocha code { - color: #cdd6f4; - background: #181825; -} -.mocha blockquote blockquote { - border-top: 0.1em solid #585b70; - border-bottom: 0.1em solid #585b70; -} -.mocha hr { - color: #585b70; -} -.mocha del { - color: #9399b2; -} -.mocha .ace_gutter { - color: #7f849c; - background: #181825; -} -.mocha .ace_gutter-active-line.ace_gutter-cell { - color: #f5c2e7; - background: #181825; -} - -.latte { - --bg: #eff1f5; - --fg: #4c4f69; - --sidebar-bg: #e6e9ef; - --sidebar-fg: #4c4f69; - --sidebar-non-existant: #9ca0b0; - --sidebar-active: #1e66f5; - --sidebar-spacer: #9ca0b0; - --scrollbar: #9ca0b0; - --icons: #9ca0b0; - --icons-hover: #8c8fa1; - --links: #1e66f5; - --inline-code-color: #fe640b; - --theme-popup-bg: #e6e9ef; - --theme-popup-border: #9ca0b0; - --theme-hover: #9ca0b0; - --quote-bg: #e6e9ef; - --quote-border: #dce0e8; - --table-border-color: #dce0e8; - --table-header-bg: #e6e9ef; - --table-alternate-bg: #e6e9ef; - --searchbar-border-color: #dce0e8; - --searchbar-bg: #e6e9ef; - --searchbar-fg: #4c4f69; - --searchbar-shadow-color: #dce0e8; - --searchresults-header-fg: #4c4f69; - --searchresults-border-color: #dce0e8; - --searchresults-li-bg: #eff1f5; - --search-mark-bg: #fe640b; - --warning-border: #fe640b; -} - -.frappe { - --bg: #303446; - --fg: #c6d0f5; - --sidebar-bg: #292c3c; - --sidebar-fg: #c6d0f5; - --sidebar-non-existant: #737994; - --sidebar-active: #8caaee; - --sidebar-spacer: #737994; - --scrollbar: #737994; - --icons: #737994; - --icons-hover: #838ba7; - --links: #8caaee; - --inline-code-color: #ef9f76; - --theme-popup-bg: #292c3c; - --theme-popup-border: #737994; - --theme-hover: #737994; - --quote-bg: #292c3c; - --quote-border: #232634; - --table-border-color: #232634; - --table-header-bg: #292c3c; - --table-alternate-bg: #292c3c; - --searchbar-border-color: #232634; - --searchbar-bg: #292c3c; - --searchbar-fg: #c6d0f5; - --searchbar-shadow-color: #232634; - --searchresults-header-fg: #c6d0f5; - --searchresults-border-color: #232634; - --searchresults-li-bg: #303446; - --search-mark-bg: #ef9f76; - --warning-border: #ef9f76; -} - -.macchiato { - --bg: #24273a; - --fg: #cad3f5; - --sidebar-bg: #1e2030; - --sidebar-fg: #cad3f5; - --sidebar-non-existant: #6e738d; - --sidebar-active: #8aadf4; - --sidebar-spacer: #6e738d; - --scrollbar: #6e738d; - --icons: #6e738d; - --icons-hover: #8087a2; - --links: #8aadf4; - --inline-code-color: #f5a97f; - --theme-popup-bg: #1e2030; - --theme-popup-border: #6e738d; - --theme-hover: #6e738d; - --quote-bg: #1e2030; - --quote-border: #181926; - --table-border-color: #181926; - --table-header-bg: #1e2030; - --table-alternate-bg: #1e2030; - --searchbar-border-color: #181926; - --searchbar-bg: #1e2030; - --searchbar-fg: #cad3f5; - --searchbar-shadow-color: #181926; - --searchresults-header-fg: #cad3f5; - --searchresults-border-color: #181926; - --searchresults-li-bg: #24273a; - --search-mark-bg: #f5a97f; - --warning-border: #f5a97f; -} - -.mocha { - --bg: #1e1e2e; - --fg: #cdd6f4; - --sidebar-bg: #181825; - --sidebar-fg: #cdd6f4; - --sidebar-non-existant: #6c7086; - --sidebar-active: #89b4fa; - --sidebar-spacer: #6c7086; - --scrollbar: #6c7086; - --icons: #6c7086; - --icons-hover: #7f849c; - --links: #89b4fa; - --inline-code-color: #fab387; - --theme-popup-bg: #181825; - --theme-popup-border: #6c7086; - --theme-hover: #6c7086; - --quote-bg: #181825; - --quote-border: #11111b; - --table-border-color: #11111b; - --table-header-bg: #181825; - --table-alternate-bg: #181825; - --searchbar-border-color: #11111b; - --searchbar-bg: #181825; - --searchbar-fg: #cdd6f4; - --searchbar-shadow-color: #11111b; - --searchresults-header-fg: #cdd6f4; - --searchresults-border-color: #11111b; - --searchresults-li-bg: #1e1e2e; - --search-mark-bg: #fab387; - --warning-border: #fab387; -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..7a34bef --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,69 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@catppuccin/highlightjs': + specifier: ^1.0.0 + version: 1.0.0 + '@catppuccin/palette': + specifier: ^1.4.0 + version: 1.4.0 + sass: + specifier: ^1.79.3 + version: 1.79.3 + +packages: + + '@catppuccin/highlightjs@1.0.0': + resolution: {integrity: sha512-Cq0b5pNkzAxTf7QwXkGcMnfEawOdaJP9wQJNsLO1PCqml+NgMe7mOknH3l/j/0Q3bgjijm+N26B8BAYiv18oQg==} + + '@catppuccin/palette@1.4.0': + resolution: {integrity: sha512-Npdg/QFeMAEbRVlnJqc1xE3i7NI4liSq4tTTXk4U/L3vPEiqw3bZQJRLYjuP0Vq2AEDNS5H5Li+lk27c38sP4g==} + + chokidar@4.0.1: + resolution: {integrity: sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==} + engines: {node: '>= 14.16.0'} + + immutable@4.3.7: + resolution: {integrity: sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw==} + + readdirp@4.0.1: + resolution: {integrity: sha512-GkMg9uOTpIWWKbSsgwb5fA4EavTR+SG/PMPoAY8hkhHfEEY0/vqljY+XHqtDf2cr2IJtoNRDbrrEpZUiZCkYRw==} + engines: {node: '>= 14.16.0'} + + sass@1.79.3: + resolution: {integrity: sha512-m7dZxh0W9EZ3cw50Me5GOuYm/tVAJAn91SUnohLRo9cXBixGUOdvmryN+dXpwR831bhoY3Zv7rEFt85PUwTmzA==} + engines: {node: '>=14.0.0'} + hasBin: true + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + +snapshots: + + '@catppuccin/highlightjs@1.0.0': {} + + '@catppuccin/palette@1.4.0': {} + + chokidar@4.0.1: + dependencies: + readdirp: 4.0.1 + + immutable@4.3.7: {} + + readdirp@4.0.1: {} + + sass@1.79.3: + dependencies: + chokidar: 4.0.1 + immutable: 4.3.7 + source-map-js: 1.2.1 + + source-map-js@1.2.1: {} diff --git a/release-please-config.json b/release-please-config.json index e8e5abc..6b075fa 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -4,24 +4,7 @@ "packages": { ".": { "package-name": "", - "release-type": "rust", - "extra-files": [ - { - "type": "json", - "path": "palette/package.json", - "jsonpath": "$.version" - }, - { - "type": "json", - "path": "palette/package-lock.json", - "jsonpath": "$.version" - }, - { - "type": "json", - "path": "palette/package-lock.json", - "jsonpath": "$['packages']['']['version']" - } - ] + "release-type": "node" } }, "changelog-sections": [ @@ -30,10 +13,10 @@ { "type": "fix", "section": "Bug Fixes" }, { "type": "perf", "section": "Performance Improvements" }, { "type": "revert", "section": "Reverts" }, + { "type": "refactor", "section": "Code Refactoring" }, { "type": "docs", "section": "Documentation", "hidden": true }, { "type": "style", "section": "Styles", "hidden": true }, { "type": "chore", "section": "Miscellaneous Chores", "hidden": true }, - { "type": "refactor", "section": "Code Refactoring", "hidden": true }, { "type": "test", "section": "Tests", "hidden": true }, { "type": "build", "section": "Build system & distribution", "hidden": false }, { "type": "ci", "section": "Continuous Integration", "hidden": true } diff --git a/palette/catppuccin-admonish.scss b/src/catppuccin-admonish.scss similarity index 100% rename from palette/catppuccin-admonish.scss rename to src/catppuccin-admonish.scss diff --git a/palette/catppuccin.scss b/src/catppuccin.scss similarity index 100% rename from palette/catppuccin.scss rename to src/catppuccin.scss diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index 8d559dd..0000000 --- a/src/main.rs +++ /dev/null @@ -1,54 +0,0 @@ -use std::process; - -use clap::{ - command, crate_authors, crate_description, crate_version, Arg, ArgAction, Command, -}; -use log::error; - -fn main() { - env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); - - error!( - r#" -This preprocessor is no longer supported and no new versions will be released. -Instructions on how to apply Catppuccin to your mdBook can be found at https://github.com/catppuccin/mdBook. - -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 no longer works, please refer to https://github.com/catppuccin/mdBook/issues/107. - -Exiting..."# - ); - - make_app().get_matches(); - - process::exit(1); -} - -pub fn make_app() -> Command { - command!() - .name("mdbook-catppuccin") - .about(crate_description!()) - .author(crate_authors!()) - .version(crate_version!()) - .subcommand( - command!("supports") - .arg(Arg::new("renderer").required(true)) - .about("Check whether a renderer is supported by this preprocessor"), - ) - .subcommand( - command!("install") - .arg( - Arg::new("dir") - .default_value(".") - .help("Root directory for the book, this should contain the configuration file `book.toml`") - ) - .arg( - Arg::new("force") - .long("force") - .short('f') - .action(ArgAction::SetTrue) - .help("Forcefully overwrite the existing 'index.hbs' file") - ) - .about("Install the necessary files needed and update the config to include them"), - ) -}