Hugo theme for open source documentation
Go to file
Erin McKean 54b22d81f8
unconsting variable
2022-08-26 12:48:48 -07:00
.vscode
assets unconsting variable 2022-08-26 12:48:48 -07:00
dependencies Prepare docs and repo for release v0.2.0 (#958) 2022-04-07 05:58:03 -04:00
i18n i18n: es - [post_create_child_page] translation (#1061) 2022-06-30 23:14:44 +01:00
images
layouts move prism removal to markmap.js 2022-08-26 12:42:41 -07:00
static Update Prism JS and CSS to v1.28.0 (#1149) 2022-08-15 11:52:47 -04:00
userguide Config as YAML for Docsy and UG (#1184) 2022-08-18 06:28:41 -04:00
.editorconfig
.gitignore
.nvmrc
.prettierrc.json
.s3deploy.yml
CHANGELOG.md Add FontAwesome change in changelog (#1186) 2022-08-18 11:30:30 -04:00
CONTRIBUTING.md CONTRIBUTING: add step to update UG config (#1145) 2022-08-06 05:52:00 -04:00
Dockerfile Add Docker to run docsy user guide locally (#1016) 2022-06-13 12:08:37 +01:00
LICENSE
README.md Update README.md (#1090) 2022-07-07 11:48:56 +01:00
config.yaml Config as YAML for Docsy and UG (#1184) 2022-08-18 06:28:41 -04:00
docker-compose.yaml Add Docker to run docsy user guide locally (#1016) 2022-06-13 12:08:37 +01:00
go.mod Release 0.4.0 preparation (#1078) 2022-06-30 14:32:55 -04:00
go.sum
netlify.toml Update GO_VERSION to 1.19 and fix typo (#1155) 2022-08-15 03:33:39 -04:00
package.json NPM: pin dep versions and add update script (#1181) 2022-08-18 05:02:38 -04:00
postcss.config.js
theme.toml

README.md

Docsy

Docsy is a Hugo theme for technical documentation sets, providing simple navigation, site structure, and more.

This is not an officially supported Google product. This project is actively being maintained.

Prerequisites

The following are basic prerequisites for using Docsy in your site:

  • Install a recent release of the Hugo "extended" version. If you install from the Hugo release page, make sure you download the _extended version which supports SCSS.

  • Install PostCSS so that the site build can create the final CSS assets. You can install it locally by running the following commands from the root directory of your project:

    $ npm install --save-dev autoprefixer
    $ npm install --save-dev postcss-cli
    

    Starting in version 8 of postcss-cli, you must also separately install postcss:

    npm install -D postcss
    

Any additional prerequisites depend on the installation option you choose. We recommend using Docsy as a Hugo module, which requires that you have the go language installed in addition to Hugo and PostCSS.

For complete prerequisites and instructions, see our Get started guides.

Example and usage

You can find an example project that uses Docsy in the Docsy Example Project repo.The Docsy Example Project is hosted at example.docsy.dev. For real-life examples of sites that use Docsy (and their source repos), see our Examples page.

To use the Docsy theme for your own site:

  • (Recommended) Use the example project, which includes the Docsy theme as a Hugo module, as a template to create your project. You can customize this pre-configured basic site into your own Docsy themed site. Learn more...

  • Add Docsy to your existing Hugo site. You can add Docsy as a Hugo module, as a Git submodule, or clone the Docsy theme into your project.

See the Get started guides for details about the various usage options.

Documentation

Docsy has its own user guide (using Docsy, of course!) with lots more information about using the theme. It is hosted by Netlify at docsy.dev. For deploy logs and more, see Deploys from the site's Netlify dashboard.

Alternatively you can use Hugo to generate and serve a local copy of the guide (also useful for testing local theme changes), making sure you have installed all the prerequisites listed above:

$ git clone --depth 1 https://github.com/google/docsy.git
$ cd docsy/userguide/
$ npm install
$ npm run serve

Contributing GitHub

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us. See also the list of contributors who participated in this project.

License GitHub

This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details