Skip to main content

journalx supercharges your text-based journal

Project description

:pencil2: 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
  • Handlers mermaid codeblocks
  • [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

Install

You can install journalx using pip

pip install journalx

Commands

For help, just use

jx

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/Update 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. The title of the file is set to the first heading in the file. 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 metadata update

To clear metadata from all documents

jx metadata clear

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. All transfered files will be sent in *.pdc format instead of markdown. If the mermaid:True flag is present in the metdata, it'll also update all the mermaid codeblocks to have the delimeters {{< mermaid >}} and {{< /mermaid >}}

jx publish

For a specific file, use

jx publish -f PATH

or

jx publish --file PATH

Links

Github: https://github.com/altairmn/journalx

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

journalx-0.0.2.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

journalx-0.0.2.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file journalx-0.0.2.1.tar.gz.

File metadata

  • Download URL: journalx-0.0.2.1.tar.gz
  • Upload date:
  • Size: 5.4 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

Hashes for journalx-0.0.2.1.tar.gz
Algorithm Hash digest
SHA256 86b96bdc7af129f308e2195f5517a8bd3565290294d0618934ca611714b33a86
MD5 72e2a83e18ec3843ec169dfb9a616386
BLAKE2b-256 559c6ae256d273dd7876e746a0e48cdd57898e0252b1c62ebcfc4c4851ff3c57

See more details on using hashes here.

File details

Details for the file journalx-0.0.2.1-py3-none-any.whl.

File metadata

  • Download URL: journalx-0.0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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

Hashes for journalx-0.0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49d3cce186355b160a2315468987db8b534e4c24ef44ac4c9e32c3d7444b688b
MD5 0b63603abfe6f1d2c0edf492638ac5c5
BLAKE2b-256 29476f05dce7cf865cd3907df8291a2b6c24f4c50d3e92618121a00d980bd13b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page