gin-gonic / website

Official website and document for Gin
https://gin-gonic.com/
MIT License
122 stars 210 forks source link

Syntax Highlighting #14

Closed dlaub3 closed 5 years ago

dlaub3 commented 6 years ago

It would be nice to use a theme with syntax highlighting. It makes reading code samples easier.

thinkerou commented 6 years ago

@dlaub3 yes

dlaub3 commented 6 years ago

Should we fork the current theme? It appears the theme wasn't originally intended for code samples so I'm guessing they won't accept adding prism.js as a PR.

appleboy commented 6 years ago

@thinkerou @dlaub3 or change to another theme which has code Syntax Highlighting. I like the style of Echo website:

guide___echo_-_high_performance__minimalist_go_web_framework

The left sidebar is very useful to search what I want.

dlaub3 commented 6 years ago

It would also be nice to look for a theme with Algolia integration. I believe they have a free tier as long as you display the logo in the search results. I like doc sites that use it. It may be something to setup later.

thinkerou commented 6 years ago

hugo could use multi-themes, and hope page more clean more better.

appleboy commented 6 years ago

We need two themes for a landing page and documentation.

thinkerou commented 5 years ago

Now have supported, please see #26