Skip to main content

A suite of utilities designed to streamline TiDB documentation workflows.

Project description

TiDocs: Tools for TiDB Documentation

A toolkit for streamlining TiDB documentation workflows, specializing in document conversion and formatting.

Installation

pip install tidocs

Merge Release Notes (tidocs merge)

This addresses a common challenge in documentation workflows: converting Markdown files containing HTML tables into well-formatted Word and PDF documents. While traditional tools like Pandoc exist, they often struggle with complex HTML tables, resulting in poorly formatted output.

Features

  • Merge multiple Markdown files into a single document
  • Preserve complex HTML table formatting
  • Create automated table of contents
  • Convert internal links [Overview](/overview.md) to external links [Overview](https://docs.pingcap.com/tidb/stable/overview).

Usage

The tidocs merge command provides a web interface for combining multiple release notes into a single, well-formatted Word document.

  1. Launch the application

    pip install tidocs
    tidocs merge
    

    The application will start and display a URL:

     Running marimo app Merge Release Notes
    🔗 URL: http://127.0.0.1:8080
    
  2. Upload release notes

    To merge release notes from v1.0.0 to v10.0.0, upload all files from release-1.0.0.md to release-10.0.0.md.

  3. Configure document information

    These fields will appear on the cover page of the generated Word document.

  4. Generate document

    Click Download Word Document to export your formatted Word document. The document will include:

    • Properly formatted tables
    • Complete documentation links
    • Generated Table of Contents
  5. Post-process document

    After generating the Word document, follow these steps to finalize it:

    1. Open the downloaded document in Microsoft Word.
    2. Update the table of contents:

    On the References tab, click Update Table > Update entire table > OK

    1. Optional formatting adjustments:
    • Adjust table column widths if needed.
    • Review and adjust page breaks.
    • Check and adjust heading styles.
    1. Export Word document as PDF.

Changelog

v1.0.0

  • Support merging multiple TiDB release notes Markdown files with HTML tables into one well-formatted Word document.

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

tidocs-1.0.0.tar.gz (57.1 kB view details)

Uploaded Source

Built Distribution

tidocs-1.0.0-py3-none-any.whl (57.5 kB view details)

Uploaded Python 3

File details

Details for the file tidocs-1.0.0.tar.gz.

File metadata

  • Download URL: tidocs-1.0.0.tar.gz
  • Upload date:
  • Size: 57.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.20.1 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for tidocs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1dd7d87decc11bef035e97374f0f37ee6409e61920a9ddb33de1f7875364cd5c
MD5 2f330cbd800ac1278d304df5bfd5cc24
BLAKE2b-256 37341a8ce808eb4ae6cb8a3aa1400afd45a67fec7dc7c22791b92b39e6579222

See more details on using hashes here.

File details

Details for the file tidocs-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tidocs-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 57.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.20.1 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for tidocs-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 335710a922147b4ba68ec9b55f13ef6d1f3be0f296fb7f109cd01b126065dad5
MD5 7bea57ace525dfe20d32bbbba28acc4d
BLAKE2b-256 4451c358dbb407af1e2181675a325a3b68fec9ef2666caeca271936b1d515df8

See more details on using hashes here.

Supported by

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