• Stars
    star
    212
  • Rank 186,122 (Top 4 %)
  • Language SCSS
  • License
    MIT License
  • Created over 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Techdoc is a Hugo Theme for technical documentation.

Hugo Theme Techdoc

The Techdoc is a Hugo Theme for technical documentation.

The Techdoc screenshot

Features

  • Modern, Simple layout
  • Responsive web design
  • Documentation menu (Select Menu style)
  • Table Of Contents for the page (selective)
  • Theme color
  • Edit link to documentation repository
  • Header link to HTML headings
  • Custom Shortcodes
    • Code highlight with clipboard
    • Alert panel
    • Button
  • Search Shortcode powered by Algolia
  • Open Graph
  • Analytics with Google Analytics, Google Tag Manager

Screenshot

Theme color

Theme color

Menu style

Open Menu

Open Menu

Slide Menu

Slide Menu

Edit link

Edit link

Getting Started

Requirement

Hugo minimum version: 0.60.0

Default Markdown parser library Goldmark compatible

Install Hugo theme on your project as a git submodule

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 install Hugo theme on your project as a Hugo module

If you have Go installed, you can add hugo-theme-techdoc to your site as a Hugo module instead of a git submodule. Navigate to your Hugo project root and edit your hugo.toml:

[module]
[[module.imports]]
path = 'github.com/thingsym/hugo-theme-techdoc'

Then, to install/update the hugo-theme-techdoc module, run:

hugo mod get -u

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, config.toml in exampleSite.

Update Hugo theme for git submodule

git submodule update --remote
git add themes/hugo-theme-techdoc
git commit

Directory layout

tree . -I node_modules

.
β”œβ”€β”€ LICENSE.md
β”œβ”€β”€ README.md
β”œβ”€β”€ archetypes
β”‚Β Β  └── default.md
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ exampleSite
β”‚Β Β  └── ..
β”œβ”€β”€ gulpfile.js
β”œβ”€β”€ images
β”‚Β Β  └── ..
β”œβ”€β”€ layouts
β”‚Β Β  β”œβ”€β”€ 404.html
β”‚Β Β  β”œβ”€β”€ blog
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ li.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ list.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ single.html
β”‚Β Β  β”‚Β Β  └── summary.html
β”‚Β Β  β”œβ”€β”€ _default
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ baseof.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ list.algolia.json
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ list.html
β”‚Β Β  β”‚Β Β  └── single.html
β”‚Β Β  β”œβ”€β”€ index.html
β”‚Β Β  β”œβ”€β”€ partials
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ content-footer.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ custom-css.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ custom-head.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ edit-meta.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ edit-page.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ footer.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ global-menu.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ head.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ last-updated.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ menu
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ open-menu.html
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── slide-menu.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ meta
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ chroma.html
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ google-analytics-async.html
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ google-site-verification.html
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── tag-manager.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ notification.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ pagination.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ powered.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ prepend-body.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ search.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ sidebar-footer.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ sidebar.html
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ site-header.html
β”‚Β Β  β”‚Β Β  └── table-of-contents.html
β”‚Β Β  β”œβ”€β”€ posts
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ list.html
β”‚Β Β  β”‚Β Β  └── single.html
β”‚Β Β  β”œβ”€β”€ shortcodes
β”‚Β Β      β”œβ”€β”€ button.html
β”‚Β Β      β”œβ”€β”€ code.html
β”‚Β Β      β”œβ”€β”€ panel.html
β”‚Β Β      └── search.html
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
β”œβ”€β”€ resources
β”œβ”€β”€ src
β”‚Β Β  β”œβ”€β”€ js
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ code.js
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ headerlink.js
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ jquery.backtothetop
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ jquery.backtothetop.js
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── jquery.backtothetop.min.js
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ keydown-nav.js
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ main.js
β”‚Β Β  β”‚Β Β  └── sidebar-menu.js
β”‚Β Β  └── scss
β”‚Β Β      β”œβ”€β”€ _component.scss
β”‚Β Β      β”œβ”€β”€ _project.scss
β”‚Β Β      β”œβ”€β”€ _structure.scss
β”‚Β Β      β”œβ”€β”€ _variable.scss
β”‚Β Β      β”œβ”€β”€ chroma.scss
β”‚Β Β      β”œβ”€β”€ foundation
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ _element.scss
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ _index.scss
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ _normalize.scss
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ _reset.scss
β”‚Β Β      β”‚Β Β  └── _stack.scss
β”‚Β Β      β”œβ”€β”€ function
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ _calc-font-size.scss
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ _calc-stack.scss
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ _contrast-color.scss
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ _index.scss
β”‚Β Β      β”‚Β Β  └── _strip-unit.scss
β”‚Β Β      └── theme.scss
β”œβ”€β”€ static
β”‚Β Β  β”œβ”€β”€ css
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ chroma.css
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ chroma.min.css
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ theme.css
β”‚Β Β  β”‚Β Β  └── theme.min.css
β”‚Β Β  β”œβ”€β”€ images
β”‚Β Β  └── js
β”‚Β Β      └── bundle.js
β”œβ”€β”€ theme.toml
└── webpack.config.js

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

