A command-line tool to convert handwritten notes to markdown files
docs: updated to v0.3.0
Tejas Raskareb585ad6212e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2940fc0..01e03cc 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,13 @@# Changelog+## [0.3.0]++### Fixed+- Resolved an issue where Claude API throwed an error when using PDF files due to wrong type in request body.++### Added+- Added support for Notion. You can now save your notes directly to a Notion database.+## [0.2.4]### Addeddiff --git a/Cargo.lock b/Cargo.lockindex 1b7ec00..39506de 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1222,7 +1222,7 @@ dependencies = [[[package]]name = "notedmd"-version = "0.2.4"+version = "0.3.0"dependencies = ["anyhow","async-trait",diff --git a/Cargo.toml b/Cargo.tomlindex a9325de..c8f0b34 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -1,6 +1,6 @@[package]name = "notedmd"-version = "0.2.4"+version = "0.3.0"edition = "2024"description = "A command-line tool to convert handwritten notes into a clean and readable Markdown file."license = "MIT"diff --git a/README.md b/README.mdindex cf3bdc6..96f8512 100644--- a/README.md+++ b/README.md@@ -102,6 +102,23 @@ Make sure Ollama is installed and running on your local machine. You can downloa#### OpenAI API compatible clientsSupports all clients that are compatible with the OpenAI API. [LM Studio](https://lmstudio.ai/) for example.+#### Notion+You can also save your converted notes directly to a Notion database. To do this, you'll need to create a Notion integration and provide the API key and database ID.++**1. Create a Notion Integration:**+Follow the [official Notion guide](https://developers.notion.com/docs/create-a-notion-integration#create-your-integration-in-notion) to create an integration and get your API key (Internal Integration Token).++**2. Share the Database with the Integration:**+For `noted.md` to be able to add pages to your database, you need to share it with the integration you created.+- Go to your database in Notion.+- Click the **•••** menu in the top-right corner.+- Click **+ Add connections** and select your integration.++**3. Get the Database ID:**+The database ID is the long string of characters in the URL of your database. For example, if your database URL is `https://www.notion.so/my-workspace/1234567890abcdef1234567890abcdef?v=...`, your database ID is `1234567890abcdef1234567890abcdef`.++You will be prompted to enter the API key and database ID when you run `notedmd config --edit` and choose to configure Notion.+### Managing Configuration via FlagsYou can also manage your configuration directly using flags.@@ -136,6 +153,7 @@ Once configured, you can convert your handwritten notes.| `-o`, `--output <dir>` | Specify a directory to save the converted Markdown file(s). || `-p`, `--prompt <prompt>` | Add a custom prompt to override the default instructions for the LLM. || `--api-key <key>` | Temporarily override the stored API key for a single `convert` command. |+| `-n`, `--notion` | Save the converted file to your configured Notion database. |**Examples:**@@ -145,6 +163,11 @@ Once configured, you can convert your handwritten notes.notedmd convert my_document.pdf```+- **Convert a file and save it to Notion**:+ ```bash+ notedmd convert my_notes.png --notion+ ```+- **Convert a file with a custom prompt**:```bashnotedmd convert my_notes.png --prompt "Transcribe this into a bulleted list."