divami-vyasa 0.3.50__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 (61) hide show
  1. divami_vyasa-0.3.50/LICENSE +201 -0
  2. divami_vyasa-0.3.50/MANIFEST.in +6 -0
  3. divami_vyasa-0.3.50/PKG-INFO +267 -0
  4. divami_vyasa-0.3.50/README.md +224 -0
  5. divami_vyasa-0.3.50/divami_vyasa.egg-info/PKG-INFO +267 -0
  6. divami_vyasa-0.3.50/divami_vyasa.egg-info/SOURCES.txt +59 -0
  7. divami_vyasa-0.3.50/divami_vyasa.egg-info/dependency_links.txt +1 -0
  8. divami_vyasa-0.3.50/divami_vyasa.egg-info/entry_points.txt +2 -0
  9. divami_vyasa-0.3.50/divami_vyasa.egg-info/not-zip-safe +1 -0
  10. divami_vyasa-0.3.50/divami_vyasa.egg-info/requires.txt +16 -0
  11. divami_vyasa-0.3.50/divami_vyasa.egg-info/top_level.txt +1 -0
  12. divami_vyasa-0.3.50/pyproject.toml +68 -0
  13. divami_vyasa-0.3.50/settings.ini +20 -0
  14. divami_vyasa-0.3.50/setup.cfg +4 -0
  15. divami_vyasa-0.3.50/setup.py +63 -0
  16. divami_vyasa-0.3.50/tests/test_callouts.py +59 -0
  17. divami_vyasa-0.3.50/vyasa/__init__.py +13 -0
  18. divami_vyasa-0.3.50/vyasa/admin_views.py +23 -0
  19. divami_vyasa-0.3.50/vyasa/agent.py +116 -0
  20. divami_vyasa-0.3.50/vyasa/assets.py +16 -0
  21. divami_vyasa-0.3.50/vyasa/auth/__init__.py +1 -0
  22. divami_vyasa-0.3.50/vyasa/auth/admin_helpers.py +43 -0
  23. divami_vyasa-0.3.50/vyasa/auth/context.py +32 -0
  24. divami_vyasa-0.3.50/vyasa/auth/flow_helpers.py +41 -0
  25. divami_vyasa-0.3.50/vyasa/auth/http.py +53 -0
  26. divami_vyasa-0.3.50/vyasa/auth/oauth_bootstrap.py +20 -0
  27. divami_vyasa-0.3.50/vyasa/auth/policy.py +52 -0
  28. divami_vyasa-0.3.50/vyasa/auth/runtime.py +22 -0
  29. divami_vyasa-0.3.50/vyasa/auth/views.py +27 -0
  30. divami_vyasa-0.3.50/vyasa/bootstrap.py +31 -0
  31. divami_vyasa-0.3.50/vyasa/build.py +697 -0
  32. divami_vyasa-0.3.50/vyasa/chat_bootstrap.py +42 -0
  33. divami_vyasa-0.3.50/vyasa/collab_runtime.py +38 -0
  34. divami_vyasa-0.3.50/vyasa/config.py +248 -0
  35. divami_vyasa-0.3.50/vyasa/content_routes.py +152 -0
  36. divami_vyasa-0.3.50/vyasa/core.py +1046 -0
  37. divami_vyasa-0.3.50/vyasa/drawing_auth.py +38 -0
  38. divami_vyasa-0.3.50/vyasa/helpers.py +461 -0
  39. divami_vyasa-0.3.50/vyasa/layout_helpers.py +40 -0
  40. divami_vyasa-0.3.50/vyasa/layout_page.py +95 -0
  41. divami_vyasa-0.3.50/vyasa/logging.py +36 -0
  42. divami_vyasa-0.3.50/vyasa/main.py +174 -0
  43. divami_vyasa-0.3.50/vyasa/markdown_pipeline.py +91 -0
  44. divami_vyasa-0.3.50/vyasa/markdown_rendering.py +559 -0
  45. divami_vyasa-0.3.50/vyasa/markdown_tabs.py +48 -0
  46. divami_vyasa-0.3.50/vyasa/markdown_tokens.py +42 -0
  47. divami_vyasa-0.3.50/vyasa/nav_views.py +18 -0
  48. divami_vyasa-0.3.50/vyasa/page_views.py +17 -0
  49. divami_vyasa-0.3.50/vyasa/rbac_config.py +47 -0
  50. divami_vyasa-0.3.50/vyasa/rbac_store.py +45 -0
  51. divami_vyasa-0.3.50/vyasa/search_http.py +13 -0
  52. divami_vyasa-0.3.50/vyasa/search_pages.py +23 -0
  53. divami_vyasa-0.3.50/vyasa/search_service.py +29 -0
  54. divami_vyasa-0.3.50/vyasa/search_views.py +23 -0
  55. divami_vyasa-0.3.50/vyasa/sidebar_helpers.py +53 -0
  56. divami_vyasa-0.3.50/vyasa/static/head-init.js +13 -0
  57. divami_vyasa-0.3.50/vyasa/static/header.css +126 -0
  58. divami_vyasa-0.3.50/vyasa/static/scripts.js +2542 -0
  59. divami_vyasa-0.3.50/vyasa/static/sidenote.css +21 -0
  60. divami_vyasa-0.3.50/vyasa/tree_rendering.py +88 -0
  61. divami_vyasa-0.3.50/vyasa/tree_service.py +40 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2022, fastai
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,6 @@
1
+ include settings.ini
2
+ include LICENSE
3
+ include README.md
4
+ recursive-include vyasa/static *
5
+ recursive-exclude * __pycache__
6
+ recursive-exclude * *.py[co]
@@ -0,0 +1,267 @@
1
+ Metadata-Version: 2.4
2
+ Name: divami-vyasa
3
+ Version: 0.3.50
4
+ Summary: A lightweight, elegant blogging platform built with FastHTML
5
+ Home-page: https://github.com/yeshwanth/vyasa
6
+ Author: Yeshwanth
7
+ Author-email:
8
+ License: Apache-2.0
9
+ Project-URL: Homepage, https://github.com/yeshwanth/vyasa
10
+ Project-URL: Repository, https://github.com/yeshwanth/vyasa
11
+ Project-URL: Issues, https://github.com/yeshwanth/vyasa/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.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Framework :: FastAPI
21
+ Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Python: >=3.9
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: python-fasthtml>=0.6.9
27
+ Requires-Dist: mistletoe>=1.4.0
28
+ Requires-Dist: python-frontmatter>=1.1.0
29
+ Requires-Dist: uvicorn>=0.30.0
30
+ Requires-Dist: monsterui>=0.0.37
31
+ Requires-Dist: pylogue>=0.3
32
+ Requires-Dist: loguru>=0.7.3
33
+ Requires-Dist: fastsql>=2.1.2
34
+ Provides-Extra: dev
35
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
36
+ Requires-Dist: black>=24.0.0; extra == "dev"
37
+ Requires-Dist: ruff>=0.5.0; extra == "dev"
38
+ Provides-Extra: auth
39
+ Requires-Dist: authlib>=1.3.0; extra == "auth"
40
+ Dynamic: home-page
41
+ Dynamic: license-file
42
+ Dynamic: requires-python
43
+
44
+ ---
45
+ title: Vyāsa
46
+ ---
47
+
48
+ <p align="center">
49
+ <img src="static/icon.png" alt="Vyāsa icon" class="vyasa-icon" style="width: 256px;">
50
+ </p>
51
+
52
+ <p class="vyasa-caption" style="text-align: center;">
53
+ Markdown feeds Python<br>
54
+ Instant sites, no code juggling<br>
55
+ CSS reigns supreme
56
+ </p>
57
+
58
+
59
+ ---
60
+
61
+ Vyāsa is a Python-first blogging platform designed to turn your Markdown files into a fully-featured website in seconds. Write your content in clean, simple Markdown—no boilerplate, no configuration hassles—and watch your site come alive instantly. Whether you're a minimalist who wants it just to work or a CSS enthusiast ready to craft pixel-perfect designs, Vyāsa adapts to your needs. Start with zero configuration and customize every pixel when you're ready.[^1]
62
+
63
+ [^1]: If you're curious about how the intro was styled, [visit this page](https://github.com/sizhky/vyasa/blob/fa9a671931ad69b24139ba9d105bbadd8753b85b/custom.css#L36C1-L36C13).<br>
64
+ Check out the [Theming & CSS](vyasa%20manual/theming.md) guide for details on customizing your blog's appearance.
65
+
66
+ /// info
67
+ **Vyāsa** is named after the legendary sage **Krishna Dvaipayana Vyāsa**, who is credited with compiling the ancient Indian epic - the Mahabharata, 18 puranas and many more spiritually significant works.
68
+
69
+ Just as Vyāsa organized vast knowledge into a coherent narrative, Vyāsa the blogging platform helps you organize your thoughts and content into a beautiful, functional website with ease.
70
+ ///
71
+
72
+ ---
73
+
74
+ ## Quick Start
75
+ 1. Install Vyāsa:
76
+ ```bash
77
+ pip install vyasa
78
+ ```
79
+
80
+ 2. Create a directory with your markdown files:
81
+ ```bash
82
+ mkdir my-blog
83
+ cd my-blog
84
+ echo "# Hello World" > hello.md
85
+ mkdir -p posts
86
+ echo "# My First Post\nThis is a sample blog post." > posts/first-post.md
87
+ ```
88
+
89
+ 3. Run Vyāsa:
90
+ ```bash
91
+ vyasa .
92
+ ```
93
+
94
+ 4. Open your browser at `http://127.0.0.1:5001`
95
+
96
+
97
+ ## Key Features
98
+
99
+ ```mermaid
100
+ mindmap
101
+ root((🚀 Vyāsa Features))
102
+ 📝 Markdown
103
+ Footnotes as Sidenotes
104
+ YouTube Embeds
105
+ Task Lists
106
+ Math Notation
107
+ Superscript & Subscript
108
+ Strikethrough
109
+ Relative Links
110
+ Plain-Text Headings
111
+ Pandoc-style Attributes
112
+ Title Abbreviations
113
+ Folder Notes
114
+ 🎨 Interactive Elements
115
+ Reveal.js Slides
116
+ Present Mode
117
+ Horizontal + Vertical Slides
118
+ Frontmatter Config Support
119
+ Theme + Highlight Control
120
+ Mermaid Diagrams
121
+ Flowcharts
122
+ Sequence Diagrams
123
+ State Diagrams
124
+ Gantt Charts
125
+ D2 Diagrams
126
+ Layouts & Themes
127
+ Composition Animation
128
+ Scenario/Layers Support
129
+ Interactive Diagrams
130
+ Zoom & Pan
131
+ Fullscreen Mode
132
+ Dark Mode Support
133
+ Auto-scaling
134
+ Tabbed Content
135
+ Custom CSS Cascade
136
+ UI/UX
137
+ Responsive Design
138
+ Dark Mode
139
+ Three-Panel Layout
140
+ HTMX Navigation
141
+ Collapsible Folders
142
+ Sidebar Search
143
+ Auto-Generated TOC
144
+ Mobile Menus
145
+ Sticky Navigation
146
+ Active Link Highlighting
147
+ PDF Support
148
+ Copy Button
149
+ ⚙️ Technical
150
+ FastHTML Foundation
151
+ Configuration File Support
152
+ CLI Arguments
153
+ Environment Variables
154
+ Security & Auth
155
+ Advanced Customization
156
+ ```
157
+
158
+ ### ✨ Advanced Markdown Features
159
+ - **Footnotes as Sidenotes**: `[^1]` references become elegant margin notes on desktop, expandable on mobile with smooth animations
160
+ - **YouTube Embeds**: Use `[yt:VIDEO_ID]` or `[yt:VIDEO_ID|Caption]` for responsive iframe cards with aspect-ratio containers
161
+ - **Task Lists**: `- [ ]` / `- [x]` render as custom styled checkboxes (green for checked, gray for unchecked) with SVG checkmarks
162
+ - **Mermaid Diagrams**: Full support for flowcharts, sequence diagrams, state diagrams, Gantt charts, etc.
163
+ - **D2 Diagrams**: Supports architecture/process diagrams with interactive rendering and composition animation support.
164
+ - **Interactive Diagrams**:
165
+ - Zoom with mouse wheel (zooms towards cursor position)
166
+ - Pan by dragging with mouse
167
+ - Built-in controls: fullscreen, reset, zoom in/out buttons
168
+ - Auto-scaling based on diagram aspect ratio
169
+ - Fullscreen modal viewer with dark mode support
170
+ - **Theme-aware Rendering**: Diagrams automatically re-render when switching light/dark mode via MutationObserver
171
+ - **Mermaid Frontmatter**: Configure diagram size and metadata with YAML frontmatter (`width`, `height`, `aspect_ratio`, `title`)
172
+ - **D2 Frontmatter**: Configure rendering and animation with YAML frontmatter:
173
+ - `width`, `height`, `title`
174
+ - `layout` (`elk`, `dagre`, etc.; default is `elk`), `theme_id`, `dark_theme_id`, `sketch`
175
+ - `pad`, `scale`
176
+ - `target` (board/layer target), `animate_interval`/`animate-interval`, `animate`
177
+ - Notes:
178
+ - Composition animation is enabled with `animate_interval`
179
+ - If animation is enabled and `target` is omitted, Vyāsa auto-targets all boards (`*`)
180
+ - If `title` is provided, it is used for fullscreen modal title and as a small centered caption under the diagram
181
+ - **Tabbed Content**: Create multi-tab sections using `:::tabs` and `::tab{title="..."}` syntax with smooth transitions
182
+ - **Code Snippet Includes**: Embed external source files with `{* path ln[1:24] hl[9:11,22] *}` and highlight selected source lines
183
+ - **Slash Callouts**: Add FastAPI-style callouts with `/// info` ... `///` blocks for notes, warnings, and similar inline docs
184
+ - **Relative Links**: Full support for relative markdown links (`./file.md`, `../other.md`) with automatic path resolution
185
+ - **Plain-Text Headings**: Inline markdown in headings is stripped for clean display and consistent anchor slugs
186
+ - **Math Notation**: KaTeX support for inline `$E=mc^2$` and block `$$` math equations, auto-renders after HTMX swaps
187
+ - **Superscript & Subscript**: Use `^text^` for superscript and `~text~` for subscript (preprocessed before rendering)
188
+ - **Strikethrough**: Use `~~text~~` for strikethrough formatting
189
+ - **Pandoc-style Attributes**: Add classes to inline text with `` `text`{.class #id} `` syntax for semantic markup (renders as `<span>` tags, not `<code>`)
190
+ - **Cascading Custom CSS**: Add `custom.css` or `style.css` files at multiple levels (root, folders) with automatic scoping
191
+ - **Title Abbreviations**: Configure `.vyasa` `abbreviations` to force uppercase acronyms in sidebar and slug-based titles (e.g., `ai-features` $\to$ `AI Features`)
192
+ - **Folder Notes**: `index.md`, `README.md`, or `<folder>.md` can act as a folder summary; clicking the folder name opens it
193
+
194
+ See the full list in [Markdown Writing Features](vyasa%20manual/markdown-features.md).
195
+
196
+ ### 🎬 Reveal.js Slides
197
+ - **One-click Present Mode**: Add `slides: true` in frontmatter and Vyāsa shows a `Present` button that opens `/slides/<path>` in Reveal.js
198
+ - **Markdown-Native Slide Splits**: Use `---` for horizontal slides and `--` for vertical slides (customizable with `separator` and `separatorVertical`)
199
+ - **Frontmatter Config Support**: Set Reveal options via nested `reveal:` or top-level `reveal_*` keys; these are passed into `Reveal.initialize(...)`
200
+ - **Theme + Highlight Control**: Configure `theme` and `highlightTheme` for deck appearance and code styling
201
+ - **Optional Linear Right-Arrow Navigation**: Use `reveal_rightAdvancesAll: true` (or `reveal: { rightAdvancesAll: true }`) so Right Arrow advances through every slide, including vertical/below slides
202
+ - **Slides with Existing Vyāsa Features**: Mermaid, D2, code highlighting, and math rendering all work inside slides
203
+
204
+ See the working example in [Reveal Slides Demo](demo/reveal-slides.md).
205
+
206
+ ### 🎨 Modern UI
207
+ - **Responsive Design**: Works beautifully on all screen sizes with mobile-first approach
208
+ - **Three-Panel Layout**: Posts sidebar, main content, and table of contents for easy navigation
209
+ - **Dark Mode**: Automatic theme switching with localStorage persistence and instant visual feedback
210
+ - **HTMX Navigation**: Fast, SPA-like navigation without full page reloads using `hx-get`, `hx-target`, and `hx-push-url`
211
+ - **Collapsible Folders**: Organize posts in nested directories with chevron indicators and smooth expand/collapse
212
+ - **Sidebar Search**: HTMX-powered filename search with results shown below the search bar (tree stays intact)
213
+ - **PDF Posts**: PDFs show up in the sidebar and open inline in the main content area
214
+ - **Auto-Generated TOC**: Table of contents automatically extracted from headings with scroll-based active highlighting
215
+ - **TOC Autoscroll + Accurate Highlights**: Active TOC item stays in view and highlight logic handles duplicate headings
216
+ - **Inline Copy Button**: Copy raw markdown from a button placed right next to the post title
217
+ - **Mobile Menus**: Slide-in panels for posts and TOC on mobile devices with smooth transitions
218
+ - **Sticky Navigation**: Navbar stays at top while scrolling, with mobile menu toggles
219
+ - **Active Link Highlighting**: Current post and TOC section highlighted with blue accents
220
+ - **Auto-Reveal in Sidebar**: Active post automatically expanded and scrolled into view when opening sidebar
221
+ - **Ultra-Thin Scrollbars**: Custom styled 3px scrollbars that adapt to light/dark theme
222
+ - **Frosted Glass Sidebars**: Backdrop blur and transparency effects on sidebar components
223
+
224
+ | Feature | Description |
225
+ |-----------------------------|--------------------------------------------------|
226
+ | FastHTML Integration | Built on FastHTML for high performance and ease of use |
227
+ | Advanced Markdown Support | Footnotes as sidenotes, YouTube embeds, task lists, Mermaid + D2 diagrams, math notation, tabbed content, and more |
228
+ | Modern UI | Responsive design, dark mode, three-panel layout, HTMX navigation |
229
+ | Interactive Diagrams | Zoomable, pannable Mermaid and D2 diagrams with fullscreen support |
230
+
231
+ ## Installation
232
+
233
+ ### From PyPI (recommended)
234
+
235
+ ```bash
236
+ pip install vyasa
237
+ ```
238
+
239
+ ### From source
240
+
241
+ ```bash
242
+ git clone https://github.com/yeshwanth/vyasa.git
243
+ cd vyasa
244
+ pip install -e .
245
+ ```
246
+
247
+ ## Configuration
248
+
249
+ Vyāsa supports four ways to configure your blog (in priority order):
250
+
251
+ 1. cli arguments (e.g. `vyasa /path/to/markdown`) - Highest priority
252
+ 1. **[`.vyasa` configuration file](vyasa%20manual/configuration.md)** (TOML format)
253
+ 2. **Environment variables** - Fallback
254
+ 3. **Default values** - Final fallback
255
+
256
+ ## Vyāsa Manual
257
+
258
+ Short, focused guides for deeper topics. Start with configuration and writing content, then dive into architecture and advanced details.
259
+
260
+ - [Configuration & CLI](vyasa%20manual/configuration.md)
261
+ - [Markdown Writing Features](vyasa%20manual/markdown-features.md)
262
+ - [Mermaid Diagrams](vyasa%20manual/mermaid-diagrams.md)
263
+ - [D2 Diagrams](vyasa%20manual/d2-diagrams.md)
264
+ - [Architecture Overview](vyasa%20manual/architecture.md)
265
+ - [Theming & CSS](vyasa%20manual/theming.md)
266
+ - [Security & Auth](vyasa%20manual/security.md)
267
+ - [Advanced Behavior](vyasa%20manual/advanced.md)