Skip to content

Commit 6089819

Browse files
authored
Merge pull request #1 from mark-when/post-beta
Post beta clean-up
2 parents 15da225 + f40ef51 commit 6089819

26 files changed

+144
-2123
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

README.md

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,41 @@
1-
# Obsidian Markwhen
1+
# Markwhen Obsidian Plugin
22

3-
![](./screenshot.png)
3+
![markwhen-obsidian-plugin](./screenshot.png)
44

55
![Obsidian Downloads](https://img.shields.io/badge/dynamic/json?logo=obsidian&color=%23483699&label=downloads&query=%24%5B%22markwhen%22%5D.downloads&url=https%3A%2F%2Fraw.githubusercontent.com%2Fobsidianmd%2Fobsidian-releases%2Fmaster%2Fcommunity-plugin-stats.json)
66

77
This plugin integrates [Markwhen](https://github.com/mark-when/markwhen/) into [Obsidian.md](https://obsidian.md/). You can use markwhen syntax to create timelines.
88

9-
> **Note**
10-
> Latest release: NaN
11-
> Document version: developer
9+
> [!Note]
10+
> Latest release: 0.0.1
11+
> Document version: 0.0.1
12+
13+
## Installation
14+
15+
> [!Note]
16+
> Make sure that you are not in the **Restricted Mode**.
17+
18+
### Install the plugin manually
19+
20+
1. Go to the repo's latest [release page](https://github.com/mark-when/obsidian-plugin/releases/latest), and download `main.js`, `manifest.json` and `styles.css` (or the zip file).
21+
2. Copy these files to your local path `[your vault]/.obsidian/plugins/markwhen/`.
22+
3. Relaunch Obsidian, or refresh the plugin list, you will see this plugin.
23+
4. In the plugin list, enable `Markwhen` and enjoy!
24+
25+
### Install via BRAT
26+
27+
:construction:
1228

1329
## Development
1430

15-
Ensure you first have Obsidian installed. If the path to your vault is something other than `~/Documents/Obsidian Vault`, update `copyAssets.sh` to point to your vault's location.
31+
Ensure you first have Obsidian installed, and set up a development vault.
32+
33+
For developers on Linux / MacOS, if the path to your vault is something other than `~/Documents/Obsidian Vault`, update `copyAssets.sh` to point to your vault's location.
34+
35+
For developers on Windows, since there's no watch command out-of-the-box, you can place the repo right in the dev vault config directory (i.e. `[your vault]/.obsidian/plugins/markwhen/`), and set the `outDir` to `./` in `vite.config.ts` (vite complains about this).
36+
37+
> [!Note]
38+
> The plugin id in the manifest is `markwhen`, indicating users will find their plugin under the `.obsidian/plugins/markwhen` directory if they install this plugin from official Obsidian distribution.
1639
1740
```sh
1841
git clone [email protected]:mark-when/obsidian-plugin.git
@@ -21,20 +44,4 @@ npm i
2144
npm run vite
2245
```
2346

24-
## Installation
25-
26-
> **Note**
27-
> Make sure that you are not in the **Restricted Mode**.
28-
29-
The plugin is in active deveplopment.
30-
31-
### Install the plugin manually
32-
33-
1. Go to the repo's latest [release page](https://github.com/mark-when/obsidian-plugin/releases/latest), and download `obsidian-markwhen.zip`.
34-
2. Copy these files to your local path `[yourvault]/.obsidian/plugins/`.
35-
3. Launch/restart Obsidian, or refresh the plugin list, you will see this plugin.
36-
4. In the plugin list, enable `Markwhen` and enjoy!
37-
38-
### Building the plugin from source code
39-
40-
Check our [contributing instructions](CONTRIBUTING.md).
47+
You can download and enable the [Hot-Reload](https://github.com/pjeby/hot-reload) plugin in the dev vault to experience a smooth debugging workflow. Every time `main.js`, `manifest.json` or `styles.css` updates, it will trigger an auto-reload.

assets/icon.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

copyAssets.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

3-
cp ./out/* ~/Documents/Obsidian\ Vault/.obsidian/plugins/obsidian-markwhen
4-
cp ./assets/* ~/Documents/Obsidian\ Vault/.obsidian/plugins/obsidian-markwhen/assets
5-
cp ./styles.css ~/Documents/Obsidian\ Vault/.obsidian/plugins/obsidian-markwhen
3+
cp ./out/* ~/Documents/Obsidian\ Vault/.obsidian/plugins/markwhen
4+
cp ./assets/* ~/Documents/Obsidian\ Vault/.obsidian/plugins/markwhen/assets
5+
cp ./styles.css ~/Documents/Obsidian\ Vault/.obsidian/plugins/markwhen
6+
cp ./manifest.json ~/Documents/Obsidian\ Vault/.obsidian/plugins/markwhen

docs/CodeView,md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/PlainView.md

Lines changed: 0 additions & 146 deletions
This file was deleted.

0 commit comments

Comments
 (0)