Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.12 KB

README.md

File metadata and controls

46 lines (36 loc) · 1.12 KB

MakinaCorpus documentation Theme for hugo

initialize a new project based on this theme

mkdir hugoproject
cd hugoproject
git init
git submodule add https://github.com/makinacorpus/hugo-mc-docs.git themes/hugo-mc-docs
cd themes/hugo-mc-docs/exampleSite
cp -r ../.gitignore * ../../..
cd ../../..
git add .
$EDITOR config.yaml
git commit -am init

install/usage

  • non docker

    themes/hugo-mc-docs/bin/control.sh install
    # This start the gulp development server after build)
    themes/hugo-mc-docs/bin/control.sh serve
  • Via docker, note that the script will start the gulp development server after build

    themes/hugo-mc-docs/bin/docker.sh
  • Create a content

    ./bin/control.sh hugo new content/doc.md

Notes

  • This theme install its own hugo, node & virtualenv flavors on local folders along the project (./var).
  • naviguation is inspired from Material themes
  • Livesearch is enabled throrough lunr.js and a special crafted (via hugo at build time) JSON file.

Credits

  • Largely inspired from Mkdocs, material themes around and hugo docs theme itself