Docsy is a Hugo theme for technical documentation sites, providing easy site navigation, structure, and more.
This Docsy derived project is hosted at https://drupalwxt.github.io/. You can find detailed theme instructions in the Docsy user guide: https://docsy.dev/docs/
This repository is presently using Hugo extended 0.101.0 which is available at the bottom of its release page.
The following will give you a project that is set up and ready to use.
The hugo server
command builds and serves the site.
If you just want to build the site, run hugo
instead.
git clone https://github.com/drupalwxt/drupalwxt.github.io
cd drupalwxt.github.io
./dev.sh
The theme is included as part of a Hugo module:
▶ hugo mod graph
project github.com/google/[email protected]+vendor
project github.com/google/docsy/[email protected]+vendor
project github.com/twbs/[email protected]+incompatible+vendor
project github.com/FortAwesome/[email protected]+vendor
If you want to do SCSS edits and want to publish these, you need to install PostCSS
(not needed for hugo server
):
npm install
Once you've cloned the site repo, from the repo root folder, run:
./dev.sh
To lint all Markdown files in a Node.js project (excluding dependencies), the following commands might be used:
Windows CMD
markdownlint content/**/*.md --ignore node_modules --fix
Linux Bash
markdownlint 'content/**/*.md' --ignore node_modules --fix
Thanks to the following projects for showing us how to clearly architect a docsy project: