Getting started New

From zero to a brand new docs site

Before you begin with this guide, make sure that you've installed Hugo version 0.60.0 or greater.

Initial setup

To get started with Tract, first create a new Hugo project. In this guide, the project will be called my-docs.

hugo new site my-docs && cd my-docs

Now initialize Git and clone the Tract theme repository as a submodule:

git init
git submodule add https://github.com/tract-docs/tract themes/tract

Now download an example Hugo config file:

curl -O https://raw.githubusercontent.com/tract-docs/tract/master/exampleSite/config.toml

Run the site locally

With the initial theme and configuration in place, you can start the Hugo server locally:

hugo server

Now navigate to http://localhost:1313 in your browser to see the new site.

Now that you've completed the initial setup, you can move on to adding content.


Last updated by lucperkins on December 29, 2019 at 17:02 -0500