Deploy Site to public_html directory

hugo -t hugo-theme-techdoc -d public_html

Local development environment

Preview exampleSite

cd /path/to/dir/themes/hugo-theme-techdoc/exampleSite

hugo server --themesDir ../..

Browse site on http://localhost:1313

Build development

cd /path/to/hugo-theme-techdoc
npm install
npm run gulp watch

Docker development environment

Run Docker and Preview exampleSite

cd /path/to/hugo-theme-techdoc
docker-compose up -d

Browse site on http://localhost:1313

Build development

cd /path/to/hugo-theme-techdoc
docker-compose run --rm node npm install
docker-compose run --rm node npm run watch

Contribution

Patches and Bug Fixes

Small patches and bug reports can be submitted a issue tracker in Github. Forking on Github is another good way. You can send a pull request.

  1. Fork Hugo Theme Techdoc from GitHub repository
  2. Create a feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Create new Pull Request

Changelog

  • Version 1.0.0 - 2022.08.21
    • update hugo docker image
    • update npm dependencies
    • allow to set branch of github documentation repository [#64]
    • enable use as a Hugo module [#63]
  • Version 0.9.9 - 2022.07.08
    • fix scss
    • bump up version on jquery, jquery.easing and clipboard
    • update node package dependencies
    • change service name
    • change fontawesome delivery from cdn to self-host
    • fix config.toml
    • id and class elements added to menu items
    • pre and post elements added to menu items [#48]
    • use SRI for CDN js sources [#45]
    • fix heading styles
    • change to using math.div for division
  • Version 0.9.8 - 2021.10.18
    • fix sample document
    • edit README
    • update package.json
    • add github_doc_repository_path
    • change to relative link
    • add workflows for publishing demo site to gh-pages
  • Version 0.9.7 - 2021.03.08
    • add docker-compose.yml for development environment
    • change keyboard event from event.keyCode to event.key because it is deprecated
    • update package.json
    • add FUNDING.yml
    • fix space for minify publish
    • change flexbox-grid-mixins from libsass to dart-sass
  • Version 0.9.6 - 2020.11.22
    • add sample Markdown Syntax
    • update sample document
    • replace scss from node-sass to dart-sass
  • Version 0.9.5 - 2020.11.05
    • fix link style with Alert panel
  • Version 0.9.4 - 2020.10.08
    • improve scss for custom shortcodes using css custom properties
    • change stack to css custom properties
    • fix scss
    • fix button shortcode, adding notice color
    • add Code highlight with clipboard custom shortcode
    • fix webpack.config.js
    • fix npm scripts
    • update package.json
    • adjust no sidebar layout
  • Version 0.9.3 - 2020.08.02
    • remove jQuery dependency with keydown nav
    • add header link
  • Version 0.9.2 - 2020.06.14
    • add note and sample to document
    • fix tableOfContents endLevel
    • add chapter 'unlimited levels' to document
    • add menu indentation up to 5 levels
  • Version 0.9.1 - 2020.05.24
    • fix config.toml
    • fix url in rss meta link
    • remove line break in algolia.json
  • Version 0.9.0 - 2020.04.01
    • fix lint config
    • update Sample Document
    • update jQuery to v3.4.1
    • add search function and shortcode powered by Algolia
    • fix config.toml
    • fix sass
    • fix hugo deprecated warning
  • Version 0.8.3 - 2020.03.19
    • fix edit page link
  • Version 0.8.2 - 2020.03.07
    • fix open graph image path
  • Version 0.8.1 - 2020.03.07
    • fix open graph image path
  • Version 0.8.0 - 2020.02.27
    • update Sample Document
    • config.toml
    • add open graph image to exampleSite
    • add safeCSS for ZgotmplZ with generated by Hugo Template
  • Version 0.7.0 - 2020.02.07
    • bump up Hugo minimum version to 0.60.0
    • change shortcode delimiter from % to <
    • improve tableOfContents for Goldmark
  • Version 0.6.0 - 2020.01.13
    • fix scss
    • gulp bump up version to 4.0
    • fix hugo deprecated warning
  • Version 0.5.0 - 2019.12.08
    • update Sample Document
    • add table of contents
    • add open graph
    • add function and stack scss
  • Version 0.4.0 - 2019.11.02
    • update Sample Document
    • add Theme color
    • add Menu style
    • improve scss
  • Version 0.3.0 - 2019.10.06
    • fix archetypes
    • add prepend-body.html for Tag Manager noscript version
    • change class name from menu to global-menu
    • rename partials files
    • fix javascript path for webpack
    • improve development environment
    • move javascript files to src directory
  • Version 0.2.2 - 2019.04.27
    • fix Lastmod's and PublishDate's initial value of 0001-01-01
  • Version 0.2.1 - 2018.12.07
    • fix scss lint errors
    • change lint from scss-lint to stylelint
    • add published date
    • change the font color of powered by
    • fix link on powered by
  • Version 0.2.0 - 2018.11.21
    • add screenshot images
    • add exampleSite
    • fix sub-menu for responsive
    • improve menu and pagination
  • Version 0.1.0 - 2018.03.04
    • initial release

License

Techdoc is licensed under the MIT License.

Techdoc bundles the following third-party resources:

Author

thingsym

Copyright (c) 2017-2020 by thingsym

More Repositories

1

flexbox-grid-mixins

Sass Mixins to generate Flexbox grid
SCSS
72
star
2

custom-post-type-widgets

WordPress plugin 'Custom Post Type Widgets' adds default custom post type widgets.
PHP
27
star
3

wp-theme-boilerplate

Next Generation WordPress Theme Starter Kit
PHP
23
star
4

multi-device-switcher

WordPress plugin 'Multi Device Switcher' allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom).
PHP
20
star
5

vaw

VAW (Vagrant Ansible WordPress) is Ansible playbooks for website developer, designer, webmaster and WordPress theme/plugin developer.
Jinja
18
star
6

jquery.background-fit

Background Fit is a jQuery plugin that appear in sizes that fit to the aspect ratio of the background image.
JavaScript
8
star
7

editor-bridge

WordPress plugin Editor Bridge expand the Block Editor (Gutenberg). This WordPress plugin expands the functionality of core blocks and adds styles and formats.
JavaScript
6
star
8

bats-assertion

Bats Assertion is a helper script for Bats
Shell
6
star
9

custom-post-type-widget-blocks

Custom Post Type Widgets for the Block Editor (Gutenberg). This WordPress plugin adds default custom post type widget blocks.
PHP
5
star
10

wp-auto-updater

WordPress plugin 'WP Auto Updater' enables automatic updates of WordPress Core, Themes, Plugins and Translations. Version control of WordPress Core makes automatic update more safely.
PHP
5
star
11

foresight

Foresight is a business website WordPress theme for the Block Editor. It is also a one page WordPress theme that designed to take full advantage of the Block Editor.
PHP
3
star
12

rapid-perl6

Rapid Perl6 is Vagrant environment for the Perl 6 programming language.
Shell
2
star
13

wp-offsite-backup

WP Offsite Backup is a Shell script for backup WordPress to offsite.
Shell
2
star
14

custom-post-type-rewrite

WordPress plugin 'Custom Post Type Rewrite' adds default custom post type permalinks.
PHP
2
star
15

nav-menu-trim

WordPress plugin 'Nav Menu Trim' trim html id/class attributes of Nav Menu.
PHP
1
star
16

cycle-blocks

Cycle Blocks WordPress plugin is a collection of block for block themes (Full Site Editing).
JavaScript
1
star
17

vap

VAP (Vagrant Ansible Programming languages) is Ansible playbooks for website developer and programmer.
Jinja
1
star
18

better-website-performance

The Better Website Performance WordPress plugin adds advanced features to improve website performance.
PHP
1
star
19

back-to-the-top

Back to the Top is a WordPress plugin that return to scroll smoothly to the top of the page. You can scroll to the smooth anchor link in the page.
PHP
1
star
20

wp-compose

WP Compose is WordPress development environment based on the docker environment. You can easily launch WordPress development environment as localhost. Optimized for ARM based Mac (Apple Chip).
Shell
1
star