Git Product home page Git Product logo

Comments (5)

adback03 avatar adback03 commented on August 23, 2024 3

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.

arichen avatar arichen commented on August 23, 2024 1

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.

cosmicscr avatar cosmicscr commented on August 23, 2024

I have the same issue and was about to post the exact same comparison screenshots

from whiteboard.

cosmicscr avatar cosmicscr commented on August 23, 2024

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:

screen shot 2016-11-02 at 10 54 49 am

However, it still doesn't display the blocks correctly at normal resolutions as in original description:

screen shot 2016-11-02 at 10 50 36 am

from whiteboard.

macr1408 avatar macr1408 commented on August 23, 2024

@arichen solution worked fine for me.

from whiteboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.