Skip to main content

Add the content type attribute to AsciiDoc files.

Project description

AsciiDoc Content Type Editor

content-type-editor is a web user interface that allows the user to add the _mod-docs-content-type attribute to a large number of AsciiDoc files that follow the guidelines for modules as defined in the Modular Documentation Reference Guide. If the content type can be reliably recognized from the file name or its contents, it provides it as a suggestion which the user can apply. If the content type is ambiguous, it displays analysis of the module content to help the user make the correct choice.

A demo of the AsciiDoc Content Type Editor workflow

Installation

Install the content-type-editor Python package:

python3 -m pip install --upgrade content-type-editor

Usage

Navigate to the directory with your AsciiDoc project and run the following command:

content-type-editor

Alternatively, you supply the path to the project directory on the command line as follows:

content-type-editor path/to/the/project

For a complete list of available command-line options, run content-type-editor with the -h option:

content-type-editor -h

Copyright

Copyright © 2025 Jaromir Hradilek

This program is free software, released under the terms of the MIT license. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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

content_type_editor-0.9.3.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

content_type_editor-0.9.3-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file content_type_editor-0.9.3.tar.gz.

File metadata

  • Download URL: content_type_editor-0.9.3.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for content_type_editor-0.9.3.tar.gz
Algorithm Hash digest
SHA256 d975f61b6c697b633a42a68f15bd9f9a4861f132594e42bfe4ebf17ebc311273
MD5 4f83a5f0a246460ee6da10f2034e8d61
BLAKE2b-256 4118dd1fd65c08426a2f828d12051b59f17c563acc2b5e708c630be33352df1c

See more details on using hashes here.

File details

Details for the file content_type_editor-0.9.3-py3-none-any.whl.

File metadata

File hashes

Hashes for content_type_editor-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5a0ce6872c26807a75a7d9e7752f3c567f77f00915306f7d52806ea2b3c19166
MD5 d4ced4cf822752cb93b3ec83bc3aa948
BLAKE2b-256 6108f1ca0d68d6ea1717bb312ef52c17a78e49f2a6a8d2f8a1dbb892bb87ec74

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