-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Set up the documentation starter pack in under docs/ * Remove the obsolete workflow to trigger RTD builds using webhook and token
- Loading branch information
Showing
37 changed files
with
1,919 additions
and
25 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,68 @@ | ||
name: Automatic documentation checks | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
spellcheck: | ||
name: Spelling check | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: docs | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Aspell | ||
run: | | ||
sudo apt-get install aspell aspell-en | ||
- name: Install the doc framework | ||
run: | | ||
make install | ||
- name: Build docs and run spelling checker | ||
run: | | ||
make spelling | ||
woke: | ||
name: Inclusive language check | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: docs | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: woke | ||
uses: get-woke/woke-action@v0 | ||
with: | ||
# Cause the check to fail on any broke rules | ||
fail-on-error: true | ||
woke-args: "*.rst **/*.rst -c https://github.com/canonical-web-and-design/Inclusive-naming/raw/main/config.yml" | ||
|
||
linkcheck: | ||
name: Link check | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: docs | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install the doc framework | ||
run: | | ||
make install | ||
- name: Run linkchecker | ||
run: | | ||
make linkcheck |
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
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,8 @@ | ||
/*env*/ | ||
.sphinx/venv | ||
.sphinx/warnings.txt | ||
.sphinx/.wordlist.dic | ||
_build | ||
.DS_Store | ||
__pycache__ | ||
.idea/ |
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,189 @@ | ||
/** Fix the font weight (300 for normal, 400 for slightly bold) **/ | ||
|
||
div.page, h1, h2, h3, h4, h5, h6, .sidebar-tree .current-page>.reference, button, input, optgroup, select, textarea, th.head { | ||
font-weight: 300 | ||
} | ||
|
||
.toc-tree li.scroll-current>.reference, dl.glossary dt, dl.simple dt, dl:not([class]) dt { | ||
font-weight: 400; | ||
} | ||
|
||
/** Table styling **/ | ||
|
||
th.head { | ||
text-transform: uppercase; | ||
font-size: var(--font-size--small); | ||
} | ||
|
||
table.docutils { | ||
border: 0; | ||
box-shadow: none; | ||
width:100%; | ||
} | ||
|
||
table.docutils td, table.docutils th, table.docutils td:last-child, table.docutils th:last-child, table.docutils td:first-child, table.docutils th:first-child { | ||
border-right: none; | ||
border-left: none; | ||
} | ||
|
||
/* Allow to centre text horizontally in table data cells */ | ||
table.align-center { | ||
text-align: center !important; | ||
} | ||
|
||
/** No rounded corners **/ | ||
|
||
.admonition, code.literal, .sphinx-tabs-tab, .sphinx-tabs-panel, .highlight { | ||
border-radius: 0; | ||
} | ||
|
||
/** Admonition styling **/ | ||
|
||
.admonition { | ||
border-top: 1px solid #d9d9d9; | ||
border-right: 1px solid #d9d9d9; | ||
border-bottom: 1px solid #d9d9d9; | ||
} | ||
|
||
/** Color for the "copy link" symbol next to headings **/ | ||
|
||
a.headerlink { | ||
color: var(--color-brand-primary); | ||
} | ||
|
||
/** Line to the left of the current navigation entry **/ | ||
|
||
.sidebar-tree li.current-page { | ||
border-left: 2px solid var(--color-brand-primary); | ||
} | ||
|
||
/** Some tweaks for issue #16 **/ | ||
|
||
[role="tablist"] { | ||
border-bottom: 1px solid var(--color-sidebar-item-background--hover); | ||
} | ||
|
||
.sphinx-tabs-tab[aria-selected="true"] { | ||
border: 0; | ||
border-bottom: 2px solid var(--color-brand-primary); | ||
background-color: var(--color-sidebar-item-background--current); | ||
font-weight:300; | ||
} | ||
|
||
.sphinx-tabs-tab{ | ||
color: var(--color-brand-primary); | ||
font-weight:300; | ||
} | ||
|
||
.sphinx-tabs-panel { | ||
border: 0; | ||
border-bottom: 1px solid var(--color-sidebar-item-background--hover); | ||
background: var(--color-background-primary); | ||
} | ||
|
||
button.sphinx-tabs-tab:hover { | ||
background-color: var(--color-sidebar-item-background--hover); | ||
} | ||
|
||
/** Custom classes to fix scrolling in tables by decreasing the | ||
font size or breaking certain columns. | ||
Specify the classes in the Markdown file with, for example: | ||
```{rst-class} break-col-4 min-width-4-8 | ||
``` | ||
**/ | ||
|
||
table.dec-font-size { | ||
font-size: smaller; | ||
} | ||
table.break-col-1 td.text-left:first-child { | ||
word-break: break-word; | ||
} | ||
table.break-col-4 td.text-left:nth-child(4) { | ||
word-break: break-word; | ||
} | ||
table.min-width-1-15 td.text-left:first-child { | ||
min-width: 15em; | ||
} | ||
table.min-width-4-8 td.text-left:nth-child(4) { | ||
min-width: 8em; | ||
} | ||
|
||
/** Underline for abbreviations **/ | ||
|
||
abbr[title] { | ||
text-decoration: underline solid #cdcdcd; | ||
} | ||
|
||
/** Use the same style for right-details as for left-details **/ | ||
.bottom-of-page .right-details { | ||
font-size: var(--font-size--small); | ||
display: block; | ||
} | ||
|
||
/** Version switcher */ | ||
button.version_select { | ||
color: var(--color-foreground-primary); | ||
background-color: var(--color-toc-background); | ||
padding: 5px 10px; | ||
border: none; | ||
} | ||
|
||
.version_select:hover, .version_select:focus { | ||
background-color: var(--color-sidebar-item-background--hover); | ||
} | ||
|
||
.version_dropdown { | ||
position: relative; | ||
display: inline-block; | ||
text-align: right; | ||
font-size: var(--sidebar-item-font-size); | ||
} | ||
|
||
.available_versions { | ||
display: none; | ||
position: absolute; | ||
right: 0px; | ||
background-color: var(--color-toc-background); | ||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
z-index: 11; | ||
} | ||
|
||
.available_versions a { | ||
color: var(--color-foreground-primary); | ||
padding: 12px 16px; | ||
text-decoration: none; | ||
display: block; | ||
} | ||
|
||
.available_versions a:hover {background-color: var(--color-sidebar-item-background--current)} | ||
|
||
.show {display:block;} | ||
|
||
/** Fix for nested numbered list - the nested list is lettered **/ | ||
ol.arabic ol.arabic { | ||
list-style: lower-alpha; | ||
} | ||
|
||
/** Make expandable sections look like links **/ | ||
details summary { | ||
color: var(--color-link); | ||
} | ||
|
||
/** Fix the styling of the version box for readthedocs **/ | ||
|
||
#furo-readthedocs-versions .rst-versions, #furo-readthedocs-versions .rst-current-version, #furo-readthedocs-versions:focus-within .rst-current-version, #furo-readthedocs-versions:hover .rst-current-version { | ||
background: var(--color-sidebar-item-background--hover); | ||
} | ||
|
||
.rst-versions .rst-other-versions dd a { | ||
color: var(--color-link); | ||
} | ||
|
||
#furo-readthedocs-versions:focus-within .rst-current-version .fa-book, #furo-readthedocs-versions:hover .rst-current-version .fa-book, .rst-versions .rst-other-versions { | ||
color: var(--color-sidebar-link-text); | ||
} | ||
|
||
.rst-versions .rst-current-version { | ||
color: var(--color-version-popup); | ||
font-weight: bolder; | ||
} |
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,24 @@ | ||
.github-issue-link-container { | ||
padding-right: 0.5rem; | ||
} | ||
.github-issue-link { | ||
font-size: var(--font-size--small); | ||
font-weight: bold; | ||
background-color: #DD4814; | ||
padding: 13px 23px; | ||
text-decoration: none; | ||
} | ||
.github-issue-link:link { | ||
color: #FFFFFF; | ||
} | ||
.github-issue-link:visited { | ||
color: #FFFFFF | ||
} | ||
.muted-link.github-issue-link:hover { | ||
color: #FFFFFF; | ||
text-decoration: underline; | ||
} | ||
.github-issue-link:active { | ||
color: #FFFFFF; | ||
text-decoration: underline; | ||
} |
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,26 @@ | ||
window.onload = function() { | ||
const link = document.createElement("a"); | ||
link.classList.add("muted-link"); | ||
link.classList.add("github-issue-link"); | ||
link.text = "Give feedback"; | ||
link.href = ( | ||
github_url | ||
+ "/issues/new?" | ||
+ "title=docs%3A+TYPE+YOUR+QUESTION+HERE" | ||
+ "&body=*Please describe the question or issue you're facing with " | ||
+ `"${document.title}"` | ||
+ ".*" | ||
+ "%0A%0A%0A%0A%0A" | ||
+ "---" | ||
+ "%0A" | ||
+ `*Reported+from%3A+${location.href}*` | ||
); | ||
link.target = "_blank"; | ||
|
||
const div = document.createElement("div"); | ||
div.classList.add("github-issue-link-container"); | ||
div.append(link) | ||
|
||
const container = document.querySelector(".article-container > .content-icon-container"); | ||
container.prepend(div); | ||
}; |
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,7 @@ | ||
{% extends "furo/base.html" %} | ||
|
||
{% block theme_scripts %} | ||
<script> | ||
const github_url = "{{ github_url }}"; | ||
</script> | ||
{% endblock theme_scripts %} |
Oops, something went wrong.