Plugin Obsidian pour pouvoir voir les SVG sans se soucier du thème clair/sombre. Utile principalement pour les exports des dessins excalidraw.
This repository has been archived on 2023-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2023-10-01 21:29:46 +02:00
.editorconfig Format, rebrand and add license file 2023-10-01 21:29:46 +02:00
.eslintignore Copy of obsidian-sample-plugin 2023-10-01 20:57:51 +02:00
.eslintrc Format, rebrand and add license file 2023-10-01 21:29:46 +02:00
.gitignore Format, rebrand and add license file 2023-10-01 21:29:46 +02:00
.npmrc Format, rebrand and add license file 2023-10-01 21:29:46 +02:00
esbuild.config.mjs Format, rebrand and add license file 2023-10-01 21:29:46 +02:00
LICENSE Format, rebrand and add license file 2023-10-01 21:29:46 +02:00
main.ts Copy of obsidian-sample-plugin 2023-10-01 20:57:51 +02:00
manifest.json Format, rebrand and add license file 2023-10-01 21:29:46 +02:00
package-lock.json Format, rebrand and add license file 2023-10-01 21:29:46 +02:00
package.json Format, rebrand and add license file 2023-10-01 21:29:46 +02:00
README.md Format, rebrand and add license file 2023-10-01 21:29:46 +02:00
styles.css Copy of obsidian-sample-plugin 2023-10-01 20:57:51 +02:00
tsconfig.json Format, rebrand and add license file 2023-10-01 21:29:46 +02:00
version-bump.mjs Copy of obsidian-sample-plugin 2023-10-01 20:57:51 +02:00
versions.json Copy of obsidian-sample-plugin 2023-10-01 20:57:51 +02:00

SVG-Obsidian

Plugin Obsidian pour pouvoir voir les SVG sans se soucier du thème clair/sombre.

Utile principalement pour les exports des dessins excalidraw.

How to use

  • Clone this repo.
  • Make sure your NodeJS is at least v16 (node --version).
  • npm i or yarn to install dependencies.
  • npm run dev to start compilation in watch mode.

Manually installing the plugin

  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/your-plugin-id/.

Improve code quality with eslint (optional)

  • ESLint is a tool that analyzes your code to quickly find problems. You can run ESLint against your plugin to find common bugs and ways to improve your code.
  • To use eslint with this project, make sure to install eslint from terminal:
    • npm install -g eslint
  • To use eslint to analyze this project use this command:
    • eslint main.ts
    • eslint will then create a report with suggestions for code improvement by file and line number.
  • If your source code is in a folder, such as src, you can use eslint with this command to analyze all files in that folder:
    • eslint .\src\

API Documentation

See https://github.com/obsidianmd/obsidian-api