Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add handle for index errors during table of contents creation #148

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

sHermanGriffiths
Copy link
Contributor

Describe Your Changes

Add exception handling for Index Errors during TOC creation. I elected to skip and warn users about unordered headers because I didn't want to just write a hacky way to try to handle them or throw an error for the sake of workflow.

How Did You Test It

I exported DOC-0013 User Manual in the BodyCheck workspace, as exporting it is how I found this exception. In it, they have an H1 followed by an H3. Figure 1 shows the error I was initially receiving and Figure 2 shows how this addition will log the corresponding warning.

Figure 1

Screen Shot 2023-09-11 at 11 56 14 AM

Figure 2

Screen Shot 2023-09-11 at 12 19 34 PM

@sHermanGriffiths sHermanGriffiths marked this pull request as ready for review September 11, 2023 22:35
@sHermanGriffiths sHermanGriffiths merged commit 2edb92f into main Sep 12, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants