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

Static HTML? #3

Open
hlubovac opened this issue Nov 16, 2017 · 1 comment
Open

Static HTML? #3

hlubovac opened this issue Nov 16, 2017 · 1 comment

Comments

@hlubovac
Copy link

hlubovac commented Nov 16, 2017

Hi -

I would like to try this, but my requirements limit to using static HTML for swagger-ui's. So, the question is, can this run without server-side code/files, where the URL to swagger-json would be fed to client-side code in some standard way, e.g. query or via some customizable script in home-page (much like your first project: https://github.com/darosh/angular-swagger-ui-material)?

I did run npm-install, hoping that such files would be generated, as I didn't spot them in the source either.

Thanks.
Hari

@darosh
Copy link
Owner

darosh commented Nov 16, 2017

Hi @hlubovac!

This is still work in progress so there is no dist or info. Yes it is static client side as the 1st project was.

For quick try you can click the top left pen icon and paste url of your spec in edit tab in the demo or use url query param https://darosh.github.io/oax/#/?url=.

There will be customization available via something like global variable window.OAX.cfg later but it is currently disabled. Second option will be custom build using rcfile allowing to setup and exclude some features at compile time for smaller build.

For the static dist you can grab files directly from gh-pages branch.

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

No branches or pull requests

2 participants