Code Monkey home page Code Monkey logo

github-documentation-with-doxygen's Introduction

Github-Documentation-With-Doxygen

Automatically deploy your documentation of your project without any CI pipelines. This is achieved by using github actions along with github pages.

Doxygen with auto deployment has been setup in this repository. The documentation for this repository is available at https://satu0king.github.io/Github-Documentation-With-Doxygen/

Doxygen - Documentation Setup

Skip this if you already have doxygen configured

  • Install doxygen
    • macOS - brew install doxygen
    • Ubuntu - sudo apt-get install -y doxygen
  • Create doxygen config file (Doxyfile). Run doxygen -g
  • Configure Doxyfile
    • Set RECURSIVE to YES
    • Set EXCLUDE and EXCLUDE_PATTERNS to exclude directories you don't want documented. Typically library code and plugins come here.
    • Set PROJECT_NAME to the name of your project
  • Optionally add html and latex to .gitignore file
  • Document your code according to Doxygen guidlines
    • Check src/main.c for C style documentation. Output can be seen here.
    • Check src/main.cpp for C++ style documentation. Output can be seen here
    • Check src/main.py for Python style documentation. Output can be seen here
  • Optionally run doxygen to generate documentation to see output documentation locally
    • By default web documentation and pdf documentation files are generated in html and latex directories respectively.
    • View web documentation at html/index.html
    • Compile pdf documentation by running make in latex directory
    • Class list can be seen here

Configuring automatic publishing using github actions

  • Copy the action file main.yml to .github/workflows/main.yml
  • Commit and Push to github
  • Github action should automatically start running
  • Confirm that github is set to deploy gh-pages branch in settings page

Notes

  • Ensure that publish_dir in main.yml is set correctly

github-documentation-with-doxygen's People

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.