Skip to content

neovim/neovim.github.io

Repository files navigation

Neovim.io website

This repository contains the source for the neovim.io website.

To report a bug Neovim, go here: https://github.com/neovim/neovim

Contributing

Just fork this repository and send us a pull request! :-)

Setup

This site is statically generated using Hugo. It takes one minute to get setup, just do the following:

  1. Install Hugo
    brew install hugo
  2. (Optional) To include the documentation pages locally:
    ./gendoc.lua <path>/<to>/<nvim>
  3. Build and view the website locally:
    hugo serve -D
  4. Open http://localhost:1313/ to view the website.

Maintenance

Notes:

  • Create new blog posts (news items) using the command:
    hugo new content content/news/<filename>.md
    The filename won't show up on the site -- the page url will be in the form of /news/2026/12/ where 2026 is the year and 12 the month, as defined in the front matter.
  • Site search (for :help docs) is served by Algolia Docsearch.
  • Codeblock highlighting
    • The highlighting for the generated help docs (/doc/user/) is done by:
      • static/css/neovim-hi.css
      • static/highlight/styles/neovim.min.css
    • Hugo can provide highlighting for markdown codeblocks, see the [markup] section in hugo.toml.
      • To list/generate Hugo syntax themes:
        hugo gen chromastyles --style nord > static/css/syntax.css
        
      • To use the them, commit static/css/syntax.css and enable it by uncommenting this line:
        <link href="/css/neovim-hi.css" rel="stylesheet">
        • And fiddle with the [markup] section in hugo.toml.