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

Fix number format starting over after a block of code #617

Merged
merged 9 commits into from May 4, 2024

Conversation

RobinBateman808
Copy link
Collaborator

Motivation:

Fix the sequential number list starting over after a block of code.

Modifications:

Manually override Markdown's handling of numbered lists.

Result:

Maintain the continuity of sequential numbering.

@RobinBateman808
Copy link
Collaborator Author

@0xTim - I manually inserted the next number in the numbered sequences (1, 2, 3, 4...) to avoid Markdown disrupting the sequential numbering of lists after triple backticks (as is, the numbering starts over when it shouldn't on the swift.org page). I also added an "Overview" for page consistency and reformatted the section subheads to improve the flow.

@RobinBateman808
Copy link
Collaborator Author

Hi @0xTim - another friendly to check out the minor changes that should fix the numbering format issue. I appreciate your time and help! Thanks again.

@@ -78,7 +80,6 @@ To debug memory leaks using Valgrind, install it on your system.
1. Open a Terminal session.
2. [Install Homebrew](https://brew.sh/) if you haven't already.
3. Once `Homebrew` is installed, run this command to install `valgrind`:

Copy link
Collaborator

Choose a reason for hiding this comment

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

I thought we needed these blank lines for the Jekyll markdown parser to pick up the code blocks? Did you try running the site to see if it still renders properly?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ack. I use macOS and get this error when trying to install valgrind:
"valgrind: Linux is required for this software. Error: valgrind: An unsatisfied requirement failed this build"

Should I remove the "macOS" option/instruction set since Linux is required to run valgrin? I'm new to Swift, so trying to figure this out as I go. I'm open to suggestions for accuracy and/or improvements (to help people like me).

Copy link
Collaborator

@0xTim 0xTim Apr 9, 2024

Choose a reason for hiding this comment

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

Ah sorry I meant running the website to see what the generated pages look like. The README for this repo has instructions on how to do that.

Copy link
Collaborator

Choose a reason for hiding this comment

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

But yes we should remove the macOS option here - valgrind won't run on macOS

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@0xTim - I removed the macOS option. If this all looks good to you, feel free to merge. Thanks Tim!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@FranzBusch - Can you also PTAL for accuracy? Thanks!

Copy link
Collaborator

@0xTim 0xTim left a comment

Choose a reason for hiding this comment

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

@RobinBateman808 there are several formatting issues with the removed newlines. If you run the site locally you'll spot them

```
sudo apt-get install heaptrack
```

2. Run the binary twice using `heaptrack`. The first run provides a baseline for `main`.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We need this, otherwise it breaks the formatting

Uploading Screenshot 2024-04-20 at 00.26.04.png…

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@0xTim -Apologies, I can't see the screenshot you added above (it just opens a new page for this PR when I click on it), so I don't understand your ask. Please feel free to suggest changes to the language or code that are needed for accuracy. Thanks!

I added spaces to nest the numbering sequences after the removal of macOS content for Valgrind.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi @0xTim - Please ignore these commit changes and review the next one where I "reformatted bullets and numbering"

Copy link
Collaborator Author

@RobinBateman808 RobinBateman808 left a comment

Choose a reason for hiding this comment

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

Please review these formatting changes (bullets and numbers).

Copy link
Collaborator Author

@RobinBateman808 RobinBateman808 left a comment

Choose a reason for hiding this comment

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

@0xTim - Changed numbering sequence to "steps" to correct formatting issues.

Copy link
Collaborator

@0xTim 0xTim left a comment

Choose a reason for hiding this comment

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

Looks like the latest changes fixed the formatting, thanks!

@0xTim
Copy link
Collaborator

0xTim commented May 4, 2024

@swift-ci test

@0xTim 0xTim enabled auto-merge (squash) May 4, 2024 14:43
@0xTim 0xTim merged commit 8624dbf into main May 4, 2024
1 check passed
@0xTim 0xTim deleted the robins-mem-leaks-reformat branch May 4, 2024 14:50
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.

None yet

2 participants