Socket
Socket
Sign inDemoInstall

esp-doxybook

Package Overview
Dependencies
3
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

esp-doxybook

Convert Doxygen XML output into a single-file API reference in Markdown format.


Maintainers
1

Readme

esp-doxybook

This is a tool that converts Doxygen XML output into a single-file API reference in Markdown format.

Live Demo

  • C Project: https://espressif.github.io/doxybook/c_api/
  • C++ Project: https://espressif.github.io/doxybook/cpp_api/

Requirements

You need to have python 3.7 or newer and Jinja2 package installed.

Memory usage

Needs up to 100MiB of memory. Parsing super large projects can use up to 0.5GiB of memory. For example, a project consisting of 1000 Doxygen xml files can use 550MiB of memory, but I would be worried more about VuePress or GitBook memory usage while using that many files.

Installation

Install using Python Pip: https://pypi.org/project/esp-doxybook/

Use with pre-commit

- repo: https://github.com/espressif/doxybook
  rev: v0.2.1
  hooks:
    - id: doxygen-api-md

The default path of the generated xml files is xml, make sure it's matching the path in your Doxyfile.

For example, if you have this in your Doxyfile:

OUTPUT_DIRECTORY       = ./doxygen_output

Then you need to set the path in the pre-commit config like this:

- repo: https://github.com/espressif/doxybook
  rev: v0.2.1
  hooks:
    - id: doxygen-api-md
      args: ["-i", "doxygen_output/xml", "-o", "docs/api.md"]

Make sure you've installed doxygen before you run pre-commit install. Otherwise, the hook will fail.

Compile the example

git clone https://github.com/espressif/doxybook.git

cd doxybook

# Install dependencies
python -m venv venv
source venv/bin/activate
pip install flit
flit install -s

# Let's take C project as an example
cd example/c
esp-doxybook -i temp/xml -o ../../docs/c_api.md

# Preview Markdown with MkDocs
cd ../../
mkdocs serve

Then go to http://localhost:8000/c_api/ to see the generated documentation.

Found a bug or want to request a feature?

Feel free to do it on GitHub issues

Pull requests

Pull requests are welcome

License

MIT License

Copyright (c) 2019 Matus Novak

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Additions Copyright (c) 2022 Espressif Systems (Shanghai) Co. Ltd.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc