Popular Customisations

You can customise your docs using Custom CSS and Custom Javascript. Below are some of the most used customisations:

Hide version selector/picker

CSS
Copy

Hide section/documentation selector/picker

CSS
Copy

Make top navigation sticky

Only apply this customisation for the original UI. For Next UI, there's a setting under Project Settings > Customisations to enable it.

CSS
Copy

When navigation is sticky, the scrolling behaviour must be modified in order for headings not to hide under the navigation when it is scrolled to. Add the following to Custom HEAD tags to modify scrolling offsets:

HTML
Copy

Use if the titles are too long and they're breaking into two lines.

CSS
Copy

Move index and table of contents to edges of screen

This is enabled by default now.

CSS
Copy

Set theme automatically according to user preferences

Place in Custom HEAD tags. Only use one of the if conditions.

HTML
Copy

Append contact us to search box on no results

Place in Custom HEAD tags.

HTML
Copy

Hide version warning banner for a specific version

Place in Custom HEAD tags.

HTML
Copy

Collapse Section Picker into Dropdown on Next UI

Place in Custom CSS.

CSS
Copy

Blur Top Navigation Bar

Place is Custom CSS. You might need to handle light theme separately.

CSS
Copy

Adding Icons to Index

To add an icon in place of the expander icon for categories and parent pages in the index, add such CSS:

CSS
Copy

Expanding Enum in API Reference

To have enums with their varnames expand on click, add the following in Custom HEAD tags:

Javascript
Copy

You may modify the CSS as needed for the button using the CSS selector .customise.live .references .expand-enum-vars.

To create a dropdown which you can add to navigation links in the top navigation bar, use this javascript:

HTML
Copy

Use the code above as such:

HTML
Copy

Add a Fading Edge to References

To add a fading edge to references, use the following javascript:

Javascript
Copy

Redirect to Documentation in Latest Version

If you wish for a documentation to only be view-able in the latest version, add the following Custom HEAD tags:

HTML
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated by Zaid Daba'een
customisation