From d351a89d9b3ccab71b9ee383386e0c137bf94545 Mon Sep 17 00:00:00 2001 From: Ole Eskild Steensen Date: Wed, 17 Jan 2024 14:28:42 +0100 Subject: [PATCH] "No expiration" is not possible with fine grained access tokens --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f33e4255..79e9820c 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Lets get started: 1. First off, you will need a GitHub account. If you don't have this, create one [here](https://github.com/signup). 2. You'll also need a Vercel account. You can sign up using your GitHub account [here](https://vercel.com/signup) 3. Open [this repo](https://github.com/oleeskild/digitalgarden), and click the blue "Deploy to Vercel" button. This will open Vercel which in turn will create a copy of this repository in your GitHub accont. Give it a fitting name like 'my-digital-garden'. Follow the steps to publish your site to the internet. -4. Now you need to create an access token so that the plugin can add new notes to the repo on your behalf. Detailed instructions available in the [docs](https://dg-docs.ole.dev/advanced/fine-grained-access-token/). Use a [Fine grained personal access token](https://github.com/settings/personal-access-tokens/new) +4. Now you need to create an access token so that the plugin can add new notes to the repo on your behalf. Detailed instructions with images are available in the [docs](https://dg-docs.ole.dev/advanced/fine-grained-access-token/). Use a [Fine grained personal access token](https://github.com/settings/personal-access-tokens/new) with the following settings: - Token Name: _`YYYY-Digital Garden`_ - Expiration: _Custom / a year / whatever you want._ - Description: _Publishing content to the digital garden._ @@ -47,7 +47,7 @@ Lets get started: - Permissions (just two needed): - Contents: `Access: Read and write` - Pull requests: `Access: Read and write` -If you don't want to generate this every few months, choose the "No expiration" option. Click the "Generate token" button, and copy the token you are presented with on the next page. +Click the "Generate token" button, and copy the token you are presented with on the next page. 5. In Obsidian open the setting menu and find the settings for "Digital Garden". The top three settings here is required for the plugin to work. Fill in your GitHub username, the name of the repo with your notes which you created in step 3. Lastly paste the token you created in step 4. The other options are optional. You can leave them as is. 6. Now, let's publish your first note! Create a new note in Obsidian. And add the following to the top of your file