Skip to main content

Multipurpose tool to parse input file and generate documents. Useful to auto generate browsable documentation.

Project description

Version Lint GitHub License

🌷 Chardon

Chardon is a tool to parse input and generate documents. It can do basic task, such as parsing a Markdown into HTML. But it can handle much more complex task, such as parsing a project code, extracting comment, organizing them as several documentation pages and export them as Markdown or HTML.

Format

Done Doing Todo

Inputs

  • C# : Will parse any properly commented Class, function or field
  • Markdown : Partially implemented
  • Python : Will be working on soon
  • More format may be implemented in the future as the project growth and proposal are prioritized

Outputs

  • Markdown : Fully implemented
  • Obsidian : Fully implemented
  • Basic HTML : Will be working on soon
  • Advanced HTML : Will be working on soon on a css-stylized HTML
  • More format may be implemented in the future as the project growth and proposal are prioritized

Organization

  • Simple conversion
  • Code comments to functional documentation
  • Plain Article to Website pages with content table

How to use it

Github action

Chardon won't be published as Github Action until it reach its first stable release

PyPI

Install Chardon with pip

pip install chardon

Example code

from pathlib import Path
from chardon import CSharpParser, ObsidianFlavoredMarkdownContentExport, ProjectManager

# Specify the path to my project and the output
project = Path('path/to/project')
out = Path('out/doc')

# Select which parser to use
parser = CSharpParser()
# Select which language to export to
exporter = ObsidianFlavoredMarkdownContentExport()

# Parse all the file within project, and export them
project_manager = ProjectManager(parser, exporter, project, out)
project_manager.export()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chardon-0.0.1.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chardon-0.0.1-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file chardon-0.0.1.tar.gz.

File metadata

  • Download URL: chardon-0.0.1.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.5

File hashes

Hashes for chardon-0.0.1.tar.gz
Algorithm Hash digest
SHA256 caf778766efe026a289fc8858b2b9ad2eeadf203cc47024869762d4434ec79eb
MD5 8acf38bf1431bde010e70dadcaa05e41
BLAKE2b-256 17284f0031b394ee7adfeb843bd9364bf8ed89d4d3011d648d0993699d78ba93

See more details on using hashes here.

File details

Details for the file chardon-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: chardon-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.5

File hashes

Hashes for chardon-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 201fffa79522daaa8ff2c0b60a379699ae9cd9c1c8d989d95390ceedbb7c572b
MD5 64ceb68242fd1f82ecbf0c809339b962
BLAKE2b-256 6f2bc764c1790e413159fc735cda3e9a119adb6967b72b43dd74dc9c93e13042

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page