Module mdzk::utils

source · []

Functions

Returns a relative path from from to to.

Escape characters for usage in URLs

Search up the filesystem to find a mdzk.toml file, and return it’s parent directory. This is simply used to find the root of any mdzk vault.

Obtains author name from git config file by running the git config command.

Checks if the URL starts with a scheme (like https:).

Takes a path and returns a path containing just enough ../ to point to the root of the given path.

Searches for Markdown-files in the source directory, and updates the summary file correspondingly. Ignores the summary file itself.

Ease-of-use function for creating a file and writing bytes to it