Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Template repo for generating OpenFOAM API docs with Hugo/Docsy and Hyde

License

Notifications You must be signed in to change notification settings

FoamScience/ApiDocsTemplate

 
 

Repository files navigation

Warning

This repository was deprecated in favor of: OpenFOAMDocsWebpages

Template for OpenFOAM API docs using Hugo/Docsy and Hyde

This is a simple Hugo template for generating a static website using the Docsy theme. Documentation is generated as Markdown files using Hyde and can be changed manually while keeping the changes between consecutive docs builds.

The recommended workflow

Install prerequisites

  • Get a recent extended Hugo release
  • Build This fork of Hyde and install hyde binary somewhere on your PATH.
  • Install Bear
  • Install jq and the following Python dependencies:
    pip install python-frontmatter gitpython mdformat-gfm mdformat-frontmatter mdformat-footnote

Generate the documentation

First, use this repository as a template, clone it and:

# This will generate docs for all libraries in `code` and put the results
# in `content/en/api`. Code folder can be (and better be) outside the website tree
# Note: These need to be absolute paths
./scripts/generate-docs.sh $PWD/code $PWD/content/en/api

The code folder has to contain at least one library with a compile_commands.json. you can generate such a JSON file with bear -- wmake libso inside the library's folder.

You can wiki-like contents to content/en/docs and have a blog section at content/en/blog.

Go hugo server and open http://localhost:1313/ in your browser to see the results. For production runs, make sure to change the settings in hugo.toml to reflect your needs.

About

Template repo for generating OpenFOAM API docs with Hugo/Docsy and Hyde

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • HTML 62.8%
  • C++ 13.5%
  • C 11.3%
  • Python 5.7%
  • Shell 4.7%
  • SCSS 1.8%
  • Dockerfile 0.2%