-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
876 additions
and
4 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,75 @@ | ||
name: dev docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- docs/** | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- docs/** | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' && true || false }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# Fetch all history for applying timestamps to every page | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install dependencies | ||
run: pip install -r tasks/requirements.txt | ||
|
||
- name: Configure Git for GitHub Actions bot | ||
run: | | ||
git config --local user.name 'github-actions[bot]' | ||
git config --local user.email 'github-actions[bot]@users.noreply.github.com' | ||
- name: Validate documentation | ||
run: invoke docs.build --validate | ||
|
||
- name: Build documentation | ||
run: invoke docs.build | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: documentation | ||
path: site | ||
|
||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
needs: | ||
- build | ||
|
||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: documentation | ||
path: site | ||
|
||
- uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: site | ||
commit_message: ${{ github.event.head_commit.message }} | ||
# Write .nojekyll at the root, see: | ||
# https://help.github.com/en/github/working-with-github-pages/about-github-pages#static-site-generators | ||
enable_jekyll: false | ||
# Only deploy if there were changes | ||
allow_empty_commit: 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ vendor/ | |
.vendor-new/ | ||
bin/ | ||
/dev/ | ||
/site/ | ||
__pycache__ | ||
.pytest_cache | ||
venv/ | ||
|
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 @@ | ||
[AnchorCheck] |
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,9 @@ | ||
def on_page_content( | ||
html, # noqa: ARG001 | ||
page, | ||
**kwargs, # noqa: ARG001 | ||
): | ||
# https://github.com/mkdocs/mkdocs/issues/3532 | ||
# https://github.com/pypa/hatch/pull/1239 | ||
if title := page._title_from_render: # noqa: SLF001 | ||
page.meta['title'] = title |
Empty file.
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 @@ | ||
[agent-troubleshooting]: https://docs.datadoghq.com/agent/troubleshooting/ |
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,113 @@ | ||
:root > * { | ||
/* https://www.datadoghq.com/about/resources/#datadog-purple */ | ||
--md-primary-fg-color: #632CA6; | ||
--md-primary-fg-color--dark: #632CA6; | ||
|
||
/* https://github.com/squidfunk/mkdocs-material/blob/9.1.2/src/assets/stylesheets/palette/_primary.scss#L34 */ | ||
--md-primary-fg-color--light: #9574CD; | ||
} | ||
|
||
/* Brighter links for dark mode */ | ||
[data-md-color-scheme=slate] { | ||
/* https://github.com/squidfunk/mkdocs-material/blob/9.1.2/src/assets/stylesheets/main/_colors.scss#L91-L92 */ | ||
--md-typeset-a-color: var(--md-primary-fg-color--light); | ||
} | ||
|
||
/* FiraCode https://github.com/tonsky/FiraCode */ | ||
code { font-family: 'Fira Code', monospace; } | ||
|
||
@supports (font-variation-settings: normal) { | ||
code { font-family: 'Fira Code VF', monospace; } | ||
} | ||
|
||
/* https://github.com/squidfunk/mkdocs-material/issues/1522 */ | ||
.md-typeset h5 { | ||
color: var(--md-default-fg-color); | ||
text-transform: none; | ||
} | ||
|
||
/* https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/ */ | ||
.md-typeset .tabbed-set { | ||
border: 1px solid #eee; | ||
} | ||
.md-typeset .tabbed-content { | ||
padding: 0.5em 1em; | ||
} | ||
|
||
/* https://facelessuser.github.io/pymdown-extensions/extensions/progressbar/ */ | ||
|
||
/* TODO: replace all this when there is an updated example https://github.com/facelessuser/pymdown-extensions/issues/912 */ | ||
|
||
/* Normal colors */ | ||
:root > * { | ||
--md-progress-100: #00e676; | ||
--md-progress-80: #00e676; | ||
--md-progress-60: #fbc02d; | ||
--md-progress-40: #ff9100; | ||
--md-progress-20: #ff5252; | ||
--md-progress-0: #ff1744; | ||
} | ||
|
||
.md-typeset { | ||
/* Progress Bars */ | ||
/* Stripe animation */ } | ||
.md-typeset .progress-label { | ||
position: absolute; | ||
width: 100%; | ||
margin: 0; | ||
color: var(--md-default-fg-color); | ||
font-weight: 700; | ||
line-height: 1.4rem; | ||
white-space: nowrap; | ||
text-align: center; | ||
text-shadow: -0.0625em -0.0625em 0.375em var(--md-default-bg-color--light), 0.0625em -0.0625em 0.375em var(--md-default-bg-color--light), -0.0625em 0.0625em 0.375em var(--md-default-bg-color--light), 0.0625em 0.0625em 0.375em var(--md-default-bg-color--light); } | ||
.md-typeset .progress-bar { | ||
float: left; | ||
height: 1.2rem; | ||
background-color: #2979ff; } | ||
.md-typeset .candystripe-animate .progress-bar { | ||
-webkit-animation: animate-stripes 3s linear infinite; | ||
animation: animate-stripes 3s linear infinite; } | ||
.md-typeset .progress { | ||
position: relative; | ||
display: block; | ||
width: 100%; | ||
height: 1.2rem; | ||
margin: 0.5rem 0; | ||
background-color: var(--md-default-fg-color--lightest); } | ||
.md-typeset .progress.thin { | ||
height: 0.4rem; | ||
margin-top: 0.9rem; } | ||
.md-typeset .progress.thin .progress-label { | ||
margin-top: -0.4rem; } | ||
.md-typeset .progress.thin .progress-bar { | ||
height: 0.4rem; } | ||
.md-typeset .progress.candystripe .progress-bar { | ||
background-image: linear-gradient(135deg, var(--md-default-bg-color--lightest) 27%, transparent 27%, transparent 52%, var(--md-default-bg-color--lightest) 52%, var(--md-default-bg-color--lightest) 77%, transparent 77%, transparent); | ||
background-size: 2rem 2rem; } | ||
.md-typeset .progress-100plus .progress-bar { | ||
background-color: var(--md-progress-100); } | ||
.md-typeset .progress-80plus .progress-bar { | ||
background-color: var(--md-progress-80); } | ||
.md-typeset .progress-60plus .progress-bar { | ||
background-color: var(--md-progress-60); } | ||
.md-typeset .progress-40plus .progress-bar { | ||
background-color: var(--md-progress-40); } | ||
.md-typeset .progress-20plus .progress-bar { | ||
background-color: var(--md-progress-20); } | ||
.md-typeset .progress-0plus .progress-bar { | ||
background-color: var(--md-progress-0); } | ||
|
||
@-webkit-keyframes animate-stripes { | ||
0% { | ||
background-position: 0 0; } | ||
100% { | ||
background-position: 6rem 0; } } | ||
|
||
@keyframes animate-stripes { | ||
0% { | ||
background-position: 0 0; } | ||
100% { | ||
background-position: 6rem 0; } } | ||
|
||
/* END TODO */ |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.