Publish to DEV

by Peter Strøiman
5
4
3
2
1
Score: 35/100

Description

Category: 3rd Party Integrations

The Publish to DEV plugin is a game-changer for content creators who want to share their Obsidian notes with the world. This plugin allows users to effortlessly publish their notes to DEV.to, a popular platform for technical writers and bloggers. With this plugin, you can choose which notes to share and customize the publishing process to fit your needs. The plugin also includes features like automatic formatting and tagging, making it easy to get started without any hassle. Whether you're looking to share your expertise or showcase your writing skills, the Publish to DEV plugin is a great way to reach a wider audience.

Reviews

No reviews yet.

Stats

6
stars
284
downloads
1
forks
674
days
652
days
667
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
1
total issues
1
open issues
0
closed issues
133
commits

Latest Version

README file from

Github

Obsidian publish note to DEV

Obsidian plugin that allows you to publish notes as articles on DEV (https://dev.to)

[!NOTE] Articles are created in a draft state on DEV, so you can properly review them before making them public.

[!CAUTION] This plugin stores your DEV api key unencrypted in the plugin configuration file, stored as part of your obsidian vault. If you don't fully understand the implications of this, don't use this plugin.

This is important, I will repeat: Don't use this plugin if you don't fully understand the security implications!

Implemented features

  • Create a new article on DEV when running on the active note.
  • Update the article on DEV with changes made since first creation.
  • Title of the article is the first H1 heading in the not.
  • Body of the article is everything after the first H1 in the note.
  • Resolve the url metadata of linked attributes.
  • After creating a note, add a link in the frontmatter

Usage

Tags

Tags on DEV are taken from the dev-tags value in the frontmatter. If the value is not an array, it will be ignored. Elements that are not strings will be removed. DEV supports at most 4 tags. If you specify more than 4 tags, only the first 4 will be used.

DEV shows tags prefixed with a hash (#). Don't add this yourself. The actual tag is the text without the hash.

[!NOTE] Obsidian tags are not used, as they can be used for different purposes. E.g. I use tags to indicate the purposes of notes, e.g. project/article, and I use links for grouping by topics. But on DEV, tags would correspond to topics.

Images

It is not possible for the plugin to handle images completely. The DEV API does not expose the capability of uploading images. This means that you need to upload any images manually.

If you later need to update the article, you can now create a mapping from embedded image links to the public URL where that resource is available.

Use the "Map embedded images to public URLs" command.

Note: It is intended to integrate this to the workflow of updating a published article.

Series

If the article is part of a series, you write the series name in the dev-series metadata property.

TODO: Support this being a link to another note about the series itself, and read the name from that note, the title, or a metadata property.

NOTE: At the time of writing this, I have not created a series on DEV, but I can see that the value is set when editing the series for my unpublished test articles.

Mathjax support

Inline Mathjax, i.e. contained in single-$, like "This is our $CO_2$ report", will be converted to {% katex inline %} supported by DEV.

Mathjax blocks, i.e. wrapped in double-$s, will be converted to {% katex %} blocks.

As this is probably a niche case, and could mess up texts that use $-characters, e.g. a finance report, you have to explicitly enable this by setting dev-enable-mathjax in the frontmatter.

Example

Given, My portfolio.md exists in the vault with the following contents

---
url: https://example.com/my-portfolio
---

# My Portfolio

...

And, My bio.md doesn't exist in the vault, or it exists but doesn't have a url metadata field,

When I publish the file:

---
dev-tags:
  - javascript
  - tdd
---

related:
 - [[TDD MOC]]
 - [[Javascript MOC]]

# How I write TDD in JS

I am good at it.

See my portfolio at [[My portfolio]], and my [[My bio]]

Then the following article is created on DEV.

{
  "tags": ["javascript", "tdd"],
  "title: "How I write TDD in JS",
  "markdown": "I am good at it\n\nSee my portfolio at [My
  portfolio](https://example.com/my-portfolio), and My bio"
}

A note about the special meaning of H1

Obsidian uses markdown as its file format, and markdown has a special affinity with HTML (after all, markdown is originally a tool that can generate HTML from human readable text files).

According to the HTML standard, each page should have exactly one H1 element that is the actual title of the page (despite the fact that there is also a <title> element on the page, but that is not shown ON the page, but typically in the browser's header - and a default value for bookmark names).

When editing an article on DEV, their help text also says that the title of an article will be rendered as H1, and you should avoid using H1 elements in the body; that H2 should be the 'lowest' heading used in the body.

It is note required that the H1 is the first text on the page. In accordance with that, I keep links to relevant notes during the writing at the very top of the note in obsidian; before the H1. Links to supporting observations, contradictory ideas, ideas I may want to reflect on when writing this article.

That is why everything up to, and including, the first H1 in a note is ignored, and why the heading text of the first H1 in the note is used as the title when creating a note on DEV.

When the plugin encounters a medialink in the note, it will try to find the actual note that is being linked. If that note has a url property in the frontmatter, that value will be used as the link href.

For example, the note you publish has the following:

I need to explain more about [[Medialink|medialinks]].

And Medialink.md has the following contents:

---
url: http://example.com/medialink
---
...

Then the generated markdown published will be:

I need to explain more about [medialinks](http://example.com/medialink).

p.s. I have not tested how this works, if you have configured Obsidian to use markdown links instead of medialinks.

[!WARNING] This feature does not work for medialinks in a footnote due to a bug in the Obsidian API. "Fixed" in version 0.11.2 of this plugin

Desired features

Essential

  • Securely handle API keys through system keychain/secure storage (although some research seems to indicate that this is not possible).
  • Better image handling. DEV doesn't support image upload through the API, requiring you to upload them manually, and configure the mapping in the frontmatter.
    • One possibility is to upload to another site, or AWS S3 instead.
  • Control published state from Obsidian. Right now, new articles are created as draft, allowing you to control everything before publishing.
  • Suggestion from @Rooyca: Autopublish - configurable by the user

So unfortunately, one essential feature seems to be impossible, let me know if you happen to know how a way to securely handle secrets from Obsidian plugins.

Filing a bug report

If creating a note doesn't work, first check, and double check that the access token is valid.

If you wish to file a bug report, please copy the error message from the Obsidian console logs. (Accessible through the Developer Tools).

It will be helpful if you can share the note that you wish to publish, as well as any linked notes.

Support this work

You can support my work here:

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
AmpliFlow Page Publisher
a year ago by Patrik Björklund
The offifical AmpliFlow obsidian page publisher.
Content OS
8 months ago by eharris128
Post to LinkedIn from within Obsidian
Dataview Publisher
2 years ago by UD
Output markdown from your Dataview queries and keep them up to date. You can also be able to publish them.
Digital Garden
4 years ago by Ole Eskild Steensen
Embedded Code Title
5 years ago by tadashi-aikawa
It is an Obsidian plugin which can embeds title to code blocks.
Enhanced Publisher
a year ago by Cube
增强的Obsidian发布插件,支持图片自动存储、HTML预览和发布到微信公众号等内容平台
Enveloppe
4 years ago by Mara-Li
Enveloppe helps you to publish your notes on a GitHub repository from your Obsidian Vault, for free!
File Publisher
3 years ago by Devin Sackett
Flowershow
3 years ago by Rufus Pollock
Publish your Obsidian vault as a website with Flowershow.
Forms
a year ago by Sorin Mircea
Friday
a year ago by sunwei
Write anywhere. Publish everywhere. Sync your notes, publish instantly, turn Markdown into websites.
Google Blogger
2 years ago by Hugo Sansaqua
A plugin for publishing Obsidian documents to Blogger.
Halo
3 years ago by Ryan Wang
Publish your Obsidian documents to Halo.
Hexo Publisher
2 years ago by zhenlohuang
Hugo Publish
2 years ago by kirito
write blog in obsidian, pubulish to hugo site.
InfoFlow
a year ago by RockieStar Inc.
Obsidian plugin for InfoFlow.app - This plugin integrates InfoFlow with Obsidian, allowing you to sync your saved articles, web pages, notes, and highlights directly into your Obsidian vault.
Infostacker Note Publish
2 years ago by Taskscape LTD, Patryk Nowak, Kacper Pabianiak
Infostacker plugin for Obisidian
Invio
3 years ago by frontend-engineering
Publish obsidian docs online
Jade Publisher
a year ago by Lucas Ji
This is a simple plugin to help publish your Obsidian vault to a public website(build with Jade).
MBlog Publish
2 years ago by Jerry
Micro.publish
4 years ago by Otavio Cordeiro
Micro.publish is an Obsidian plugin to publish notes directly to Micro.blog, written in TypeScript
Mixa
3 years ago by Mixa Team
Publish your notes and blog posts directly from Obsidian with Mixa
Moon server publisher
3 years ago by Roman Provazník
MP Preview
a year ago by Yeban
一个帮助你快速将 Obsidian 笔记转换为微信公众号格式的插件。
Nostr Writer
3 years ago by James McGauran
Publish seamlessly from Obsidian to Nostr
NotesOn Publish
2 years ago by Andrey Shapkin
Plugin to Obsidian.md
O2
3 years ago by haril song
Converts obsidian markdown syntax to other platforms.
Obsius Publish
4 years ago by Jon Grythe Stødle
Easily publish notes to the web This plugin integrates with obsius.site to publish markdown notes on the web.
Omg.publish
2 years ago by May Meow
An obsidian plugin to create statuslog posts right from obsidian notes.
Orion Publish
2 years ago by Sean Collings
OzanShare Publish
5 years ago by Ozan Tellioglu
This plugin allows you to publish your markdown notes with a single click directly from your Obsidian vault.
Permalink Opener
3 years ago by @kepano
Obsidian plugin to open URLs based on a permalink or slug in the note properties. For use with Jekyll, Hugo, Eleventy, Astro, Obsidian Publish, and other publishing tools.
Pickly PageBlend
3 years ago by Dmitrii Mitrichev
The easiest way to share your Obsidian notes
Publish and GitHub URL
4 years ago by kometenstaub
Copy or open the Obsidian Publish URL of a note. You can also open its Git commit history on GitHub.
Publish Note to Mowen Note
9 months ago by ziyou
This is a mowen plugin for Obsidian (https://obsidian.md)
Publish to Discourse
a year ago by woodchen
Obsidian plugin for publishing articles to forums built with Discourse. obsidian插件, 用于把文章发布到使用discourse搭建的论坛.
Publish to Steemit
4 years ago by anpigon
Post directly to your Steemit from Obsidian.
Publish to WordPress for Obsidian
4 years ago by devbean
An obsidian plugin for publishing docs to WordPress.
Publish URL
2 years ago by Hananoshika Yomaru
copy the publish url to clipboard
Quail
3 years ago by Lyric
An Obsidian Plugin for Quail.ink. This is a clone repo of https://github.com/quail-ink/obsidian-quail
Quartz Syncer
10 months ago by Emile Bangma
Manage and publish your notes to Quartz, the fast, batteries-included static-site generator.
RSS Dashboard
4 months ago by Aditya Amatya
A dashboard for organizing and consuming RSS feeds, YouTube channels, and podcasts with smart tagging, media playback, and seamless content flow.
screen.garden
3 years ago by screengarden, LLC
Realtime collaboration and web editing for Obsidian.
Smort
4 years ago by Smort
Obisidian plugin for Smort
Telegraph Publish
4 years ago by Reorx
Publish your Obsidian note to a Telegraph page.
Typecho
a year ago by Chen
obsidian同步Typecho
Typefully
2 years ago by Sébastien Dubois
Integrate Typefully within Obsidian
umbPublisher
9 months ago by Owain Williams
An Obsidian Plugin that allows you to push notes to Umbraco 15+ as content nodes
Vault to blog
2 years ago by barkstone2
Automation tool of making react SPA blog by obsidian vault.
Vitepress Publisher
2 years ago by mistj
Obsidian Vitepress Plugin is a flexible tool that allows you to easily preview and compile your .md files using VitePress or other static site generators (Hugo, Hexo, Docusaurus) in Obsidian.
Webpage HTML Export
3 years ago by Nathan George
Export html from single files, canvas pages, or whole vaults. Direct access to the exported HTML files allows you to publish your digital garden anywhere. Focuses on flexibility, features, and style parity.
Wechat Public Platform
2 years ago by Blake Chan
Obsidian Wechat public Plugin (微信公众平台) is a plugin to release article from your Obsidian Vault to WeChat, Baidu baiJiahao or other platforms.
WeWrite
a year ago by Learner Chen
Obsidian plugin to render note as WeChat MP article.
Writeas Blog Publisher
3 years ago by encima
YourPulse - Your Writing Activity Visualised
a year ago by Jiri Sifalda
YourPulse.cc - Obsidian.md plugin that turns your vault into a reflection of your creativity, and put your writing on steroids 💪
Yuque Publish
a year ago by oylbin
obsidian plugin to publish document to yuque
Zhihu
10 months ago by dgg
Zhihu on Obsidian | 知乎 Obsidian 插件