esp-doxybook


Nameesp-doxybook JSON
Version 0.2.2 PyPI version JSON
download
home_pageNone
SummaryConvert Doxygen XML output into a single-file API reference in Markdown format.
upload_time2024-10-25 09:08:42
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords doxygen c cpp markdown
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](http://jinja.pocoo.org/docs/2.10/intro/) 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](https://pre-commit.com/)

```yaml
- repo: https://github.com/espressif/doxybook
  rev: v0.2.2
  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:

```yaml
- repo: https://github.com/espressif/doxybook
  rev: v0.2.2
  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

```bash
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](https://github.com/espressif/doxybook/issues)

## Pull requests

[Pull requests are welcome](https://github.com/espressif/doxybook/pulls)

## 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.
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "esp-doxybook",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Fu Hanxi <fuhanxi@espressif.com>",
    "keywords": "doxygen, c, cpp, markdown",
    "author": null,
    "author_email": "Fu Hanxi <fuhanxi@espressif.com>",
    "download_url": "https://files.pythonhosted.org/packages/48/7d/f09c8840c909d387d4913f3a0c93bfe47b438c353b521aafea326c0556e3/esp_doxybook-0.2.2.tar.gz",
    "platform": null,
    "description": "# esp-doxybook\n\nThis is a tool that converts Doxygen XML output into a single-file API reference in Markdown format.\n\n## Live Demo\n\n- C Project: https://espressif.github.io/doxybook/c_api/\n- C++ Project: https://espressif.github.io/doxybook/cpp_api/\n\n## Requirements\n\nYou need to have **python 3.7 or newer** and [Jinja2](http://jinja.pocoo.org/docs/2.10/intro/) package installed.\n\n## Memory usage\n\nNeeds 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.\n\n## Installation\n\n**Install using Python Pip: <https://pypi.org/project/esp-doxybook/>**\n\n## Use with [pre-commit](https://pre-commit.com/)\n\n```yaml\n- repo: https://github.com/espressif/doxybook\n  rev: v0.2.2\n  hooks:\n    - id: doxygen-api-md\n```\n\nThe default path of the generated xml files is `xml`, make sure it's matching the path in your Doxyfile.\n\nFor example, if you have this in your Doxyfile:\n\n```\nOUTPUT_DIRECTORY       = ./doxygen_output\n```\n\nThen you need to set the path in the pre-commit config like this:\n\n```yaml\n- repo: https://github.com/espressif/doxybook\n  rev: v0.2.2\n  hooks:\n    - id: doxygen-api-md\n      args: [\"-i\", \"doxygen_output/xml\", \"-o\", \"docs/api.md\"]\n```\n\nMake sure you've installed `doxygen` before you run `pre-commit install`. Otherwise, the hook will fail.\n\n## Compile the example\n\n```bash\ngit clone https://github.com/espressif/doxybook.git\n\ncd doxybook\n\n# Install dependencies\npython -m venv venv\nsource venv/bin/activate\npip install flit\nflit install -s\n\n# Let's take C project as an example\ncd example/c\nesp-doxybook -i temp/xml -o ../../docs/c_api.md\n\n# Preview Markdown with MkDocs\ncd ../../\nmkdocs serve\n```\n\nThen go to `http://localhost:8000/c_api/` to see the generated documentation.\n\n## Found a bug or want to request a feature?\n\n[Feel free to do it on GitHub issues](https://github.com/espressif/doxybook/issues)\n\n## Pull requests\n\n[Pull requests are welcome](https://github.com/espressif/doxybook/pulls)\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2019 Matus Novak\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nAdditions Copyright (c) 2022 Espressif Systems (Shanghai) Co. Ltd.\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Convert Doxygen XML output into a single-file API reference in Markdown format.",
    "version": "0.2.2",
    "project_urls": {
        "Source": "https://github.com/espressif/doxybook"
    },
    "split_keywords": [
        "doxygen",
        " c",
        " cpp",
        " markdown"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1ed81707628c233f866c6e69a65a313dac97468c7f3e61c87ca6d80613575570",
                "md5": "b68d3230aee5301269f448a16d5bec8d",
                "sha256": "fc1219fa3f0868f7de92332c235edd3796aa760b4fc6e997e193ead8658a020a"
            },
            "downloads": -1,
            "filename": "esp_doxybook-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b68d3230aee5301269f448a16d5bec8d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 22255,
            "upload_time": "2024-10-25T09:08:41",
            "upload_time_iso_8601": "2024-10-25T09:08:41.431754Z",
            "url": "https://files.pythonhosted.org/packages/1e/d8/1707628c233f866c6e69a65a313dac97468c7f3e61c87ca6d80613575570/esp_doxybook-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "487df09c8840c909d387d4913f3a0c93bfe47b438c353b521aafea326c0556e3",
                "md5": "647a034cf2c241d402043ca8958c9f0e",
                "sha256": "e39eaee21b30d8d5a8ebd7965299ad8af3b38387925a9e7ce0f0eb166ecdbdfe"
            },
            "downloads": -1,
            "filename": "esp_doxybook-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "647a034cf2c241d402043ca8958c9f0e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 25070,
            "upload_time": "2024-10-25T09:08:42",
            "upload_time_iso_8601": "2024-10-25T09:08:42.767765Z",
            "url": "https://files.pythonhosted.org/packages/48/7d/f09c8840c909d387d4913f3a0c93bfe47b438c353b521aafea326c0556e3/esp_doxybook-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-25 09:08:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "espressif",
    "github_project": "doxybook",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "esp-doxybook"
}
        
Elapsed time: 0.55129s