Skip to content

Commit fcfb6d7

Browse files
author
yaroslav
committed
small changes
1 parent cd62765 commit fcfb6d7

21 files changed

+156
-190
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ __pycache__/
44
*.pyo
55
*.pyd
66
venv/
7+
.venv/
78
.env
89
*.log
910
*.ipynb
@@ -15,5 +16,6 @@ tools/.ipynb_checkpoints/
1516
test_projects/
1617

1718
build/
19+
dist/
1820
!tests/
1921
omd2tex.egg-info/

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Savateykin Yaroslav
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,45 @@
1-
[Beamer theme list](https://github.com/martinbjeldbak/ultimate-beamer-theme-list?tab=readme-ov-file)
1+
# omd2tex
2+
3+
Markdown to LaTeX converter specified for use with Obsidian.
4+
5+
## Install
6+
7+
```bash
8+
uv pip install omd2tex
9+
```
10+
11+
## Development (uv)
12+
13+
```bash
14+
uv venv
15+
uv pip install -e ".[dev,test,docs]"
16+
```
17+
18+
Run tests:
19+
20+
```bash
21+
uv run pytest
22+
```
23+
24+
## Build and publish
25+
26+
```bash
27+
uv pip install build twine
28+
uv run python -m build
29+
uv run twine upload dist/*
30+
```
31+
32+
## Documentation
33+
34+
```bash
35+
uv pip install -e ".[docs]"
36+
uv run sphinx-build -b html docs/source docs/_build/html
37+
```
38+
39+
## References
40+
41+
- [Beamer theme list](https://github.com/martinbjeldbak/ultimate-beamer-theme-list?tab=readme-ov-file)
42+
43+
## License
44+
45+
This project is licensed under the MIT License.

docs/README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
11
# Documentation
22

3-
Build the HTML docs locally.
3+
Build the HTML docs locally with uv.
44

55
## Setup
66

77
```bash
8-
python -m venv .venv
9-
source .venv/bin/activate # or .venv\Scripts\activate on Windows
10-
pip install -r docs/requirements.txt
8+
uv venv
9+
uv pip install -e ".[docs]"
1110
```
1211

1312
## Build HTML
1413

1514
```bash
16-
cd docs
17-
sphinx-build -b html source _build/html
15+
uv run sphinx-build -b html docs/source docs/_build/html
1816
```
1917

2018
Output appears in `docs/_build/html`. Open `index.html` in a browser to view.
2119

2220
## GitHub Pages
2321

24-
GitHub Pages can publish the docs via GitHub Actions (Source: GitHub Actions). After pushing to `main`, enable Pages in Repository Settings Pages with Source set to GitHub Actions.
22+
GitHub Pages can publish the docs via GitHub Actions (Source: GitHub Actions). After pushing to `main`, enable Pages in Repository Settings -> Pages with Source set to GitHub Actions.
2523

26-
The site uses the PyData Sphinx Theme (pulled in via `docs/requirements.txt`).
24+
The site uses the PyData Sphinx Theme (pulled in via the `docs` extra).
2725

2826
To serve from the `gh-pages` branch (recommended for this workflow):
29-
Settings Pages Build and deployment Source: Deploy from a branch Branch: `gh-pages` / folder: `/ (root)`.
27+
Settings -> Pages -> Build and deployment -> Source: Deploy from a branch -> Branch: `gh-pages` / folder: `/ (root)`.

docs/requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

notebooks/@citation1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test)

notebooks/@citation2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test)

notebooks/@citation3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test)
3.65 KB
Loading

0 commit comments

Comments
 (0)