Skip to content

Commit 4b93265

Browse files
authored
fix: uupdate how to page (#696)
1 parent cbefd44 commit 4b93265

File tree

1 file changed

+41
-17
lines changed

1 file changed

+41
-17
lines changed

_posts/2019-10-26-pyos-min-mistakes-theme.md

Lines changed: 41 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,41 @@ Right aligned text.
4949

5050
---
5151

52-
**Justified text.** `.text-justify` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vel eleifend odio, eu elementum purus. In hac habitasse platea dictumst. Fusce sed sapien eleifend, sollicitudin neque non, faucibus est. Proin tempus nisi eu arcu facilisis, eget venenatis eros consequat.
52+
**Justified text.** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vel eleifend odio, eu elementum purus. In hac habitasse platea dictumst. Fusce sed sapien eleifend, sollicitudin neque non, faucibus est. Proin tempus nisi eu arcu facilisis, eget venenatis eros consequat.
5353
{: .text-justify}
5454

5555
```markdown
56-
Justified text.
56+
**Justified text.** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vel eleifend odio, eu elementum purus. In hac habitasse platea dictumst. Fusce sed sapien eleifend, sollicitudin neque non, faucibus est. Proin tempus nisi eu arcu facilisis, eget venenatis eros consequat.
5757
{: .text-justify}
5858
```
5959

6060
---
6161

62-
No wrap text. `.text-nowrap`
63-
{: .text-nowrap}
62+
## Figures and figure alignment
6463

65-
```markdown
66-
No wrap text.
67-
{: .text-nowrap}
68-
```
64+
Position images with the following classes.
6965

70-
## Image alignment
66+
### A regular figure with no alignment specified
7167

72-
Position images with the following classes.
68+
<figure>
69+
<picture>
70+
<source srcset="/images/pyopensci-general/pyopensci-timeline2019-2024.webp" type="image/webp">
71+
<img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024." style="width: 80%;">
72+
<figcaption>Growth of pyOpenSci from 2019 to 2024. Growth of pyOpenSci from 2019 to 2024. Growth of pyOpenSci from 2019 to 2024. Growth of pyOpenSci from 2019 to 2024. </figcaption>
73+
</picture>
74+
</figure>
75+
76+
The code for the figure above is below:
7377

78+
```html
79+
<figure>
80+
<picture>
81+
<source srcset="/images/pyopensci-general/pyopensci-timeline2019-2024.webp" type="image/webp">
82+
<img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024.">
83+
<figcaption>Growth of pyOpenSci from 2019 to 2024</figcaption>
84+
</picture>
85+
</figure>
86+
```
7487

7588
### Figure -- align center
7689

@@ -82,7 +95,7 @@ Position images with the following classes.
8295
</picture>
8396
</figure>
8497

85-
The image above happens to be **centered**.
98+
The image above is **centered** using `align-center`.
8699

87100
```html
88101
<figure class="align-center">
@@ -311,9 +324,21 @@ Make any link standout more when applying the `.btn .btn--primary` classes.
311324
| Default | [Default Button](#){: .btn .btn--primary} | `.btn .btn--primary` | `[Text](#link){: .btn .btn--primary }` |
312325
| Small | [Small Button](#){: .btn .btn--primary .btn--small} | `.btn .btn--primary .btn--small` | `[Text](#link){: .btn .btn--primary .btn--small}` |
313326

314-
## Notices
327+
## Call out boxes (notices)
328+
329+
You can create a basic notice or call out box for a pargraph by adding `{: .notice}` to the line immediately below the paragraph.
315330

316-
Call attention to a block of text.
331+
332+
```markdown
333+
**Technical and social skills go hand in hand.** Open source communities are most productive when contributors and maintainers recognize this balance between the technical and social skills associated with contributing.
334+
{: .notice}
335+
```
336+
Which looks like this rendered:
337+
338+
**Technical and social skills go hand in hand.** Open source communities are most productive when contributors and maintainers recognize this balance between the technical and social skills associated with contributing.
339+
{: .notice}
340+
341+
There are multiple classes that you can use to modify the background color of the call out block.
317342

318343
| Notice Type | Class |
319344
| ----------- | ----- |
@@ -324,8 +349,7 @@ Call attention to a block of text.
324349
| Success | `.notice--success` |
325350
| Danger | `.notice--danger` |
326351

327-
**Technical and social skills go hand in hand.** Open source communities are most productive when contributors and maintainers recognize this balance between the technical and social skills associated with contributing. In most cases, all of the people involved in the project are volunteers with varying priorities, skillsets, and motivations to participate.
328-
{: .notice}
352+
329353

330354
**Watch out!** This paragraph of text has been emphasized with the `{: .notice--primary}` class.
331355
{: .notice--primary}
@@ -343,10 +367,10 @@ Call attention to a block of text.
343367
{: .notice--danger}
344368

345369
<div class="notice" markdown="1">
346-
You can also add the `.notice` class to a `<div>` element like this:
370+
You can also add the `.notice` class to a `<div>` element. Notice below that `markdown="1"` allows you to use markdwon within the html div.
347371

348372
```html
349-
<div class="notice">
373+
<div class="notice" markdown="1">
350374
You can also add the .notice class to a <div> element.
351375

352376
* Bullet point 1

0 commit comments

Comments
 (0)