Skip to content

Commit

Permalink
Optional-dependency docs: add a self-dependency example (pypa#724)
Browse files Browse the repository at this point in the history
* Optional-dependency docs: add a self-dependency example

* nit

* Update docs/config/dependency.md

Co-authored-by: Arseny Boykov <36469655+Bobronium@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Ofek Lev <ofekmeister@gmail.com>

---------

Co-authored-by: Arseny Boykov <36469655+Bobronium@users.noreply.github.com>
Co-authored-by: Ofek Lev <ofekmeister@gmail.com> effb365
  • Loading branch information
cnpryer and Bobronium committed Feb 8, 2023
1 parent 03d0afd commit ebf788e
Show file tree
Hide file tree
Showing 88 changed files with 3,786 additions and 3,190 deletions.
2 changes: 1 addition & 1 deletion dev/404.html

Large diffs are not rendered by default.

26 changes: 23 additions & 3 deletions dev/assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,31 @@ code { font-family: 'Fira Code', monospace; }
font-variant-ligatures: none;
}

/* Everything below is from https://mkdocstrings.github.io/handlers/python/#recommended-style-material */
/* Everything below is from https://mkdocstrings.github.io/python/customization/#recommended-style-material */

/* Indentation. */
div.doc-contents:not(.first) {
padding-left: 25px;
border-left: 4px solid rgba(230, 230, 230);
margin-bottom: 80px;
border-left: .05rem solid var(--md-typeset-table-color);
}

/* Mark external links as such. */
a.autorefs-external::after {
/* https://primer.style/octicons/arrow-up-right-24 */
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="rgb(0, 0, 0)" d="M18.25 15.5a.75.75 0 00.75-.75v-9a.75.75 0 00-.75-.75h-9a.75.75 0 000 1.5h7.19L6.22 16.72a.75.75 0 101.06 1.06L17.5 7.56v7.19c0 .414.336.75.75.75z"></path></svg>');
content: ' ';

display: inline-block;
position: relative;
top: 0.1em;
margin-left: 0.2em;
margin-right: 0.1em;

height: 1em;
width: 1em;
border-radius: 100%;
background-color: var(--md-typeset-a-color);
}
a.autorefs-external:hover::after {
background-color: var(--md-accent-fg-color);
}
Binary file removed dev/assets/images/favicon.ico
Binary file not shown.
76 changes: 76 additions & 0 deletions dev/assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ebf788e

Please sign in to comment.