mddoco 2.4.0__tar.gz → 2.5.0__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.
Files changed (47) hide show
  1. {mddoco-2.4.0/src/mddoco.egg-info → mddoco-2.5.0}/PKG-INFO +2 -1
  2. {mddoco-2.4.0 → mddoco-2.5.0}/README.md +1 -0
  3. {mddoco-2.4.0 → mddoco-2.5.0}/pyproject.toml +1 -1
  4. mddoco-2.5.0/src/mddoco/__init__.py +1 -0
  5. mddoco-2.5.0/src/mddoco/themes/site-professional-wide.html +14 -0
  6. {mddoco-2.4.0 → mddoco-2.5.0/src/mddoco.egg-info}/PKG-INFO +2 -1
  7. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco.egg-info/SOURCES.txt +1 -0
  8. {mddoco-2.4.0 → mddoco-2.5.0}/tests/test_preprocessor.py +1 -1
  9. {mddoco-2.4.0 → mddoco-2.5.0}/tests/test_themes.py +7 -1
  10. mddoco-2.4.0/src/mddoco/__init__.py +0 -1
  11. {mddoco-2.4.0 → mddoco-2.5.0}/LICENSE +0 -0
  12. {mddoco-2.4.0 → mddoco-2.5.0}/setup.cfg +0 -0
  13. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/cli.py +0 -0
  14. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/converter.py +0 -0
  15. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/d2.py +0 -0
  16. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/docx.py +0 -0
  17. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/graph.py +0 -0
  18. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/mermaid.py +0 -0
  19. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/pdf.py +0 -0
  20. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/preprocessor.py +0 -0
  21. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/renderer.py +0 -0
  22. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/scanner.py +0 -0
  23. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/_site_base.html +0 -0
  24. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/academic-wide.html +0 -0
  25. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/academic.html +0 -0
  26. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/dark-wide.html +0 -0
  27. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/dark.html +0 -0
  28. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/default-wide.html +0 -0
  29. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/default.html +0 -0
  30. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/paged-professional.html +0 -0
  31. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/professional-wide.html +0 -0
  32. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/professional.html +0 -0
  33. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/site-dark.html +0 -0
  34. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/site-professional.html +0 -0
  35. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/site-terminal.html +0 -0
  36. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/site.html +0 -0
  37. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/themes/vanilla.html +0 -0
  38. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/toc.py +0 -0
  39. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco/writer.py +0 -0
  40. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco.egg-info/dependency_links.txt +0 -0
  41. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco.egg-info/entry_points.txt +0 -0
  42. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco.egg-info/requires.txt +0 -0
  43. {mddoco-2.4.0 → mddoco-2.5.0}/src/mddoco.egg-info/top_level.txt +0 -0
  44. {mddoco-2.4.0 → mddoco-2.5.0}/tests/test_d2.py +0 -0
  45. {mddoco-2.4.0 → mddoco-2.5.0}/tests/test_docx.py +0 -0
  46. {mddoco-2.4.0 → mddoco-2.5.0}/tests/test_jinja_formats.py +0 -0
  47. {mddoco-2.4.0 → mddoco-2.5.0}/tests/test_toc.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mddoco
3
- Version: 2.4.0
3
+ Version: 2.5.0
4
4
  Summary: Markdown to HTML/PDF document converter
5
5
  Author-email: Phil Massyn <phil.massyn@icloud.com>
6
6
  Project-URL: Homepage, https://github.com/massyn/mddoco
@@ -217,6 +217,7 @@ Themes are Jinja2 HTML files with embedded CSS. Pass a theme name with `--theme
217
217
  | `paged-professional` | Corporate style with Paged.js pagination for print-ready PDFs |
218
218
  | `site` | Website layout: side nav with one page per H1, minimalist styling (HTML only) |
219
219
  | `site-professional` | Same as `site` with a navy sidebar and card layout (HTML only) |
220
+ | `site-professional-wide` | Same as `site-professional` with the content card stretched to almost full width (HTML only) |
220
221
  | `site-dark` | Same as `site` on a dark background (HTML only) |
221
222
  | `site-terminal` | Same as `site` as a green-phosphor terminal, just for fun (HTML only) |
222
223
 
@@ -194,6 +194,7 @@ Themes are Jinja2 HTML files with embedded CSS. Pass a theme name with `--theme
194
194
  | `paged-professional` | Corporate style with Paged.js pagination for print-ready PDFs |
