This repository contains the source for the neovim.io website.
To report a bug Neovim, go here: https://github.com/neovim/neovim
Just fork this repository and send us a pull request! :-)
This site is statically generated using Hugo. It takes one minute to get setup, just do the following:
- Install Hugo
brew install hugo - Build and view the website locally:
hugo server --buildDrafts - Open http://localhost:1313/ to view the website.
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.- This is because
neovim.io/doc/is served by https://github.com/neovim/doc/ (where the user documentation HTML is published).
- This is because
- Site search (for
:helpdocs) is served by Algolia Docsearch.- The javascript and UI container were setup in this commit.
- The docs pages don't use the layout so they also need to manually include the javascript and define a UI container.
- Admin: https://www.algolia.com/apps/X185E15FPG/dashboard
- Codeblock highlighting
- The highlighting for the generated help docs (
/doc/user/) is done by:static/css/neovim-hi.cssstatic/highlight/styles/neovim.min.css- gen_help_html.lua references those css files.
- Hugo can provide highlighting for markdown codeblocks, see the
[markup]section inhugo.toml.- To list/generate Hugo syntax themes:
hugo gen chromastyles --style nord > static/css/syntax.css - To use the them, commit
static/css/syntax.cssand enable it by uncommenting this line: https://github.com/neovim/neovim.github.io/blob/eb266d7929eff8693cc05ca96732a2daf431e834/layouts/_default/baseof.html#L27- And fiddle with the
[markup]section inhugo.toml.
- And fiddle with the
- To list/generate Hugo syntax themes:
- The highlighting for the generated help docs (