Skip to content

Commit

Permalink
feat(TopSectionStartMarker): implement initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
Elijas committed Dec 22, 2023
1 parent bd19051 commit 584243c
Show file tree
Hide file tree
Showing 22 changed files with 1,945 additions and 1,874 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ demo_output: str = sp.render(elements)
print_first_n_lines(demo_output, n=7)
```
<pre>
<b><font color="navy">TopLevelSectionTitle:</font></b> PART I — FINANCIAL INFORMATION
<b><font color="navy">TopLevelSectionTitle:</font></b> Item 1. Financial Statements
<b><font color="navy">TopSectionTitle:</font></b> PART I — FINANCIAL INFORMATION
<b><font color="navy">TopSectionTitle:</font></b> Item 1. Financial Statements
<b><font color="navy">TitleElement:</font></b> CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS (Unaudited)
<b><font color="navy">SupplementaryText:</font></b> (In millions, except number of ...housands and per share amounts)
<b><font color="navy">TableElement:</font></b> Table with 24 rows, 80 numbers, and 1058 characters.
Expand All @@ -176,8 +176,8 @@ demo_output: str = sp.render(tree)
print_first_n_lines(demo_output, n=7)
```
<pre>
<b><font color="navy">TopLevelSectionTitle:</font></b> PART I — FINANCIAL INFORMATION
├── <b><font color="navy">TopLevelSectionTitle:</font></b> Item 1. Financial Statements
<b><font color="navy">TopSectionTitle:</font></b> PART I — FINANCIAL INFORMATION
├── <b><font color="navy">TopSectionTitle:</font></b> Item 1. Financial Statements
│ ├── <b><font color="navy">TitleElement:</font></b> CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS (Unaudited)
│ │ ├── <b><font color="navy">SupplementaryText:</font></b> (In millions, except number of ...housands and per share amounts)
│ │ ├── <b><font color="navy">TableElement:</font></b> Table with 24 rows, 80 numbers, and 1058 characters.
Expand Down
2 changes: 1 addition & 1 deletion dev_utils/dashboard_app/view_parsed/export_as.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def render_view_parsed_export_as(elements, html: bytes, filename: str):
title_level_to_markdown = _get_map_title_levels_to_markdown_headings(elements)
output = []
for element in elements:
if isinstance(element, sp.TopLevelSectionTitle):
if isinstance(element, sp.TopSectionTitle):
output.append(f"# {element.text}")
elif isinstance(element, sp.TextElement):
output.append(f"{element.text}")
Expand Down
2 changes: 1 addition & 1 deletion dev_utils/dashboard_app/view_parsed/overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"z-index": 10,
}
COLOR_PAIR = [
(sp.TopLevelSectionTitle, "rgba(247, 217, 196, 0.7)"),
(sp.TopSectionTitle, "rgba(247, 217, 196, 0.7)"),
(sp.TitleElement, "rgba(250, 237, 203, 0.7)"),
(sp.TextElement, "rgba(201, 228, 222, 0.7)"),
(sp.ImageElement, "rgba(198, 222, 241, 0.7)"),
Expand Down
2,626 changes: 1,313 additions & 1,313 deletions docs/source/notebooks/developer_guide.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 584243c

Please sign in to comment.