Dev.to Pod

Summary

This pod lets you publish your Dendron notes to dev.to

  • id: dendron.devto
  • github
  • coverage
    • ❌ export
    • ❌ import
    • ✅ publish

Instructions

Installation

cd {workspace}
npm init -y 
npm install -g dendron-cli
npm install --save @dendronhq/devto-pod

Usage

The below command will publish $FILE_NAME to Dev.To


API_KEY={API_KEY}
FILE_NAME={FNAME}

cd {workspace}
dendron-cli publishPod --wsRoot . --podId dendron.devto --podPkg @dendronhq/devto-pod --podSource custom --config fname=$FILE_NAME,vaultName=vault,dest=stdout,apiKey=$API_KEY

Configuration

  • apiKey: the API Key of your dev.to account. You can follow the instructions here to get it

Metadata

The following values are used when publishing your post.

  • title: string
    • source: frontmatter, title field
    • note title
  • tags?: string[];
    • source: frontmatter, tags field
  • canonical_url?: string;
    • source: dendron.yml, obtained from site.site_url