Skip to content

wmohanlon/documentation

 
 

Repository files navigation

Actions Status Preview Build

How To: Hugo Local Build

The documentation repository can be downloaded locally. This may be desired if you prefer using a specific text editor other than the in-browser Github editor to develop content.

Part of the theme requires PostCSS. To install PostCSS, a recent version of NodeJS must be installed on your machine so that you can use npm. Once installed, type

sudo npm install -D --save autoprefixer
sudo npm install -D --save postcss-cli

in the CLI.

Download Hugo

First, download the extended version of Hugo from https://github.com/gohugoio/hugo/releases/. Follow the Hugo install instructions for the appropriate operating system.

See these instructions for manually installing the Hugo extended version in WSL: https://sal.as/post/install-hugo-on-wsl/

Clone Documentation Repo

The next step is to clone this repo. To clone the repo in your current directory, type

git clone https://github.com/freenas/documentation.git

in the CLI.

Note: To update your current local branch with any changes that have been merged into the master branch, run
`git pull origin master

Build Locally

Finally, the documentation website is ready to be built locally. cd into the cloned repo. To build the website locally, type

hugo serve

in the CLI.

After building the website with hugo serve, access it by entering localhost:1313 in a browser address bar.

About

TrueNAS Documentation Hub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 95.5%
  • CSS 2.3%
  • JavaScript 1.3%
  • Other 0.9%