Skip to content

[WIP] - Html Docs 2 - API and Client Library Documentation - Feedback / Assistance wanted#3447

Merged
wing328 merged 1 commit intomasterfrom
unknown repository
Aug 1, 2016
Merged

[WIP] - Html Docs 2 - API and Client Library Documentation - Feedback / Assistance wanted#3447
wing328 merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 25, 2016

Hello All!

Further to an attempt at creating some 'slack' style docs, Here's a WIP of a HTML documentation format, in brief here's what I'm trying to achieve with these docs;

  • Nice fresh tidy documentation (Based on JSDoc format)
  • Jsonschemaview for parameter and response definitions
  • Formatted/Highlighted example responses
  • Client Library / SDK Code samples in a tabbed interface for popular languages (Taking code samples from Readme's in each language)
  • All rendered into a single HTML file (As opposed to lots of dependencies) that can be saved/emailed/ rendered in realtime / whatever

Here's an image of where I'm at

htmldoc2

In general I think its working well, The code samples need some more attention, I think I'm going to come up against an issue where some languages require different casing for the same thing, so may have to start utilizing some more vendor extensions / hacks!

This may be an ongoing project

Anyway,

Would appreciate any feedback / advice / assistance :) Tag anyone who may be interested! Thanks for reading!

@ghost ghost mentioned this pull request Jul 25, 2016
@ghost
Copy link
Copy Markdown
Author

ghost commented Jul 25, 2016

p.s. If you want to merge feel free, nothing will actually break the build, Just needs template improvements :)

@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Jul 25, 2016

@jhitchcock thanks for the PR.

I think I'm going to come up against an issue where some languages require different casing for the same thing, so may have to start utilizing some more vendor extensions / hacks!

If you can list out the casing required for the variables (e.g. operationId), we can start adding those mustache tags so that you can use them directly without using vendor extensions.

@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Jul 26, 2016

This also fixes #1387

@wing328 wing328 merged commit 434b4fd into swagger-api:master Aug 1, 2016
@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Aug 1, 2016

@jhitchcock thanks for the contribution. PR merged.

@ghost ghost deleted the feature/static-docs-2 branch August 1, 2016 12:29
@ghost
Copy link
Copy Markdown
Author

ghost commented Aug 1, 2016

Many Thanks, I'll add the extra tags as I do new languages and improve the templates. Hopefully others will contribute too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants