bloggy 0.1.43__py3-none-any.whl → 0.2.3__py3-none-any.whl
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.
- bloggy/__init__.py +1 -1
- bloggy/build.py +15 -4
- bloggy/config.py +8 -0
- bloggy/core.py +707 -91
- bloggy/main.py +3 -3
- bloggy/static/scripts.js +657 -45
- bloggy-0.2.3.dist-info/METADATA +167 -0
- bloggy-0.2.3.dist-info/RECORD +13 -0
- bloggy-0.1.43.dist-info/METADATA +0 -926
- bloggy-0.1.43.dist-info/RECORD +0 -13
- {bloggy-0.1.43.dist-info → bloggy-0.2.3.dist-info}/WHEEL +0 -0
- {bloggy-0.1.43.dist-info → bloggy-0.2.3.dist-info}/entry_points.txt +0 -0
- {bloggy-0.1.43.dist-info → bloggy-0.2.3.dist-info}/licenses/LICENSE +0 -0
- {bloggy-0.1.43.dist-info → bloggy-0.2.3.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: bloggy
|
|
3
|
+
Version: 0.2.3
|
|
4
|
+
Summary: A lightweight, elegant blogging platform built with FastHTML
|
|
5
|
+
Home-page: https://github.com/yeshwanth/bloggy
|
|
6
|
+
Author: Yeshwanth
|
|
7
|
+
Author-email:
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Project-URL: Homepage, https://github.com/yeshwanth/bloggy
|
|
10
|
+
Project-URL: Repository, https://github.com/yeshwanth/bloggy
|
|
11
|
+
Project-URL: Issues, https://github.com/yeshwanth/bloggy/issues
|
|
12
|
+
Keywords: fasthtml,blog,markdown,htmx,mermaid,sidenotes
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Framework :: FastAPI
|
|
22
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
23
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
|
+
Requires-Python: >=3.9
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: python-fasthtml>=0.6.9
|
|
28
|
+
Requires-Dist: mistletoe>=1.4.0
|
|
29
|
+
Requires-Dist: python-frontmatter>=1.1.0
|
|
30
|
+
Requires-Dist: uvicorn>=0.30.0
|
|
31
|
+
Requires-Dist: monsterui>=0.0.37
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
34
|
+
Requires-Dist: black>=24.0.0; extra == "dev"
|
|
35
|
+
Requires-Dist: ruff>=0.5.0; extra == "dev"
|
|
36
|
+
Dynamic: home-page
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
Dynamic: requires-python
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
title: Bloggy
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
<p align="center">
|
|
45
|
+
<img src="static/icon.png" alt="Bloggy icon" class="bloggy-icon" style="width: 256px;">
|
|
46
|
+
</p>
|
|
47
|
+
|
|
48
|
+
<p class="bloggy-caption" style="text-align: center;">
|
|
49
|
+
Markdown lovers write<br>
|
|
50
|
+
Python roots, JavaScript sparks<br>
|
|
51
|
+
Styles without limits
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
Bloggy is a Python‑first blogging tool: drop in Markdown, get a site instantly.
|
|
57
|
+
Simple by default, infinitely customizable for CSS lovers.
|
|
58
|
+
|
|
59
|
+
## Quick Start
|
|
60
|
+
1. Install Bloggy:
|
|
61
|
+
```bash
|
|
62
|
+
pip install bloggy
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
2. Create a directory with your markdown files:
|
|
66
|
+
```bash
|
|
67
|
+
mkdir my-blog
|
|
68
|
+
cd my-blog
|
|
69
|
+
echo "# Hello World" > hello.md
|
|
70
|
+
mkdir -p posts
|
|
71
|
+
echo "# My First Post\nThis is a sample blog post." > posts/first-post
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
3. Run Bloggy:
|
|
75
|
+
```bash
|
|
76
|
+
bloggy .
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
4. Open your browser at `http://127.0.0.1:5001`
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## Key Features
|
|
83
|
+
|
|
84
|
+
### ✨ Advanced Markdown Features
|
|
85
|
+
- **Footnotes as Sidenotes**: `[^1]` references become elegant margin notes on desktop, expandable on mobile with smooth animations
|
|
86
|
+
- **YouTube Embeds**: Use `[yt:VIDEO_ID]` or `[yt:VIDEO_ID|Caption]` for responsive iframe cards with aspect-ratio containers
|
|
87
|
+
- **Task Lists**: `- [ ]` / `- [x]` render as custom styled checkboxes (green for checked, gray for unchecked) with SVG checkmarks
|
|
88
|
+
- **Mermaid Diagrams**: Full support for flowcharts, sequence diagrams, state diagrams, Gantt charts, etc.
|
|
89
|
+
- **Interactive Diagrams**:
|
|
90
|
+
- Zoom with mouse wheel (zooms towards cursor position)
|
|
91
|
+
- Pan by dragging with mouse
|
|
92
|
+
- Built-in controls: fullscreen, reset, zoom in/out buttons
|
|
93
|
+
- Auto-scaling based on diagram aspect ratio (wide diagrams like Gantt charts get special handling)
|
|
94
|
+
- Fullscreen modal viewer with dark mode support
|
|
95
|
+
- **Theme-aware Rendering**: Diagrams automatically re-render when switching light/dark mode via MutationObserver
|
|
96
|
+
- **Mermaid Frontmatter**: Configure diagram size with YAML frontmatter (width, height, min-height)
|
|
97
|
+
- **Tabbed Content**: Create multi-tab sections using `:::tabs` and `::tab{title="..."}` syntax with smooth transitions
|
|
98
|
+
- **Relative Links**: Full support for relative markdown links (`./file.md`, `../other.md`) with automatic path resolution
|
|
99
|
+
- **Plain-Text Headings**: Inline markdown in headings is stripped for clean display and consistent anchor slugs
|
|
100
|
+
- **Math Notation**: KaTeX support for inline `$E=mc^2$` and block `$$` math equations, auto-renders after HTMX swaps
|
|
101
|
+
- **Superscript & Subscript**: Use `^text^` for superscript and `~text~` for subscript (preprocessed before rendering)
|
|
102
|
+
- **Strikethrough**: Use `~~text~~` for strikethrough formatting
|
|
103
|
+
- **Pandoc-style Attributes**: Add classes to inline text with `` `text`{.class #id} `` syntax for semantic markup (renders as `<span>` tags, not `<code>`)
|
|
104
|
+
- **Cascading Custom CSS**: Add `custom.css` or `style.css` files at multiple levels (root, folders) with automatic scoping
|
|
105
|
+
|
|
106
|
+
See the full list in [Markdown Writing Features](bloggy%20manual/markdown-features.md).
|
|
107
|
+
|
|
108
|
+
### 🎨 Modern UI
|
|
109
|
+
- **Responsive Design**: Works beautifully on all screen sizes with mobile-first approach
|
|
110
|
+
- **Three-Panel Layout**: Posts sidebar, main content, and table of contents for easy navigation
|
|
111
|
+
- **Dark Mode**: Automatic theme switching with localStorage persistence and instant visual feedback
|
|
112
|
+
- **HTMX Navigation**: Fast, SPA-like navigation without full page reloads using `hx-get`, `hx-target`, and `hx-push-url`
|
|
113
|
+
- **Collapsible Folders**: Organize posts in nested directories with chevron indicators and smooth expand/collapse
|
|
114
|
+
- **Sidebar Search**: HTMX-powered filename search with results shown below the search bar (tree stays intact)
|
|
115
|
+
- **PDF Posts**: PDFs show up in the sidebar and open inline in the main content area
|
|
116
|
+
- **Auto-Generated TOC**: Table of contents automatically extracted from headings with scroll-based active highlighting
|
|
117
|
+
- **TOC Autoscroll + Accurate Highlights**: Active TOC item stays in view and highlight logic handles duplicate headings
|
|
118
|
+
- **Mobile Menus**: Slide-in panels for posts and TOC on mobile devices with smooth transitions
|
|
119
|
+
- **Sticky Navigation**: Navbar stays at top while scrolling, with mobile menu toggles
|
|
120
|
+
- **Active Link Highlighting**: Current post and TOC section highlighted with blue accents
|
|
121
|
+
- **Auto-Reveal in Sidebar**: Active post automatically expanded and scrolled into view when opening sidebar
|
|
122
|
+
- **Ultra-Thin Scrollbars**: Custom styled 3px scrollbars that adapt to light/dark theme
|
|
123
|
+
- **Frosted Glass Sidebars**: Backdrop blur and transparency effects on sidebar components
|
|
124
|
+
|
|
125
|
+
| Feature | Description |
|
|
126
|
+
|-----------------------------|--------------------------------------------------|
|
|
127
|
+
| FastHTML Integration | Built on FastHTML for high performance and ease of use |
|
|
128
|
+
| Advanced Markdown Support | Footnotes as sidenotes, YouTube embeds, task lists, Mermaid diagrams, math notation, tabbed content, and more |
|
|
129
|
+
| Modern UI | Responsive design, dark mode, three-panel layout, HTMX navigation |
|
|
130
|
+
| Interactive Diagrams | Zoomable, pannable Mermaid diagrams with fullscreen support |
|
|
131
|
+
|
|
132
|
+
## Installation
|
|
133
|
+
|
|
134
|
+
### From PyPI (recommended)
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
pip install bloggy
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### From source
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
git clone https://github.com/yeshwanth/bloggy.git
|
|
144
|
+
cd bloggy
|
|
145
|
+
pip install -e .
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Configuration
|
|
149
|
+
|
|
150
|
+
Bloggy supports four ways to configure your blog (in priority order):
|
|
151
|
+
|
|
152
|
+
1. cli arguments (e.g. `bloggy /path/to/markdown`) - Highest priority
|
|
153
|
+
1. **[`.bloggy` configuration file](bloggy%20manual/configuration.md)** (TOML format)
|
|
154
|
+
2. **Environment variables** - Fallback
|
|
155
|
+
3. **Default values** - Final fallback
|
|
156
|
+
|
|
157
|
+
## Bloggy Manual
|
|
158
|
+
|
|
159
|
+
Short, focused guides for deeper topics. Start with configuration and writing content, then dive into architecture and advanced details.
|
|
160
|
+
|
|
161
|
+
- [Configuration & CLI](bloggy%20manual/configuration.md)
|
|
162
|
+
- [Markdown Writing Features](bloggy%20manual/markdown-features.md)
|
|
163
|
+
- [Mermaid Diagrams](bloggy%20manual/mermaid-diagrams.md)
|
|
164
|
+
- [Architecture Overview](bloggy%20manual/architecture.md)
|
|
165
|
+
- [Theming & CSS](bloggy%20manual/theming.md)
|
|
166
|
+
- [Security & Auth](bloggy%20manual/security.md)
|
|
167
|
+
- [Advanced Behavior](bloggy%20manual/advanced.md)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
bloggy/__init__.py,sha256=762R7tMFCoJX-ZnVeI2QvBmIL8PQdPvjGmE_MUPjuOc,158
|
|
2
|
+
bloggy/build.py,sha256=m-GcYDSCtk5y-sTn1_8kOFlaGEv10GL9Uid2pgz52GQ,24218
|
|
3
|
+
bloggy/config.py,sha256=5lcLFgnYkk-_o6_vGK-vaNk9vPJ-kOkGbnBJ9bGIUdc,4592
|
|
4
|
+
bloggy/core.py,sha256=YNGysvlmqcvbcTS7GhjNQTUm72sVcDuBHp-30sFEjnU,100740
|
|
5
|
+
bloggy/main.py,sha256=_WafOavniToqpyRVVwhIavhK6UBmzbuR3YKDHWRzvDE,4093
|
|
6
|
+
bloggy/static/scripts.js,sha256=13OU0HVZJQRxU2GL-iWraw3Lh_IDeMlsL7cfIro_2b0,45131
|
|
7
|
+
bloggy/static/sidenote.css,sha256=11XFyPV90fL4rzXfGHgjgOegBvKDqp-d3IWgiOwRVQI,1046
|
|
8
|
+
bloggy-0.2.3.dist-info/licenses/LICENSE,sha256=xV8xoN4VOL0uw9X8RSs2IMuD_Ss_a9yAbtGNeBWZwnw,11337
|
|
9
|
+
bloggy-0.2.3.dist-info/METADATA,sha256=fC_kTMgPWLUNKKpSQFAi5Ql7Qpumrq0DrQRTKQ6P2N0,7657
|
|
10
|
+
bloggy-0.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
+
bloggy-0.2.3.dist-info/entry_points.txt,sha256=CNKjPiT6yMMEPbeyHXsiN0xHMwBqSo-kO3J5ClISDW4,43
|
|
12
|
+
bloggy-0.2.3.dist-info/top_level.txt,sha256=YjR92iFE4BhzWG-Hg2l55N0xUNv5207y-daHjWja1aI,7
|
|
13
|
+
bloggy-0.2.3.dist-info/RECORD,,
|