humanmade/markdown-sync

Name: markdown-sync

Owner: Human Made

Description: Syncing plugin used for WordPress.org CLI/REST API handbooks

Forked from: WP-API/markdown-sync

Created: 2017-11-07 17:25:55.0

Updated: 2017-11-07 17:25:57.0

Pushed: 2018-02-12 10:52:23.0

Homepage: null

Size: 24

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

WPORG Markdown Importer

Imports Markdown from a remote site (like GitHub) into WordPress as pages.

Configuration

Each importer needs to override the abstract methods:

Manifest Format

The manifest should be a JSON object, with the keys set to the desired permalink (excluding the base path). Each item should also be a JSON object, containing the following keys:

Note: The Handbook index should have the slug index.

Example:


"foo": {
    "title": "Temporary Foo Title",
    "slug": "foo",
    "markdown_source": "https://raw.githubusercontent.com/WordPress/doc-repo/master/foo.md",
    "parent": null
},
"foo/bar": {
    "title": "Temporary Bar Title",
    "slug": "bar",
    "markdown_source": "https://raw.githubusercontent.com/WordPress/doc-repo/master/foo/bar.md",
    "parent": "foo"
},
"foo/bar/quux": {
    "title": "Temporary Quux Title",
    "slug": "quux",
    "markdown_source": "https://raw.githubusercontent.com/WordPress/doc-repo/master/foo/bar/quux.md",
    "parent": "foo/bar"
}


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.