-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
f643ac8
commit 4cacbc1
Showing
66 changed files
with
3,007 additions
and
51 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
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 |
---|---|---|
|
@@ -4,6 +4,12 @@ on: | |
release: | ||
types: [ published ] | ||
|
||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Version to be released (syntax: v<major>.<minor>.<patch>)" | ||
required: true | ||
|
||
jobs: | ||
release: | ||
name: "Release" | ||
|
@@ -47,3 +53,35 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BIFROEST_VENDOR: engity | ||
|
||
documentation: | ||
name: "Documentation" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: true | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r docs/requirements.txt | ||
- name: Setup Git | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "Engity Bot" | ||
- name: Deploy | ||
run: | | ||
VERSION_INPUT="${{ github.event.inputs.version }}" | ||
VERSION_REF="${{ github.ref }}" | ||
export VERSION=$(test -z "${VERSION_INPUT}" && echo $(echo "${VERSION_REF}" | sed -e "s#^refs/tags/##g" | sed -e "s#^v##g") || echo "${VERSION_INPUT}") | ||
echo "Version: ${VERSION}" | ||
mike deploy --push --update-aliases "${VERSION}" latest |
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,2 @@ | ||
var | ||
.cache |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,37 @@ | ||
import os | ||
import posixpath | ||
|
||
from mkdocs.structure.files import Files | ||
from mkdocs.structure.pages import Page | ||
|
||
|
||
# noinspection PyUnusedLocal | ||
def on_page_markdown(markdown: str, page: Page, config, files: Files): | ||
is_homepage = page.is_homepage or page.file.dest_path == "index.html" | ||
title = page.meta.get("title", page.title) | ||
if not is_homepage: | ||
title = f"{title} - {config.site_name}" | ||
|
||
description = page.meta["description"] if "description" in page.meta else config.site_description | ||
url = ("{}". | ||
format(posixpath.join(config.site_url or ".", config.extra["social_banner"])). | ||
replace(os.path.sep, "/") | ||
) | ||
|
||
page.meta["meta"] = page.meta.get("meta", []) + [ | ||
{"property": "og:locale", "content": "en"}, | ||
{"property": "og:type", "content": "website" if is_homepage else "article"}, | ||
{"property": "og:title", "content": title}, | ||
{"property": "og:description", "content": description}, | ||
{"property": "og:image", "content": url}, | ||
{"property": "og:image:type", "content": "image/png"}, | ||
{"property": "og:image:width", "content": "1280"}, | ||
{"property": "og:image:height", "content": "640"}, | ||
{"property": "og:url", "content": page.canonical_url}, | ||
|
||
{"name": "twitter:site", "content": "@ENGITY_com"}, | ||
{"name": "twitter:card", "content": "summary_large_image"}, | ||
{"name": "twitter:title", "content": title}, | ||
{"name": "twitter:description", "content": description}, | ||
{"name": "twitter:image", "content": url} | ||
] |
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 @@ | ||
{%- extends "base.html" %} | ||
|
||
{%- block outdated %} | ||
You're not viewing the latest version. | ||
<a href="{{ '../' ~ base_url }}"> | ||
<strong>Click here to go to latest.</strong> | ||
</a> | ||
{%- endblock %} |
Oops, something went wrong.