Comments (5)
Seems to be a problem with jquery.tocify.js. In script.js, change the selectors options like so:
selectors: 'h1, h2'
Doing this seems to fix the problem for me.
from whiteboard.
The generated html had an additional <div name="Query-Parameters" data-unique="Query-Parameters"></div>
before each h3. But I wonder why the sample http://marcelpociot.de/whiteboard/ is without the <div>
and thus had correct laytout.
If I modify /themes/whiteboard/source/js/lib/jquery.tocify.js
, and comment these lines, then this problem is solved. But it's probably not a good idea to change library.
self.before($("<div/>", {
// Sets a name attribute on the anchor tag to the text of the currently traversed HTML element (also making sure that all whitespace is replaced with an underscore)
"name": hashValue,
"data-unique": hashValue
}));
from whiteboard.
I have the same issue and was about to post the exact same comparison screenshots
from whiteboard.
The problem also happens if you choose to put the description before the examples: I prefer to put the description first and then the examples like this:
## My Test API
This endpoint makes you feel successful
### HTTP Request
`GET https://mydomain.com/api/v1/endpoint/:level`
### Parameters
Parameter | Default | Description
--------- | ------- | -----------
level | none | Integer. The level of success you would like.
tick tick tick bash
curl https://mydomain.com/api/v1/endpoint/3
tick tick tick
> Success Output:
tick tick tickjson
{
"success": true,
"level": 3
}
tick tick tick
This way when you are on a phone you see the description first then the examples like so:
However, it still doesn't display the blocks correctly at normal resolutions as in original description:
from whiteboard.
@arichen solution worked fine for me.
from whiteboard.
Related Issues (20)
- Define a variable and use it in includes HOT 1
- error on install HOT 1
- Pane resizing
- bug: table background-color not work
- Comments in python code blocks messes up coloring HOT 5
- GitHub pages not liking "whiteboard" as theme in _config.yml HOT 2
- Using friendly names in language navigation doesn't work HOT 1
- What is the required workflow? HOT 1
- PM2 Command HOT 2
- Does whiteboard supports includes ?
- JSON Formatting Whiteboard doesnt seem to work HOT 1
- Blank Index.html HOT 3
- Removing gap between the API description text and API call in the second window pane
- Does whiteboard support rouge ?
- Active Code Tab and Code Styling HOT 2
- Includes don't get processed by the after_post_render filter in Highlight.js HOT 2
- 3rd level json format HOT 1
- Support for multiple themes HOT 1
- npm module? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whiteboard.