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

Make build tools more robust #190

Merged
merged 10 commits into from
Dec 4, 2023
Merged

Make build tools more robust #190

merged 10 commits into from
Dec 4, 2023

Conversation

HeikoTheissen
Copy link
Contributor

@HeikoTheissen HeikoTheissen commented Oct 19, 2023

Merge this before the next OData-CSDL publication in order to avoid anchor naming conflicts between TOC and Appendix B.

"." +
this.number[this.match];
if (m[1].endsWith("isec")) {
m[3] += "." + this.number[this.match];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main change of this PR: Insert a dot between an Appendix B entry name and the number that ensures uniqueness.

!m[1].startsWith("sub") &&
m[1].endsWith("isec") &&
!this.toc[m[1]]
try {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New try-catch block around (most of) this function's body.

out.write(
outline.replace(
/##([A-Za-z0-9.]+)\]/g,
try {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New try-catch block around (most of) this function's body.

@HeikoTheissen HeikoTheissen marked this pull request as ready for review December 4, 2023 14:29
@ralfhandl ralfhandl self-requested a review December 4, 2023 14:41
@HeikoTheissen HeikoTheissen merged commit e637cdc into main Dec 4, 2023
1 check passed
@HeikoTheissen HeikoTheissen deleted the tools/robust-numbering branch December 4, 2023 14:42
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