A quick way to convert obsidian markdown docs to markdown static pages
Project description
ObsiDown
Convert obsidian files into well linked markdowns!
Example use cases
- Export Obsidian subdirectories while maintaining the links in markdown format
- Make obsidian math Kramdown-compatible
- Use obsidian to write for Jekyll web pages.
How to use
Define a configuration file config.yaml
. In the repo it is provided one as example.
Install the poetry
dependencies and then you just need to run poetry run python -m obsidown --config path/to/config.yaml
It's possible to install from pypi
index by pip install obsidown
.
Then you can run it with python -m obsidown
Feedback
This project is a hobby project used to automate some things I use myself. Currently it is a early early project! If you need additional features or report some issues or need help, feel free to open a new issue.
Documentation
The quickest way to check what is the format of the config file is to see the pydantic from config.py
.
Here I will just outline it briefly.
sources
defines where to look for the input files.paths
: where to look for the md files?images
: where to look for the linked images?
output
defines where to write the exported files.base
: defines the base url for linkspath
: defines a subpath for the markdown filesimages
: defines a subpath for the image fiilesfilesystem
: where to write
pipeline
: defines the single operations possible on a markdown file.name
: the identifier of the operation, you should checkdispatch.py
for a list of the operations.options
: variable options of the single operation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file obsidown-0.2.0.tar.gz
.
File metadata
- Download URL: obsidown-0.2.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0221abc0d57a5f8bf3d659896b471b3a729165e883839cc5aed5b09d2412736 |
|
MD5 | a58f75e64d08c17e5e7f310b0387cc90 |
|
BLAKE2b-256 | 148b2bc3410736881a253673c83da46cfb8721c08fcd0283960ef5bbffa86a27 |
File details
Details for the file obsidown-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: obsidown-0.2.0-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cea6b96529184487ed5cf4a0fd92dd678b60b58fca9f6e8f89da8f67a40cbf6 |
|
MD5 | bff449394cb26a5f231a8a9d3f67426e |
|
BLAKE2b-256 | cd86808d35bb27aa779b55fa54e53d61ddd304726828948751ed5ce834eefca9 |