Skip to main content

Vault to site

A program to convert Obsidian vaults into a static site. You can see an example of finished site with the default theme here. At the moment only the basic features of Obsidian are implemented and the program will fail to render certain things correctly, such as resizing an image as shown below.

![[image.jpg|size]]

You can put these in as issues on github as you find them and when I have the time I'll work on adding them. Or, you can fork it and build it out how you want.

Installation

Using pip

This is the easiest way.

pip install vault2site

Then just use as you would a normal console app:

vault2site <vault path> <output path>

From source

This assumes you'll be installing it to a virtual environment.

git clone https://github.com/kilroyjones/vault2site
cd vault2site
virtualenv -p python3 venv
. venv/bin/activate
pip install -r requirements.txt

From this point you can run the program as follows:

python app/vault2site/main.py <vault path> <output path>

Or, alternatively you can use pip and install it:

cd app
pip install .

Then, same as using pip you can run it as:

vault2site <vault path> <output path>

Usage

To convert your vault you should first include the .themes folder from the demo_vault folder in this repo into the root folder of your Obsidian vault. The .themes folder contains two files:

.themes
  ├─ page.css
  ├─ page.html

The above folder will not be visible from within Obsidian, as it hide files starting with periods by default.

Modifying the theme

The current theme is easily modified by changing the CSS (page.css), but the page.html file, when modified, should still contain the items {{header}}, {{menu}}, and {{body}} or the program won't run.

Add extensions

Currently working on allowing external extensions.

Metadata

Release files for vault2site 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vault2site 0.0.4
File Size Uploaded Provenance Actions
vault2site-0.0.4.tar.gz 7.0 kB Without provenance Details for vault2site-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vault2site 0.0.4
File Interpreter ABI Platform Actions
vault2site-0.0.4-py3-none-any.whl Python 3 none any Details for vault2site-0.0.4-py3-none-any.whl

Total release size: 17.9 kB

Release files / vault2site-0.0.4.tar.gz

Download URL vault2site-0.0.4.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ed85fe78f54e73f9e9e336efcf1cd63656ea598985b712d8fa4ce48e64488b05
BLAKE2b-256 checksum
How to use checksums
ca03a90dd2337f87ae08b3cbc63ba3f4c2079f729f9b2a298b76e53170f57415
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / vault2site-0.0.4-py3-none-any.whl

Download URL vault2site-0.0.4-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c033af994c7498d7d46d2fb600b6f0d383cf82cc0dc70020994aa37c95305bf
BLAKE2b-256 checksum
How to use checksums
7344d823f9e609ef5054fc0cda9a33f9ce369c616397fee838d910790e5f2134
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Security for vault2site 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page