No description
Find a file
2025-02-26 23:11:46 +00:00
.github/workflows Clean up deps 2025-02-23 17:23:04 +00:00
.vscode Hide dist 2025-02-20 22:26:54 +00:00
backend Don't merge with existing document on create for correctness reasons 2025-02-26 23:11:46 +00:00
frontend Don't merge with existing document on create for correctness reasons 2025-02-26 23:11:46 +00:00
.gitignore WIP test client 2025-02-22 12:56:23 +00:00
bump-version.sh Fix script 2025-01-06 21:57:09 +00:00
README.md Change virtual scroller 2025-01-12 12:00:09 +00:00

Check Publish server Docker image Publish Obsidian plugin

Install nvm

  • curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
  • nvm install 20
  • nvm use 20
  • Optionally set the system-wide default: nvm alias default 20

Set up Rust

  • Install rustup: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • sudo apt install llvm -y
  • rustup self update
  • rustup update
  • rustup install nightly
  • rustup default nightly
  • rustup component add llvm-tools-preview
  • cargo install cargo-generate cargo-fuzz cargo-insta rustfilt cargo-binutils
  • Install wasm-pack: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
  • cargo install cargo-insta sqlx-cli cargo-edit

Publish new version

./bump-version.sh patch

Update HTTP API TS bindings

npm install -g openapi-typescript
openapi-typescript http://localhost:3030/api.json --output plugin/src/services/types.ts

todo: enable
[workspace.lints.clippy]
single_call_fn = { level = "allow", priority = 1 }
absolute_paths = { level = "allow", priority = 1 }
arithmetic_side_effects = { level = "allow", priority = 1 }
similar_names = { level = "allow", priority = 1 }
self_named_module_files = { level = "allow", priority = 1 }
single_char_lifetime_names = { level = "allow", priority = 1 }
missing_docs_in_private_items = { level = "allow", priority = 1 }
question_mark_used =  { level = "allow", priority = 1 }
implicit_return = { level = "allow", priority = 1 }
pedantic = { level = "warn", priority = 0 }
cargo = { level = "warn", priority = 0 }

apt install flatpak flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo flatpak install flathub md.obsidian.Obsidian flatpak run md.obsidian.Obsidian