Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Preview mode #63

Open
borekb opened this issue Nov 4, 2016 · 13 comments
Open

Preview mode #63

borekb opened this issue Nov 4, 2016 · 13 comments
Milestone

Comments

@borekb
Copy link

borekb commented Nov 4, 2016

Hi, this is an awesome extension! I don't like working with Blueprint in Apiary's online editor so this really has been a blessing.

Do you think it would be possible to add a preview somehow? Sort of like Markdown preview, just with Blueprint specifics?

@borekb
Copy link
Author

borekb commented Nov 4, 2016

Possibly draw an inspiration from here: https://atom.io/packages/api-blueprint-preview

EDIT: I've just spotted a note about it in your current README, sorry :)

@XVincentX
Copy link
Owner

Hey!

Thanks a lot, it's good to see that this is helping somebody around.

So - the preview is something I'm aiming for in the middle term roadmap, but I didn't find a proper solution yet.

Thing is - I could employ aglio, but unfortunately it seems like it's not really super updated as well it's still working with the old API Blueprint AST (which means: it won't work with Swagger documents and I want to get an unified experience).

So - as long aglio does not get updated, the short term solution would be to use the Apiary preview feature, but it would involve to have an Apiary account, allowing the file to be continuously uploaded into Apiary (which not everybody wants) and things like that.

The last solution would be - craft a new API Blueprint renderer from scratch. I'd love to work on that, but it would be an huge step.

Any particular thoughts, in meantime?

@borekb
Copy link
Author

borekb commented Nov 5, 2016

Yeah, maybe start with the official Apiary previewer which should be relatively easy to do (I assume) and think about a more independent, offline solution later. I, personally, would be fine with server roundtrips until a better solution is around.

@XVincentX
Copy link
Owner

Yes, it should be.
All right, thanks a lot for the heads-up, I'll try to work on this!

@XVincentX XVincentX added this to the v0.6.0 milestone Nov 5, 2016
@XVincentX
Copy link
Owner

I coded this thing on the fly and actually is not that bad.

@borekb
Copy link
Author

borekb commented Nov 5, 2016

Wow! You rock.

@XVincentX
Copy link
Owner

I'll try to polish it and see if I can publish something.

XVincentX pushed a commit that referenced this issue Nov 12, 2016
Preview an API document on Apiary command closes #63
@XVincentX
Copy link
Owner

@borekb I've just published the 0.6 version which contains a small implementation of the thing.
It was done in kind of rush as I'm a bit busy in other things now - but I'll return on this once I'll be free.

Let me know if that at least solves your use case!

@borekb
Copy link
Author

borekb commented Nov 12, 2016

It's a great start, thanks! A couple of initial impressions:

  • The preview doesn't fill out the whole pane, I don't know why:

image

  • Live preview with synchronized scrolling would be best although I understand it is much tougher to do that.

@XVincentX
Copy link
Owner

The latter is definitely more difficult to do and I'm not even sure that's possible.
I'll keep an eye on it (and reopen it) but I would say that's a very low priority thing. See the issues to have an idea of the roadmap

@XVincentX XVincentX reopened this Nov 12, 2016
@XVincentX
Copy link
Owner

Note: I missed the preview activation event

@FranklinYu
Copy link

Are you somewhat interested in Swagger preview? I can help research the possibility.

@XVincentX
Copy link
Owner

XVincentX commented Mar 26, 2019 via email

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

No branches or pull requests

3 participants