195
195
  | `site` | Website layout: side nav with one page per H1, minimalist styling (HTML only) |
196
196
  | `site-professional` | Same as `site` with a navy sidebar and card layout (HTML only) |
197
+ | `site-professional-wide` | Same as `site-professional` with the content card stretched to almost full width (HTML only) |
197
198
  | `site-dark` | Same as `site` on a dark background (HTML only) |
198
199
  | `site-terminal` | Same as `site` as a green-phosphor terminal, just for fun (HTML only) |
199
200
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "mddoco"
7
- version = "2.4.0"
7
+ version = "2.5.0"
8
8
  description = "Markdown to HTML/PDF document converter"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -0,0 +1 @@
1
+ __version__ = "2.5.0"
@@ -0,0 +1,14 @@
1
+ {#- site-professional-wide: the site-professional theme with the content card stretched
2
+ to almost the full width beside the sidebar. Everything else comes from
3
+ site-professional.html. -#}
4
+ {% extends "site-professional.html" %}
5
+ {% set pdf_supported = false %}
6
+
7
+ {% block theme_styles %}
8
+ {{ super() }}
9
+ :root { --site-content-width: none; }
10
+ .site-content { max-width: none; margin: 0 1.5rem; }
11
+ @media (max-width: 900px) {
12
+ .site-content { margin: 0; }
13
+ }
14
+ {% endblock %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mddoco
3
- Version: 2.4.0
3
+ Version: 2.5.0
4
4
  Summary: Markdown to HTML/PDF document converter
5
5
  Author-email: Phil Massyn <phil.massyn@icloud.com>
6
6
  Project-URL: Homepage, https://github.com/massyn/mddoco
@@ -217,6 +217,7 @@ Themes are Jinja2 HTML files with embedded CSS. Pass a theme name with `--theme
217
217
  | `paged-professional` | Corporate style with Paged.js pagination for print-ready PDFs |
218
218
  | `site` | Website layout: side nav with one page per H1, minimalist styling (HTML only) |
219
219
  | `site-professional` | Same as `site` with a navy sidebar and card layout (HTML only) |
220
+ | `site-professional-wide` | Same as `site-professional` with the content card stretched to almost full width (HTML only) |
220
221
  | `site-dark` | Same as `site` on a dark background (HTML only) |
221
222
  | `site-terminal` | Same as `site` as a green-phosphor terminal, just for fun (HTML only) |
222
223
 
@@ -31,6 +31,7 @@ src/mddoco/themes/paged-professional.html
31
31
  src/mddoco/themes/professional-wide.html
32
32
  src/mddoco/themes/professional.html
33
33
  src/mddoco/themes/site-dark.html
34
+ src/mddoco/themes/site-professional-wide.html
34
35
  src/mddoco/themes/site-professional.html
35
36
  src/mddoco/themes/site-terminal.html
36
37
  src/mddoco/themes/site.html
@@ -14,7 +14,7 @@ from mddoco.preprocessor import (
14
14
 
15
15
 
16
16
  def test_version():
17
- assert mddoco.__version__ == "2.4.0"
17
+ assert mddoco.__version__ == "2.5.0"
18
18
 
19
19
 
20
20
  # --- _parse_csv_line ---
@@ -6,7 +6,13 @@ from click.testing import CliRunner
6
6
  from mddoco.cli import main
7
7
  from mddoco.renderer import check_theme_format, render_html, theme_supports_pdf
8
8
 
9
- SITE_THEMES = ["site", "site-professional", "site-dark", "site-terminal"]
9
+ SITE_THEMES = [
10
+ "site",
11
+ "site-professional",
12
+ "site-professional-wide",
13
+ "site-dark",
14
+ "site-terminal",
15
+ ]
10
16
 
11
17
 
12
18
  @pytest.mark.parametrize("theme", SITE_THEMES)
@@ -1 +0,0 @@
1
- __version__ = "2.4.0"
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