README.md

blogyaml

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Travis build status Coverage status

The goal of blogyaml is to help batch editing tags of Markdown-based blog posts. The initial motivation is rOpenSci website.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("ropenscilabs/blogyaml")

How and why use this app

Here is how to launch the app.

blogyaml::edit_tags()

The workflow shoud ideally be:

This sounds in my opinion more appealing than opening each post on its own, because one gets to see all posts at once. My goal is to make adding tags to posts as user-friendly as adding topics to GitHub repositories.

First step

After launching the app via blogyaml::edit_tags() you can select the folder where the posts to be modified are. You can pass the path to the function, or rely on its getting your current directory, as well as all directories under path.expand("~"). All of this made possible by shinyFiles.

Edit away

First load the tags, then edit, then click on "Save edits to posts YAML". After that, go look at the folder where your posts are and check the edits with e.g. your favourite git interface. Note: I might record a small video of my screen.

What this app shouldn't be used for

Standardization of tags (e.g. making all tags lowercase, or transforming all occurrences of "Community" into "community") doesn't need to happen manually via this app. It can be scripted using blogdown:::modify_yaml or similar helpers, cf this example.

Note

The package uses a copy-pasted internal blogdown function hence the licence being GPL-3 like blogdown.

Meta

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



ropenscilabs/blogyaml documentation built on May 24, 2019, 2:02 a.m.