docs: format readme

This commit is contained in:
antoKeinanen 2023-05-19 16:08:33 +03:00
parent afb0009961
commit 33e4aaf4cc

View file

@ -1,15 +1,20 @@
# Obsidian Advanced Merge # Obsidian Advanced Merge
Merge a folder of notes for easier export. This plugin is designed for the [obsidian](https://obsidian.md/) app. Merge a folder of notes for easier export. This plugin is designed for the [obsidian](https://obsidian.md/) app.
![preview](https://github.com/antoKeinanen/obsidian-advanced-merger/blob/master/media/1%200Ghz5j7MB_oKJdxoIc5-lg.gif?raw=true) ![preview](https://github.com/antoKeinanen/obsidian-advanced-merger/blob/master/media/1%200Ghz5j7MB_oKJdxoIc5-lg.gif?raw=true)
<p align="center"> <p align="center">
Preview of the plugin. Image by Preview of the plugin. Image by
<a href="https://medium.com/technology-hits/obsidian-plugins-review-14-20d087f0e23a">Nuno Campos</a> <a href="https://medium.com/technology-hits/obsidian-plugins-review-14-20d087f0e23a">Nuno Campos</a>
</p> </p>
# Installation # Installation
## Installation through Obsidian community marketplace ## Installation through Obsidian community marketplace
This plugin can now be installed inside Obsidian in the community plugins tab. [Link](obsidian://show-plugin?id=advanced-merger) This plugin can now be installed inside Obsidian in the community plugins tab. [Link](obsidian://show-plugin?id=advanced-merger)
1. Go to the Obsidian settings panel. 1. Go to the Obsidian settings panel.
2. Open the community plugins tab. 2. Open the community plugins tab.
3. Browse community plugins. 3. Browse community plugins.
@ -17,63 +22,77 @@ This plugin can now be installed inside Obsidian in the community plugins tab. [
5. Install and enable the plugin. 5. Install and enable the plugin.
## Manual installation ## Manual installation
1. Download the latest release from [releases page](https://github.com/antoKeinanen/obsidian-advanced-merger/releases). 1. Download the latest release from [releases page](https://github.com/antoKeinanen/obsidian-advanced-merger/releases).
2. Extract the zip archive. 2. Extract the zip archive.
3. Move the 2 files (`manifest.json`, and `main.js`) to `<your obsidian vault folder>/.obsidian/plugins/obsidian-advanced-merger` 3. Move the 2 files (`manifest.json`, and `main.js`) to `<your obsidian vault folder>/.obsidian/plugins/obsidian-advanced-merger`
4. Start Obsidian, go to settings>community plugins, and turn `Advanced merger` on. 4. Start Obsidian, go to settings>community plugins, and turn `Advanced merger` on.
# Usage # Usage
Using Advanced merger is very easy! Just right-click a folder and select `merge folder`. Using Advanced merger is very easy! Just right-click a folder and select `merge folder`.
# Contributing # Contributing
To build and test this repository it is advised to create a new vault. Clone this repository to `<your obsidian vault folder>/.obsidian/plugins/` and run `yarn install` and `yarn build` or `npm install` and `npm build` inside of is. Then in Obsidian toggle the plugin on and off to refresh it. To build and test this repository it is advised to create a new vault. Clone this repository to `<your obsidian vault folder>/.obsidian/plugins/` and run `yarn install` and `yarn build` or `npm install` and `npm build` inside of is. Then in Obsidian toggle the plugin on and off to refresh it.
All contributions are welcome, but before making anything big please consider starting a discussion in the issues tab. All contributions are welcome, but before making anything big please consider starting a discussion in the issues tab.
# Code of conduct # Code of conduct
- Make sure your code is formatted with the `npm/yarn run format` script.
- Use angular commit message style. More info [here](https://github.com/antoKeinanen/obsidian-advanced-merger#commit-message-format). - Make sure your code is formatted with the `npm/yarn run format` script.
- Use angular commit message style. More info [here](https://github.com/antoKeinanen/obsidian-advanced-merger#commit-message-format).
## Commit message format ## Commit message format
*This specification is inspired by and supersedes the [AngularJS commit message format.](https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit)*
_This specification is inspired by and supersedes the [AngularJS commit message format.](https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit)_
This format leads to easier-to-read commit history. This format leads to easier-to-read commit history.
All commit messages must conform to this format: All commit messages must conform to this format:
``` ```
<header> <header>
<BLANK LINE> <BLANK LINE>
<body> <body>
``` ```
## Commit Header ## Commit Header
The type field is always required. A summary is optional when bumping the version. If the commit is related to issue please refer to it. Every commit should only contain one type. The type field is always required. A summary is optional when bumping the version. If the commit is related to issue please refer to it. Every commit should only contain one type.
``` ```
<type>(<issue-id>): <short summary> <type>(<issue-id>): <short summary>
└─⫸ Summary in the present tense. Not capitalized. No period at the end. └─⫸ Summary in the present tense. Not capitalized. No period at the end.
└─⫸ Commit Type: build|docs|feat|fix|refactor|test
└─⫸ Commit Type: build|docs|feat|fix|perf|refactor|test
``` ```
### Type ### Type
**Example**: `fix(#123): fix a bug where XYZ`, `bump-version`, `feat(#123): add a feature that XYZ` **Example**: `fix(#123): fix a bug where XYZ`, `bump-version`, `feat(#123): add a feature that XYZ`
Must be one of the following: Must be one of the following:
- build: Changes that affect the build system or external dependencies
- docs: Documentation only changes - build: Changes that affect the build system or external dependencies
- feat: A new feature - docs: Documentation only changes
- fix: A bug fix - feat: A new feature
- refactor: A code change that neither fixes a bug nor adds a feature - fix: A bug fix
- test: Adding new tests or correcting existing tests - refactor: A code change that neither fixes a bug nor adds a feature
- test: Adding new tests or correcting existing tests
## Summary ## Summary
Use the summary field to provide a succinct description of the change: Use the summary field to provide a succinct description of the change:
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize the first letter - use the imperative, present tense: "change" not "changed" nor "changes"
- no dot (.) at the end - don't capitalize the first letter
- no dot (.) at the end
## Message body ## Message body
- Optional but recommended
- Just as in <subject> use imperative, present tense: “change” not “changed” nor “changes”
- Optional but recommended
- Just as in <subject> use imperative, present tense: “change” not “changed” nor “changes”
# Support # Support
You can support me by buying me a coffee at [buymeacoffee.com](https://www.buymeacoffee.com/antokeinanen)!
You can support me by buying me a coffee at [buymeacoffee.com](https://www.buymeacoffee.com/antokeinanen)!