网络技术汇

老衲五木的技术博客,记录网络领域相关的协议,使用场景,开源项目及应用实践,带你了解网络端到端的所有细节。

Installation

Install Hugo theme on your project

If you have git installed, you can include hugo-theme-techdoc repository into your core repository as submodule using git submodule within your project directory.

cd your_project
git submodule add https://github.com/thingsym/hugo-theme-techdoc.git themes/hugo-theme-techdoc

For more information read the Hugo documentation.

Or download Hugo theme on your project

If you have git installed, you can do the following at the command-line-interface within your project directory.

cd your_project/themes
git clone https://github.com/thingsym/hugo-theme-techdoc.git

Configure

You may specify options in config.toml (or config.yaml/config.json) of your site to make use of this theme’s features.

For an example of config.toml, see config.toml in exampleSite.

See the Configuration documentation.

Preview site

To preview your site, run Hugo’s built-in local server.

hugo server -t hugo-theme-techdoc

Browse site on http://localhost:1313


本文发表于: 2017-10-17