journalx supercharges your text-based journal
Project description
Journalx: Supercharge your Obsidian Vault
Journalx makes it easy to use your Obsidian vault as the content source for your hugo website.
It's still in early stages and requires a lot of work, but it's useful right away if you have some key ingredients in place.
Prerequisites
- Python environment with Journalx installed
- Hugo blog setup
Your obsidian vault contains a lot of documents, but you want to publish only some them. Journalx handles:
- Automatically transfering documents that are tagged for publishing
- Transfers images to destination directory, and substitutes image paths in markdown
- [WIP] Watch dir for changes, and transfer on change
- [WIP] Build and publish after transfering documents
- [WIP] Handle other static assets other than files
- [WIP] Allow doc metadata to be specified by config file
- [WIP] Unit test for different scenarios
- [WIP] Better help messages
Commands
Publishing
config.ini
file contains settings which dictate the base directory of your hugo website.
To create the config if it's not present
jx init --publish-dir <publish-dir>
Add metadata to md
documents in your vault. This is required for publishing which looks for metadata values publish: True
and draft: False
in the document's metadata header.
If your documents don't have a yaml header (or only some of them do, not all), you can add it to all documents by
jx add-metadata
After you're done adding metadata, you can turn publish:True
and draft:False
on documents you want to publish.
The publish command make sure that they'll be transfered to configured {publish_dir}/content/post
directory while the images
that are present in the document will be transfered to {publish_dir}/static/images
and the image links will be updated.
jx publish
Project details
Release history Release notifications | RSS feed
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 journalx-0.0.1.tar.gz
.
File metadata
- Download URL: journalx-0.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 485310f2a49ab4395f63103747a3c0f6cc761b40f9d0069f5099ff341292fb8a |
|
MD5 | 9f0ccc2bf7f7e741baf49c5f4bedc4dd |
|
BLAKE2b-256 | cf5f9fd3db77a6dbeafb5a631f027c7adababc7dd3e71d16078667c32a3fa096 |
File details
Details for the file journalx-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: journalx-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 940663919e065ec5968440e89be95303f5084eb7cb19cd872d3c1bdc514ddca8 |
|
MD5 | 70815ccd12470f6b7e1ddd8920542810 |
|
BLAKE2b-256 | b617423740c147a849cb4a457fe3a100c4e3eb5aacf5f64d88214b1124a93631 |