Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow publishing markdown to wordpress #1575

Merged
merged 6 commits into from
Mar 5, 2018

Conversation

lurong-hkg
Copy link
Contributor

@lurong-hkg lurong-hkg commented Feb 23, 2018

#1571
Scope:
This PR aims to allow users publish markdown notes to configured wordpress sites. Snippets are not supported (we should probably allow publishing them to gist)

Feature:

  • Publish Markdown document to Wordpress blog
  • 2 Authentication methods are supported JWT token or WP-API basic auth
  • Update published Blog
  • Open published Blog

Requirements

  • Wordpress rest api doc
  • Authentication in wordpress

Screenshots:

  • Configuration
    image

  • Context Menu (Unpublished Markdown)
    image

  • Context Menu (Published Markdown)
    image

  • Publish Confirmation
    image

  • Publish failure comfirmation
    image

  • Published Blog Sample
    image

@RomanKlopsch
Copy link
Contributor

good job!

@Rokt33r Rokt33r self-requested a review February 24, 2018 01:46
@Rokt33r Rokt33r added the awaiting review ❇️ Pull request is awaiting a review. label Feb 24, 2018
@Rokt33r
Copy link
Member

Rokt33r commented Feb 24, 2018

We probably want similar things for Ghost and any other blogging platform. Let us think this for several days.

@Rokt33r
Copy link
Member

Rokt33r commented Feb 25, 2018

We're gonna accpet this and ship to the next version. 🎉 🎉 🎉
Thanks for your contribution!!

@lurong-hkg
Copy link
Contributor Author

@Rokt33r will it be in 0.11 or 0.12?

@Rokt33r
Copy link
Member

Rokt33r commented Feb 27, 2018

@lurong-hkg It will be in v0.11. 👍

Copy link
Member

@Rokt33r Rokt33r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍

@Rokt33r Rokt33r merged commit 1dcf11e into BoostIO:master Mar 5, 2018
@Rokt33r
Copy link
Member

Rokt33r commented Mar 5, 2018

@lurong-hkg Could you add some documentation about authentication? Or some kind of tooltip in Blog tab should be nice.

If you can afford to do, let me know and create another PR! 😄

@Rokt33r
Copy link
Member

Rokt33r commented Mar 5, 2018

And we should figure out how we can send images in note.

@Rokt33r Rokt33r added next release (v0.11.0) and removed awaiting review ❇️ Pull request is awaiting a review. labels Mar 5, 2018
@lurong-hkg
Copy link
Contributor Author

lurong-hkg commented Mar 5, 2018 via email

@Rokt33r
Copy link
Member

Rokt33r commented Mar 5, 2018

I mean local images. 😄 Storage of boostnote can persist images locally! So, we need to check the url of images and upload it to wordpress if it start with file://....

@lurong-hkg
Copy link
Contributor Author

lurong-hkg commented Mar 5, 2018 via email

@phantomlution
Copy link

@lurong-hkg this feature is quite useful. But I got one issue. The tag I made at Boostnote is never synced to Wordpress. Can you fix that?

image

@phantomlution
Copy link

#2325
I implement this feature today. 😄。Waiting for merge

@infophile
Copy link

infophile commented Jun 11, 2020

Thank you for this great feature!

However I don't succeed to make the JWT authentification works.
I do the configuration in wp-config.php and I have the namespace and endpoints I guess.
But how can I get the token to fill in Boostnote next ?
What am I suppose to do with this function ?

`( function() {

var app = angular.module( 'jwtAuth', [] );

app.controller( 'MainController', function( $scope, $http ) {

var apiHost = 'http://yourdomain.com/wp-json';

$http.post( apiHost + '/jwt-auth/v1/token', {
    username: 'admin',
    password: 'password'
  } )

  .then( function( response ) {
    console.log( response.data )
  } )

  .catch( function( error ) {
    console.error( 'Error', error.data[0] );
  } );

} );

} )();
`

@Flexo013
Copy link
Contributor

@infophile Boost Note.next does not have this feature yet. For now it is only part of Boostnote Legacy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants