diff options
author | ptmcg <ptmcg@austin.rr.com> | 2022-05-20 16:45:44 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2022-05-20 16:45:44 -0500 |
commit | ff2b1624c08ba80b6a5132601fddc4835467c9a0 (patch) | |
tree | 425a43aee0db5d938c8d6b4a26187afb1b93ce27 /docs | |
parent | 3a256cc444258ecc1321001702672c65eb5d425a (diff) | |
download | pyparsing-git-ff2b1624c08ba80b6a5132601fddc4835467c9a0.tar.gz |
Cleaned up/expanded some docstrings and docs to reflect new 3.0.10 changes
Diffstat (limited to 'docs')
-rw-r--r-- | docs/whats_new_in_3_0_0.rst | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/docs/whats_new_in_3_0_0.rst b/docs/whats_new_in_3_0_0.rst index 6eb8530..5c467b1 100644 --- a/docs/whats_new_in_3_0_0.rst +++ b/docs/whats_new_in_3_0_0.rst @@ -4,11 +4,11 @@ What's New in Pyparsing 3.0.0 :author: Paul McGuire -:date: April, 2022 +:date: May, 2022 :abstract: This document summarizes the changes made in the 3.0.0 release of pyparsing. - (Updated to reflect changes up to 3.0.8) + (Updated to reflect changes up to 3.0.10) .. sectnum:: :depth: 4 @@ -62,6 +62,20 @@ generator for documenting pyparsing parsers.:: # save as HTML parser.create_diagram('parser_rr_diag.html') +``create_diagram`` accepts these named arguments: + +- ``vertical`` (int) - threshold for formatting multiple alternatives vertically + instead of horizontally (default=3) +- ``show_results_names`` - bool flag whether diagram should show annotations for + defined results names +- ``show_groups`` - bool flag whether groups should be highlighted with an unlabeled surrounding box +- ``embed`` - bool flag whether generated HTML should omit ``<HEAD>``, ``<BODY>``, and ``<DOCTYPE>`` tags to embed + the resulting HTML in an enclosing HTML source (new in 3.0.10) +- ``head`` - str containing additional HTML to insert into the ``<HEAD>`` section of the + generated code; can be used to insert custom CSS styling +- ``body`` - str containing additional HTML to insert at the beginning of the ``<BODY>`` section of the + generated code + To use this new feature, install the supporting diagramming packages using:: pip install pyparsing[diagrams] |