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

SOLT cal kit example: more formatting and typo fixes #690

Merged
merged 1 commit into from
Jun 9, 2022
Merged

SOLT cal kit example: more formatting and typo fixes #690

merged 1 commit into from
Jun 9, 2022

Conversation

biergaizi
Copy link
Contributor

@biergaizi biergaizi commented Jun 8, 2022

I found several additional problems in the HTML rendering of the Jupyter notebook. This pull request fixes them:

  1. Fix the markdown formatting of the word "Preparation" by moving the asterisks out of the link completely. Previously the naked asterisks are exposed, likely a bug in the HTML formatter, the only workaround I found is removing it.

  2. Convert HTML div class alert-warning and alert-info to Sphinx's warning and note, because they're not supported by the HTML formatter. Also, convert HTML links to Markdown for the same reason.

  3. When doing this conversion, I also found a nasty bug in the HTML renderer - using link markups within Sphinx's warning and note sections can create unexpected paragraph breaks. I changed the wordings a little bit (e.g. "documentation" -> "doc") so it doesn't trigger the bug.

  4. Fix a misleading typo in the shunt capacitor code comment in the R&S example.

This

ideal_medium.shunt_capacitor(capacitor_open) ** ideal_medium.short()

should be

ideal_medium.capacitor(capacitor_open) ** ideal_medium.short()

@github-actions github-actions bot added the Documentation Request/Improvement of the documentation label Jun 8, 2022
@jhillairet
Copy link
Member

@biergaizi
Copy link
Contributor Author

It's seriously frustrating, the markdown link still doesn't render correctly (but it works on my machine, so software version is also a problem). I think I'll just remove the italics.

1. Fix the markdown formatting of the word "Preparation" by moving
the asterisks. Previously the naked asterisks are exposed, likely a
bug in the HTML formatter, the only workaround I found is removing
it.

2. Convert HTML div class alert-warning and alert-info to Sphinx's
warning and note, because they're not supported by the HTML formatter.
Also, convert HTML links to Markdown for the same reason.

3. When doing this conversion, I also found a nasty bug in the HTML
renderer - using link markups within Sphinx's warning and note sections
can create unexpected paragraph breaks. I changed the wordings a little
bit (e.g. "documentation" -> "doc") so it doesn't trigger the bug.

4. Fix a misleading typo in the shunt capacitor code comment in the R&S
example.

    ideal_medium.shunt_capacitor(capacitor_open) ** ideal_medium.short()

should be

    ideal_medium.capacitor(capacitor_open) ** ideal_medium.short()

Signed-off-by: Yifeng Li <tomli@tomli.me>
@biergaizi
Copy link
Contributor Author

Fixed. Now ready for merge.

@jhillairet jhillairet merged commit 97a3428 into scikit-rf:master Jun 9, 2022
@jhillairet jhillairet mentioned this pull request Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Request/Improvement of the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants