code-down 2.0.2__tar.gz → 2.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {code_down-2.0.2/src/code_down.egg-info → code_down-2.0.3}/PKG-INFO +2 -1
- {code_down-2.0.2 → code_down-2.0.3}/README.md +1 -0
- {code_down-2.0.2 → code_down-2.0.3}/pyproject.toml +1 -1
- {code_down-2.0.2 → code_down-2.0.3/src/code_down.egg-info}/PKG-INFO +2 -1
- code_down-2.0.3/src/codedown/paths.py +16 -0
- code_down-2.0.2/src/codedown/paths.py +0 -5
- {code_down-2.0.2 → code_down-2.0.3}/LICENSE +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/setup.cfg +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/code_down.egg-info/SOURCES.txt +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/code_down.egg-info/dependency_links.txt +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/code_down.egg-info/entry_points.txt +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/code_down.egg-info/requires.txt +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/code_down.egg-info/top_level.txt +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/__init__.py +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/__main__.py +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/assets/themes/base.css +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/assets/themes/dark.css +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/assets/themes/dark.toml +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/assets/themes/light.css +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/assets/themes/light.toml +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/cli.py +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/config.py +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/converter.py +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/themes.py +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/updater.py +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/src/codedown/watcher.py +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/tests/test_argv_rewrite.py +0 -0
- {code_down-2.0.2 → code_down-2.0.3}/tests/test_cli_commands.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-down
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.3
|
|
4
4
|
Summary: A CLI tool that converts Markdown files into beautifully themed PDFs with syntax-highlighted code blocks.
|
|
5
5
|
Author-email: bouajila <bouajilamedyessine@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -56,6 +56,7 @@ Dynamic: license-file
|
|
|
56
56
|
[](https://pypi.org/project/code-down/)
|
|
57
57
|
[](https://github.com/bouajilaProg/CodeDown/blob/main/LICENSE)
|
|
58
58
|
[](https://github.com/bouajilaProg/CodeDown/actions)
|
|
59
|
+
[](https://bouajilaprog.github.io/CodeDown/)
|
|
59
60
|
|
|
60
61
|
**codeDown** is a simple yet powerful **CLI tool** that converts Markdown (`.md`) files into **beautiful themed PDFs** — complete with **syntax-highlighted code blocks**.
|
|
61
62
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
[](https://pypi.org/project/code-down/)
|
|
5
5
|
[](https://github.com/bouajilaProg/CodeDown/blob/main/LICENSE)
|
|
6
6
|
[](https://github.com/bouajilaProg/CodeDown/actions)
|
|
7
|
+
[](https://bouajilaprog.github.io/CodeDown/)
|
|
7
8
|
|
|
8
9
|
**codeDown** is a simple yet powerful **CLI tool** that converts Markdown (`.md`) files into **beautiful themed PDFs** — complete with **syntax-highlighted code blocks**.
|
|
9
10
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "code-down"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.3"
|
|
8
8
|
description = "A CLI tool that converts Markdown files into beautifully themed PDFs with syntax-highlighted code blocks."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-down
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.3
|
|
4
4
|
Summary: A CLI tool that converts Markdown files into beautifully themed PDFs with syntax-highlighted code blocks.
|
|
5
5
|
Author-email: bouajila <bouajilamedyessine@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -56,6 +56,7 @@ Dynamic: license-file
|
|
|
56
56
|
[](https://pypi.org/project/code-down/)
|
|
57
57
|
[](https://github.com/bouajilaProg/CodeDown/blob/main/LICENSE)
|
|
58
58
|
[](https://github.com/bouajilaProg/CodeDown/actions)
|
|
59
|
+
[](https://bouajilaprog.github.io/CodeDown/)
|
|
59
60
|
|
|
60
61
|
**codeDown** is a simple yet powerful **CLI tool** that converts Markdown (`.md`) files into **beautiful themed PDFs** — complete with **syntax-highlighted code blocks**.
|
|
61
62
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def _assets_dir() -> Path:
|
|
6
|
+
# When bundled by PyInstaller (onefile/onedir), data files are unpacked
|
|
7
|
+
# under sys._MEIPASS.
|
|
8
|
+
meipass = getattr(sys, "_MEIPASS", None)
|
|
9
|
+
if getattr(sys, "frozen", False) and meipass:
|
|
10
|
+
return Path(meipass) / "assets"
|
|
11
|
+
|
|
12
|
+
return Path(__file__).resolve().parent / "assets"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
ASSETS_DIR = _assets_dir()
|
|
16
|
+
THEMES_DIR = ASSETS_DIR / "themes"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|