Coder Social home page Coder Social logo

foamscience / apidocstemplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/docsy-example

1.0 0.0 0.0 4.26 MB

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

License: Apache License 2.0

HTML 62.84% Dockerfile 0.23% SCSS 1.79% C 11.25% C++ 13.50% Shell 4.71% Python 5.68%
documentaion documentation-template openfoam static-website

apidocstemplate's Introduction

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.

apidocstemplate's People

Contributors

aijamalnk avatar ajfriesen avatar alexearnshaw avatar asmacdo avatar bep avatar chalin avatar chenopis avatar chrira avatar coliff avatar deining avatar dependabot[bot] avatar dseynaev avatar emckean avatar foamscience avatar gauravgahlot avatar geriom avatar gwatts avatar hegemonic avatar kaycebasques avatar kshithijiyer avatar lisafc avatar marcellodesales avatar mhansen avatar rionam avatar sarahmaddox avatar sharifsalah avatar tekezo avatar theletterf avatar ulfjack avatar ykzts avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.