-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from callowayproject/doc-conversion
Updated docs and styles
- Loading branch information
Showing
19 changed files
with
666 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Deploy final documentation | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
git pull --all | ||
python -m pip install ".[docs]" | ||
- name: Build and deploy documentation | ||
run: | | ||
mkdocs gh-deploy --strict -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Deploy PR previews | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- closed | ||
|
||
concurrency: preview-${{ github.ref }} | ||
|
||
jobs: | ||
deploy-preview: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install ".[docs]" | ||
- name: Build documentation | ||
run: | | ||
mkdocs build --strict -v | ||
- name: Deploy preview | ||
uses: rossjrw/pr-preview-action@v1 | ||
with: | ||
source-dir: ./site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
comments: true | ||
title: "Changelog" | ||
--- | ||
|
||
{% include-markdown "../CHANGELOG.md" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
--- | ||
comments: true | ||
title: "Contributing" | ||
--- | ||
|
||
{% include-markdown "../CONTRIBUTING.md" rewrite-relative-urls=false %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,12 @@ | ||
.class .sig-prename.descclassname { | ||
display: none; | ||
/* Indentation. */ | ||
div.doc-contents:not(.first) { | ||
padding-left: 25px; | ||
border-left: .05rem solid var(--md-typeset-table-color); | ||
} | ||
|
||
.subheading { | ||
line-height: 1.25; | ||
margin-bottom: 0; | ||
color: #646776; | ||
} | ||
|
||
.subheading + section > h1 { | ||
margin-top: 0; | ||
} | ||
|
||
.field-list p { | ||
margin: 0; | ||
} | ||
|
||
.field-list > dl { | ||
--gap: 1rem; | ||
--line-offset: calc(var(--gap) / 2); | ||
--line-thickness: 1px; | ||
--line-color: #e0e0e0; | ||
|
||
display: grid; | ||
grid-template-columns: fit-content(30%) auto; | ||
grid-gap: var(--gap); | ||
margin-bottom: 1rem; | ||
overflow: hidden; | ||
} | ||
|
||
.field-list > dl > dt { | ||
text-align: right; | ||
font-weight: bold; | ||
word-break: break-word; | ||
position: relative; | ||
} | ||
|
||
[dir=ltr] .field-list > dl > dd { | ||
margin-top: 0; | ||
margin-left: 0; | ||
margin-bottom: 0; | ||
position: relative; | ||
} | ||
|
||
/* Pseudo Element Shared Styling */ | ||
.field-list > dl > dt::before, | ||
.field-list > dl > dt::after, | ||
.field-list > dl > dd::before, | ||
.field-list > dl > dd::after { | ||
content: ''; | ||
position: absolute; | ||
background-color: var(--line-color); | ||
z-index: 1; | ||
} | ||
|
||
/* Row Borders */ | ||
.field-list > dl > dt::after, | ||
.field-list > dl > dd::after { | ||
inline-size: 100vw; | ||
block-size: var(--line-thickness); | ||
inset-inline-start: 0; | ||
inset-block-start: calc(var(--line-offset) * -1); | ||
} | ||
|
||
|
||
figure { | ||
padding-bottom: .75rem; | ||
padding-top: .5rem; | ||
/* Normal size fonts on parameter tables */ | ||
.md-typeset div.doc-contents table { | ||
font-size: 1em; | ||
width: 100%; | ||
display: table; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
dl.field-list .doc-param-default, dl.doc-field-list .doc-param-default { | ||
float: none; | ||
} | ||
|
||
dd.doc-field-def > p:last-child { | ||
padding-bottom: 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
dl.field-list, dl.doc-field-list { | ||
display: flex; | ||
flex-flow: row wrap; | ||
padding-left: 10px; | ||
} | ||
|
||
dl.field-list > dt, dl.doc-field-list > dt { | ||
flex-basis: 20%; | ||
font-weight: bold; | ||
word-break: break-word; | ||
padding: 10px 0; | ||
border-bottom: 1px solid #e5e5e5; | ||
} | ||
|
||
dl.field-list > dt:after { | ||
content: ":"; | ||
} | ||
|
||
dl.field-list > dd.doc-field-def, dl.doc-field-list > dd.doc-field-def { | ||
flex-basis: 70%; | ||
flex-grow: 1; | ||
margin: 0; | ||
padding: 10px 0 10px 10px; | ||
border-bottom: 1px solid #e5e5e5; | ||
} | ||
|
||
dl { | ||
margin-bottom: 15px; | ||
} | ||
|
||
dd > :first-child { | ||
margin-top: 0; | ||
} | ||
|
||
dd ul, dd table { | ||
margin-bottom: 10px; | ||
} | ||
|
||
dd { | ||
margin-top: 3px; | ||
margin-bottom: 10px; | ||
margin-left: 30px; | ||
} | ||
|
||
dl > dd:last-child, | ||
dl > dd:last-child > :last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
dt:target, span.highlighted { | ||
background-color: #fbe54e; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
--- | ||
comments: true | ||
title: Bump My Version | ||
--- | ||
|
||
# Bump My Version | ||
|
||
{% | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.