Better code syntax highlighting, custom links for your site logo and more
18 November: With this release, we’ve added Shiki syntax highlighting for code blocks, added a customizable link for your site logo, a new block switching menu, and more
Set a custom link for your site logo
You can now set a custom link for the logo in the top-left corner of your published docs site.
By default, clicking the logo or site title will lead users back to the first page of your docs site. But you can now set a custom URL outside your site — or a page, section or variant on your site — to be opened instead. If your docs are part of a larger website, this can help visitors navigate back to your own landing page

To set a custom link, open your site’s Customization settings and switch to the Configure tab. In the Primary link section, add the URL you want your logo to link to.
Shiki syntax highlighting in code blocks
Code blocks in the editor now use Shiki for syntax highlighting, so they’ll render much more consistently with code blocks in your published docs.

That means that your code blocks won’t just have great performance. They’ll also match the same highlight colors as in your published docs — including your site’s custom primary and semantic colors.
Switch block types faster

We’ve added a new option to our inline palette that lets you quickly switch block types with a couple of clicks.
Simply highlight some text in a block and, in the palette that appears, use the dropdown menu to select a block to turn it into. It’s as simple as that!
We’re constantly working to improve the way you and your team work in GitBook, and value your input on features, bugs, and more. Make sure you head to our official GitBook community to join the discussion.
Last updated
Was this helpful?