Skip to content

Releases: AlphaJack/toc

v2.7.3

01 Nov 23:48
v2.7.3
dd73159
Compare
Choose a tag to compare

[2.7.3] - 2024-11-01

Added

  • Added latex support
  • Added typst support

Performance

  • Using dictionaries instead of match case when it makes sense

v2.7.2

27 Oct 10:53
v2.7.2
384b97b
Compare
Choose a tag to compare

[2.7.2] - 2024-10-27

Added

  • Added magic comment support for LaTeX

v2.7.1

19 Aug 23:50
v2.7.1
6ae84a4
Compare
Choose a tag to compare

[2.7.1] - 2024-08-19

Added

  • Placing TOC after module docstring in python files

Changed

  • Updating file name in TOC in case file has been renamed
  • Using pathlib to reference files

Fixed

  • Docstring matching
  • HTML headings that span across multiple lines are now matched

Testing

  • Added man and line numbers tests
  • Added HTML tests

v2.7.0

19 Aug 23:12
v2.7.0
233962b
Compare
Choose a tag to compare

[2.7.0] - 2024-05-14

Added

  • Placing TOC after module docstring in python files

Changed

  • Updating file name in TOC in case file has been renamed
  • Using pathlib to reference files

Fixed

  • HTML headings that span across multiple lines are now matched

Testing

  • Added man and line numbers tests
  • Added HTML tests

v2.6.0

16 Mar 21:35
v2.6.0
886b791
Compare
Choose a tag to compare

[2.6.0] - 2024-03-16

Added

  • Set maximum toc depth with --depth int
  • Using importlib.metadata.version() for --version
  • Static type checking

Changed

  • Support for comments that start after spaces or tabs
  • To run without being installed, python -m toc.cli must be used instead of ./toc/cli.py

Documentation

  • Highlighted support for markup languages

Testing

  • Added tests for files formatted by python-black

v2.5.0

23 Feb 17:20
v2.5.0
9a5c93a
Compare
Choose a tag to compare

[2.5.0] - 2024-02-23

Added

  • Native reStructuredText support
  • Native AsciiDoc support

Testing

  • Added AsciiDoc and reStructuredText tests

v2.4.0

07 Feb 20:58
v2.4.0
37329d5
Compare
Choose a tag to compare

[2.4.0] - 2024-02-07

Added

  • Native man pages support
  • Line numbers to HTML toc
  • Stdin support with "-" argument
  • Set an arbitrary extension with "-e", useful for stdin
  • Native HTML support

Changed

  • Moved prefix and suffix to dedicated function

Documentation

  • Documented HTML and stdin support

Performance

  • Avoiding replacing original match when writing toc

Testing

  • Added stdin and ouput tests for cli script
  • Added cli testing

v2.3.0

02 Feb 15:25
v2.3.0
7bf4081
Compare
Choose a tag to compare

[2.3.0] - 2024-02-02

Added

  • If -o outputFile is specified, toc will write there even if the inputFile's toc is already up-to-date
  • Drastic performance improvements by reducing regex and list iterations
  • Support for rstudio foldable sections

Documentation

  • Added useful tools to CONTRIBUTING.md
  • Explaining better what _prettify_connector() does
  • Added code snippets to CONTRIBUTING.md

Fixed

  • Not stripping lines to preserve cobol indentation
  • Avoiding printing twice the same error or warning message

Performance

  • Simplified and explained _prettify_connectors()
  • Unified comment replacement in _replace_comment()
  • Defining toc multiline regex pattern once
  • Centralized file opening function
  • Storing toc pieces in lists until _generate_toc()

Testing

  • Added complex toc nexting
  • Added more unit tests to toc.py
  • Added check for missing reference file

v2.2.0

29 Jan 14:45
v2.2.0
097d908
Compare
Choose a tag to compare

[2.2.0] - 2024-01-29

Added

  • Glob expansion support when parsing lists of files
  • Read files from lists with -l
  • Man pages support (groff/mdoc)
  • Native perl pod support
  • Specify arbitrary output with -o output_file
  • Respect xml, doctype, vim and emacs directives
  • Respect markdown frontmatters

Documentation

  • Split README.md in USAGE.md
  • Updated changelog
  • Renamed first example to file.c

Fixed

  • Limiting re.sub to 1 also if toc needs to be added
  • Avoid re.sub if first line is empty
  • Sanitizing input file type to str
  • Fixed a bug that may lead to multiple tocs being added

Testing

  • Added new cases to test toc with empty or repeated first line of file
  • Testing also cli script
  • Not committing local test coverage
  • Not considering files under tests/output
  • Added input and reference test for testing

v2.1.0

22 Jan 21:39
v2.1.0
c3277aa
Compare
Choose a tag to compare

[2.1.0] - 2024-01-22

Added

  • Support for even more languages
  • Added example comments to README.md
  • Added PyPI url to README.md

Documentation

  • Added changelog
  • Added changelog support through git-cliff

Integrations

  • Added github workflows