Skip to content

Commit 3abc5b7

Browse files
authored
Fix: fix overwritten card edits toctree fix (#142)
1 parent c9d7324 commit 3abc5b7

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

_static/pyos.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,3 +299,8 @@ html[data-theme=dark] {
299299
text-align: left;
300300
}
301301
}
302+
303+
p.sd-card-text {
304+
text-align: left;
305+
padding: 1em;
306+
}

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"image_light": "logo-light-mode.png",
8888
"alt_text": "pyOpenSci Python Package Guide. The pyOpenSci logo is a purple flower with pyOpenSci under it. The o in open sci is the center of the flower",
8989
},
90-
"header_links_before_dropdown": 3,
90+
"header_links_before_dropdown": 4,
9191
"use_edit_page_button": True,
9292
"show_nav_level": 2,
9393
"navigation_depth": 3,

index.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,6 @@ This guidebook is for anyone interested in learning more about Python packaging.
176176
1. Resources to help you navigate the Python packaging ecosystem of tools and approaches to packaging.
177177
1. A curated list of resources to help you get your package into documented, usable and maintainable shape.
178178

179-
180-
181-
182179
## Where this guide is headed
183180

184181
If you have ideas of things you'd like
@@ -190,7 +187,7 @@ This is a living guide that is updated as tools and best practices evolve in the
190187

191188
```{toctree}
192189
:hidden:
193-
:caption: Testing
190+
:caption: Tutorials
194191
195192
Tutorials <tutorials/intro>
196193
@@ -217,5 +214,7 @@ Packaging <package-structure-code/intro>
217214
:caption: Testing
218215
219216
Tests <tests/index>
217+
Write tests <tests/write-tests>
218+
Types of tests <tests/test-types>
220219
221220
```

tests/index.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,35 @@ tests for your Python package and how you can setup infrastructure
99
to run your tests both locally and on GitHub.
1010

1111

12-
::::{grid} 1 1 3 3
12+
:::::{grid} 1 1 3 3
1313
:class-container: text-center
1414
:gutter: 3
1515

16-
:::{grid-item-card}
16+
::::{grid-item}
17+
:::{card} ✨ Why write tests ✨
1718
:link: write-tests
1819
:link-type: doc
19-
20-
✨ Why write tests ✨
21-
^^^
20+
:class-card: left-aligned
2221

2322
Learn more about the art of writing tests for your Python package.
2423
Learn about why you should write tests and how they can help you and
2524
potential contributors to your project.
2625
:::
26+
::::
2727

28-
:::{grid-item-card}
28+
::::{grid-item}
29+
:::{card} ✨ Types of tests ✨
2930
:link: test-types
3031
:link-type: doc
32+
:class-card: left-aligned
3133

32-
✨ Types of tests ✨
33-
^^^
3434
There are three general types of tests that you can write for your Python
3535
package: unit tests, integration tests and end-to-end (or functional) tests. Learn about all three.
3636
:::
3737
::::
3838

39+
:::::
40+
3941

4042
:::{figure-md} fig-target
4143

0 commit comments

Comments
 (0)