decaf-dev_obsidian-vault-ex.../CONTRIBUTING.md
2024-06-11 14:01:24 -06:00

2.4 KiB

Contribute to Vault Explorer

Thank you for considering contributing to Vault Explorer!

Testing

If you find a bug, please open an issue for it. If there's functionality that is annoying or you think that the UI can be improved, please open an issue for that as well. All feedback goes into making the plugin better.

Features

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

To get started with development, follow the guide below:

Installation

Clone the repository

git clone https://github.com/decaf-dev/obsidian-dataloom.git

Install Bun.sh for your operating system

Change directories to the clone repository

cd obsidian-vault-explorer

Install project dependencies

bun install

Build the project. This will create a dist folder

bun run build

Create a symbolic link from the dist folder to your Obsidan vault.

Tip

I recommend creating a new Obsidian vault just for development. This way, you won't accidentally modify any of your files.

ln -s <repository-path>/dist <development-vault-path>/.obsidian/plugins/vault-explorer-dev

For example

ln -s /users/decaf-dev/desktop/obsidian-vault-explorer/dist /users/decaf-dev/desktop/dev-vault/.obsidian/plugins/vault-explorer-dev

Open your Obsidian vault

Go to Community plugins

Find Vault Explorer and then enable the plugin by switching the toggle.

Note

You may need to click the Reload plugins button

Development

Checkout the dev branch and make a child branch off of it.

git pull dev
git checkout dev
git checkout -b <your-branch-name>

Important

Please make sure that you make a branch off of dev instead of master. This will help reduce merge conflicts by making sure that you have the latest code changes.

Run esbuild in development mode

bun run dev

Make some code changes

Restart Obsidian to see your code changes

Pull requests

Once you have made your changes, push your code to GitHub.

git push origin <your-branch>

Using the GitHub website, open a pull request. You can do that by clicking on the Pull requests tab and clicking New pull request

Please choose dev as the branch you want to merge into.

Your pull request will be reviewed. Once it is approved, it will be merged into dev.