chapter four
4 Building a Documentation Site
This chapter covers:
- Understanding the needs of a typical documentation site
- Choosing a headless CMS for managing documentation
- Choosing a static site generator for a documentation site
- Installing and configuring Hugo
- Setting up Netlify CMS open editing and modeling
- Configuring Netlify and GitHub for user authentication
- Editing content in Netlify CMS
Jamstack has always excelled at content-focused sites, even from the early days of static site generators. Static HTML and CSS is perfect for displaying content quickly and efficiently, thus content sites lend themselves to pre-rendering using Jamstack tools. This is why documentation sites have been one of the most obvious use cases for the Jamstack.
Documentation sites have always generally had additional advantages to using the Jamstack such as:
- The ability to version file-based content easily via source control.
- A means of accepting contributions and corrections via processes like a GitHub pull request.
- The fact that, in many cases, the authors were technically adept with these sorts of development tools.