All Projects → adobe → Hyde

adobe / Hyde

Licence: mit
A front-end to Jekyll that parses C++ sources to produce and enforce out-of-line documentation

Programming Languages

cplusplus
227 projects

Projects that are alternatives of or similar to Hyde

doc42
Jekyll-Kissui bundle to create awesome documentations
Stars: ✭ 23 (-90.8%)
Mutual labels:  jekyll, documentation-tool
Jekyll Serif Theme
Serif is a beautiful business theme for Jekyll.
Stars: ✭ 235 (-6%)
Mutual labels:  jekyll
Marlindocumentation
Marlin Firmware Documentation Project
Stars: ✭ 215 (-14%)
Mutual labels:  jekyll
Millennial
A minimalist Jekyll theme for running an online publication
Stars: ✭ 223 (-10.8%)
Mutual labels:  jekyll
Jekyll Admin
A Jekyll plugin that provides users with a traditional CMS-style graphical interface to author content and administer Jekyll sites.
Stars: ✭ 2,531 (+912.4%)
Mutual labels:  jekyll
Jekyll Mdl
A Jekyll theme based in Google Material Design Lite library.
Stars: ✭ 227 (-9.2%)
Mutual labels:  jekyll
Dart
DART is a test documentation tool created by the Lockheed Martin Red Team to document and report on penetration tests, especially in isolated network environments.
Stars: ✭ 207 (-17.2%)
Mutual labels:  documentation-tool
Vscode Restructuredtext
reStructuredText Language Support in Visual Studio Code
Stars: ✭ 243 (-2.8%)
Mutual labels:  documentation-tool
Projectz
Stop wasting time maintaining your project's readme and package files! Let Projectz do it for you.
Stars: ✭ 235 (-6%)
Mutual labels:  documentation-tool
Codecrumbs
Learn, design or document codebase by putting breadcrumbs in source code. Live updates, multi-language support and more.
Stars: ✭ 2,581 (+932.4%)
Mutual labels:  documentation-tool
Hexo Theme Doc
A documentation theme for the Hexo blog framework
Stars: ✭ 222 (-11.2%)
Mutual labels:  documentation-tool
Jekyll Gist
📃 Liquid tag for displaying GitHub Gists in Jekyll sites.
Stars: ✭ 218 (-12.8%)
Mutual labels:  jekyll
Paradox
Markdown documentation
Stars: ✭ 229 (-8.4%)
Mutual labels:  documentation-tool
Jekyll Minifier
Jekyll HTML/XML/CSS/JS Minifier utilising yui-compressor, and htmlcompressor
Stars: ✭ 215 (-14%)
Mutual labels:  jekyll
Poole
The Jekyll Butler. A no frills responsive Jekyll blog theme.
Stars: ✭ 2,666 (+966.4%)
Mutual labels:  jekyll
Jekyll Toc
Jekyll plugin which generates a table of contents.
Stars: ✭ 211 (-15.6%)
Mutual labels:  jekyll
Hcz Jekyll Blog
A simple material theme for blogger
Stars: ✭ 220 (-12%)
Mutual labels:  jekyll
Nef
💊 steroids for Xcode Playgrounds
Stars: ✭ 226 (-9.6%)
Mutual labels:  jekyll
Polyglot
🔤 Multilingual and i18n support tool for Jekyll Blogs
Stars: ✭ 242 (-3.2%)
Mutual labels:  jekyll
Open Publisher
Using Jekyll to create outputs that can be used as Pandoc inputs. In short - input markdown, output mobi, epub, pdf, and print-ready pdf. With a focus on fiction.
Stars: ✭ 242 (-3.2%)
Mutual labels:  jekyll

What is hyde

hyde is a utility that facilitates documenting C++. The tool is unique from existing documentation utilities in the following ways:

  • Clang based: In order to properly document your C++, hyde compiles it using Clang's excellent libTooling library. Therefore, as the C++ language evolves, so too will hyde.
  • Out-of-line: Many tools rely on documentation placed inline within source as long-form comments. While these seem appealing at first blush, they suffer from two big drawbacks. First, there is nothing keeping the comments from falling out of sync from the elements they document. Secondly (and ironically), experienced users of these libraries eventually find inline documentation to be more of a distraction than a help, cluttering code with comments they no longer read.
  • Jekyll compatible: hyde does not produce pretty-printed output. Rather, it produces well structured Markdown files that contain YAML front-matter. These files can then be consumed by other tools (like Jekyll) to customize the structure and layout of the final documentation.
  • Schema enforcement: Because of the highly structured nature of the output, hyde is able to compare pre-existing documentation files against the current state of your C++ sources. Library developers can use hyde's update mode to facilitate updating documentation against the state of sources. Build engineers can use hyde's validate mode to make sure changes to a code base are accurately reflected in the latest documentation. In the end, the documentation stays true to the code with minimal effort.
  • Adaptable: While hyde's primary purpose at this point is to output and enforce documentation, the tool can also be used to output AST-based information about your code as a JSON-based IR. This makes room for additional tools to be build atop what hyde is able to produce, or additional emitters can be added natively to the tool.

Example Output

hyde produces intermediate documentation files that the developer then fills in with additional details as necessary. The files are then fed through a static site generation tool (like Jekyll) to produce output like this.

Requirements

OSX

  • Homebrew
    • brew install cmake
    • brew install llvm
    • brew install boost
    • brew install ninja (optional)

LINUX

note only tested on ubuntu bionic so far

  • Apt
    • sudo apt-get install libboost-system-dev libboost-filesystem-dev
    • sudo apt-get install libyaml-cpp-dev
    • sudo apt-get install libllvm9 llvm-9 llvm-9-dev
    • sudo apt-get install clang-tools-9 libclang-common-9-dev clang-9 libclang-9-dev

How to Build

  • clone this repo
  • cd hyde
  • git submodule update --init
  • mkdir build
  • cd build
  • cmake .. -GNinja (or -GXcode, etc.)
  • ninja (or whatever your IDE does)

Parameters and Flags

There are several modes under which the tool can run:

  • -hyde-json - (default) Output an analysis dump of the input file as JSON

  • -hyde-validate - Validate existing YAML documentation

  • -hyde-update - Write updated YAML documentation

  • -hyde-src-root = <path> - The root path to the header file(s) being analyzed. Affects defined_in_file output values by taking out the root path.

  • -hyde-yaml-dir = <path> - Root directory for YAML validation / update. Required for either hyde-validate or hyde-update modes.

  • use-system-clang - Autodetect and use necessary resource directories and include paths

This tool parses the passed header using Clang. To pass arguments to the compiler (e.g., include directories), append them after the -- token on the command line. For example:

hyde input_file.hpp -hyde-json -use-system-clang -- -x c++ -I/path/to/includes

Alternatively, if you have a compilation database and would like to pass that instead of command-line compiler arguments, you can pass that with -p.

While compiling the source file, the non-function macro ADOBE_TOOL_HYDE is defined to the value 1. This can be useful to explicitly omit code from the documentation.

Examples:

To output JSON: ./hyde -use-system-clang ../test_files/classes.cpp --

To validate pre-existing YAML: ./hyde -use-system-clang -hyde-yaml-dir=/path/to/output -hyde-validate ../test_files/classes.cpp

To output updated YAML: ./hyde -use-system-clang -hyde-yaml-dir=/path/to/output -hyde-update ../test_files/classes.cpp

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].