-
-
Notifications
You must be signed in to change notification settings - Fork 321
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
How do I make the Code Samples visible ? #46
Comments
I think whiteboard doesn't (yet) support the feature of having separate display names for the language tabs. You will probably need to override the language_tabs:
- shell: Shell
- http: HTTP
- javascript: JavaScript
- javascript--nodejs: Node.JS
- ruby: Ruby
- python: Python
- java: Java to something like: language_tabs:
- shell
- http
- html
- javascript
- ruby
- python
- java Let me know if you need any more information on doing that, or if it doesn't work for you, and I'll install whiteboard and have a look. You could modify your copy of whiteboard as per the instructions in the issue linked above, or would using something like shins work as an alternative? |
include whiteboard_env.json refs #46
I have made a quick fix, and added a file called |
Yes. I am using npm. Will I still have to make the changes on the Whiteboard side ? |
I've just published v2.2.1 with the fix. If you set the Please let me know how you get on. |
Thanks, Mike. It worked |
BTW node widdershins --version still shows 2.2.0 instead of 2.2.1 |
Hmm, I hadn't pushed the last commit from the |
Facing another issue with the code samples. When I click on the method within whiteboard I see the code on the right side, but if I click the parameters I see the documentation in the middle pane and the right pane is empty. The resulting experience is very disjointed.This might have something to do with how whiteboard renders the code content, but I am not sure. Do you have any insight about this ? |
I'll spin up whiteboard and have a look! |
I think I see what you mean. While whiteboard creates left-menu sub-headings for parameters and responses etc (which is nice), it doesn't seem to compress the middle column white space to align the middle and right-hand columns... Are there reasons you need to use whiteboard, or can I push you (again -sorry) to take a quick look at shins - demo here? |
OK. Thanks. Will look into shins. |
The alternative would be to re-order some of the sections in widdershins to see if that helped, but at the moment that would mean editing the code in |
Thanks Mike. Will look at Shins. I did not have any specific reason to go to Whiteboard except that it was easier to install and without the ruby stuff. Shins seems to have the same approach. Wanted to ask an question unrelated to this topic. Maybe I will send you an email directly |
No problem, email on profile page. Looking forward to it. |
Closing as we seem to have resolved the issue - but please feel free to reopen the issue if necessary. |
I see [object Object] [ object Object] where I should see the name of a language on the top right. How do I make the language tab show the languages ? I am using petstore.json. I am trying to view the markdown in Whiteboard.
The text was updated successfully, but these errors were encountered: