Skip to content

neovim/neovim.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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. Build and view the website locally:
    hugo server --buildDrafts
    
  3. Open http://localhost:1313/ to view the website.

Maintenance

Notes:

  • Updating content/doc2/ currently requires a human to run: ./sync_docs.sh
  • Files in content/doc2/ are synced to https://github.com/neovim/doc/ by this CI job.
  • 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
      • gen_help_html.lua references those css files.
    • 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.