-
Notifications
You must be signed in to change notification settings - Fork 62
Fix: reorganize index structure for users #188
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
Changes from all commits
78ff4dd
e0f3fdb
873ffdb
3ebfadf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ h1 { | |
color: var(--pyos-h1-color); | ||
} | ||
h2 { | ||
margin-top: 80px; | ||
margin-top: 1em; | ||
} | ||
|
||
h3 { | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -56,7 +56,7 @@ Community docs | |||||
|
||||||
Publish your docs | ||||||
``` | ||||||
## _new_ Tutorial Series: How to Create a Python Package | ||||||
## _new_ Tutorial Series | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about a middle ground. i just know that header tags matter in search results. And people skim There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Either way! All these are always just suggestions. |
||||||
|
||||||
The how to create a Python package tutorial series is being developed | ||||||
by the community now! Join our community review process or watch development of these tutorials in our [Github repo here](https://github.com/pyOpenSci/python-package-guide). | ||||||
|
@@ -100,7 +100,7 @@ by the community now! Join our community review process or watch development of | |||||
::::: | ||||||
|
||||||
|
||||||
## Python packaging ecosystem overview & best practices | ||||||
## Packaging | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
Learn about Python packaging best practices. You will also get to know the | ||||||
the vibrant ecosystem of packaging tools that are available to help you with your Python packaging needs. | ||||||
|
@@ -135,31 +135,90 @@ Learn about best practices for: | |||||
|
||||||
::: | ||||||
:::: | ||||||
::::: | ||||||
|
||||||
## Documentation | ||||||
|
||||||
:::::{grid} 1 1 2 2 | ||||||
:class-container: text-center | ||||||
:gutter: 3 | ||||||
|
||||||
::::{grid-item} | ||||||
:::{card} ✨ Write & Publish Docs ✨ | ||||||
:::{card} ✨ Write The Docs ✨ | ||||||
:class-card: left-aligned | ||||||
|
||||||
* [Create documentation for your users](/documentation/write-user-documentation/intro) | ||||||
* [Core files to include in your package repository](/documentation/repository-files/intro) | ||||||
* [Write tutorials to show how your package is used](/documentation/write-user-documentation/create-package-tutorials) | ||||||
::: | ||||||
:::: | ||||||
|
||||||
::::{grid-item} | ||||||
:::{card} ✨ Developer Docs ✨ | ||||||
:class-card: left-aligned | ||||||
|
||||||
* [Create documentation for collaborating developers](/documentation/repository-files/contributing-file) | ||||||
* [Write a development guide](/documentation/repository-files/development-guide) | ||||||
::: | ||||||
:::: | ||||||
|
||||||
::::{grid-item} | ||||||
:::{card} ✨ Document For A Community ✨ | ||||||
:class-card: left-aligned | ||||||
|
||||||
* [Writing a README file](/documentation/repository-files/readme-file-best-practices) | ||||||
* [Set norms with a Code of Conduct](/documentation/repository-files/code-of-conduct-file) | ||||||
* [License your package](/documentation/repository-files/license-files) | ||||||
::: | ||||||
:::: | ||||||
|
||||||
::::{grid-item} | ||||||
:::{card} ✨ Publish Your Docs ✨ | ||||||
:class-card: left-aligned | ||||||
|
||||||
* [How to publish your docs](/documentation/hosting-tools/intro) | ||||||
* [Using Sphinx](/documentation/hosting-tools/intro) | ||||||
* [Markdown, MyST, and ReST](/documentation/hosting-tools/myst-markdown-rst-doc-syntax) | ||||||
* [Host your docs on Read The Docs or Github Pages](/documentation/hosting-tools/publish-documentation-online) | ||||||
::: | ||||||
:::: | ||||||
|
||||||
::::: | ||||||
|
||||||
## Tests | ||||||
|
||||||
*We are actively working on this section. [Follow development here.](https://github.com/pyOpenSci/python-package-guide)* | ||||||
|
||||||
:::::{grid} 1 1 2 2 | ||||||
:class-container: text-center | ||||||
:gutter: 3 | ||||||
|
||||||
::::{grid-item} | ||||||
:::{card} ✨ Tests for your Python package ✨ | ||||||
:class-card: left-aligned | ||||||
|
||||||
* [Intro to testing](tests/index.md) | ||||||
* [Write tests](tests/write-tests) | ||||||
* [Types of tests](tests/test-types) | ||||||
::: | ||||||
:::: | ||||||
|
||||||
::::{grid-item} | ||||||
:::{card} ✨ Run your tests ✨ | ||||||
:class-card: left-aligned | ||||||
|
||||||
* [Run tests locally](tests/run-tests) | ||||||
* [Run tests in CI](tests/tests-ci) | ||||||
|
||||||
*We are actively working on this section. [Follow development here.](https://github.com/pyOpenSci/python-package-guide)* | ||||||
::: | ||||||
:::: | ||||||
::::: | ||||||
|
||||||
## Contributing | ||||||
|
||||||
:::::{grid} 1 1 2 2 | ||||||
:class-container: text-center | ||||||
:gutter: 3 | ||||||
|
||||||
|
||||||
::::{grid-item} | ||||||
:::{card} ✨ Code style & Format ✨ | ||||||
|
@@ -228,20 +287,19 @@ This is a living guide that is updated as tools and best practices evolve in the | |||||
Tutorials <tutorials/intro> | ||||||
``` | ||||||
|
||||||
|
||||||
```{toctree} | ||||||
:hidden: | ||||||
:caption: Documentation | ||||||
:caption: Packaging | ||||||
|
||||||
Documentation <documentation/index> | ||||||
Packaging <package-structure-code/intro> | ||||||
|
||||||
``` | ||||||
|
||||||
```{toctree} | ||||||
:hidden: | ||||||
:caption: Packaging | ||||||
:caption: Documentation | ||||||
|
||||||
Packaging <package-structure-code/intro> | ||||||
Documentation <documentation/index> | ||||||
|
||||||
``` | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sneakers-the-rat we can merge this but i have a question. i see
em, px which is fixed and rem used. and i never know when to use what approach. i'm curious what your thoughts are!! :) just a learning moment for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically the way I think about it is px is rarely the "right" thing for responsive because what really matters most of the time is relative size - 1px is very different as a proportion of screen on different displays. But it is definitely the easiest and most predictable to reason about.
em and rem are both relative units, but em is relative to the current (parent) font size and REM is relative to the root size. So REM when you might use the class in multiple contexts but want the thing to look the same, em when you would want it to scale. I just default em.
With padding/margins specifically I think em is easier to think about bc I am looking at the page and can eyeball "I need about a text height space there" vs. I have no idea what that is in px. And the scale isnt necessarily linear but the spacing you need scales with the text size anyway so you need to do fewer fine tuning things over time. When you see a page where all the spacings are subtly wonky its usually because the sizes use px/other absolute unit (and also maybe not using sass in an era before easy css variables and calc)