-
Notifications
You must be signed in to change notification settings - Fork 145
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 #346 from TheHive-Project/345-add-initial-mkdocs-page
#345 - Add initial mkdocs page
- Loading branch information
Showing
12 changed files
with
257 additions
and
35 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,17 @@ | ||
name: build-docs | ||
on: | ||
workflow_call: | ||
jobs: | ||
build: | ||
name: Build docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12 | ||
- name: Install build dependencies | ||
run: pip install --no-cache-dir -U pip .['docs'] | ||
- name: Build docs | ||
run: ./scripts/cd.py --build-docs |
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,25 @@ | ||
name: deploy-docs | ||
on: | ||
workflow_call: | ||
jobs: | ||
upload: | ||
name: Deploy docs to github pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Compare tag and package version | ||
run: | | ||
TAG=${GITHUB_REF#refs/*/} | ||
VERSION=$(grep -Po '(?<=version = ")[^"]*' pyproject.toml) | ||
if [ "$TAG" != "$VERSION" ]; then | ||
echo "Tag value and package version are different: ${TAG} != ${VERSION}" | ||
exit 1 | ||
fi | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12 | ||
- name: Install build dependencies | ||
run: pip install --no-cache-dir -U pip .['docs'] | ||
- name: Deploy to github pages | ||
run: ./scripts/cd.py --deploy-docs |
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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
# generic | ||
__pycache__/ | ||
thehive4py.egg-info/ | ||
build/ | ||
dist/ | ||
venv/ | ||
tmp/ | ||
|
||
# local garbage yet | ||
tests/resources/ | ||
examples/ | ||
# pytest | ||
.coverage | ||
coverage.xml | ||
|
||
# mkdocs | ||
site/ | ||
|
||
# misc | ||
tmp/ |
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
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,33 @@ | ||
--- | ||
title: Coming Soon! | ||
hide: | ||
- toc | ||
- navigation | ||
--- | ||
# | ||
<div markdown align="center"> | ||
<p> | ||
<b style="display: block; font-size: 2rem">TheHive4py</b> | ||
<a href="https://github.com/TheHive-Project/TheHive4py" target="_blank"> | ||
<img src="https://strangebee.com/wp-content/uploads/2024/07/Icon4Nav_TheHive.png" alt="TheHive Logo"> | ||
</a> | ||
</p> | ||
<p markdown> | ||
:material-bee:{ .strangebee .bluebee .upleftbee } | ||
:material-bee:{ .strangebee .yellowbee .upbee } | ||
:material-bee:{ .strangebee .bluebee .uprightbee } | ||
</p> | ||
<span class="coming-soon">Coming Soon!</span> | ||
<p markdown> | ||
:material-bee:{ .strangebee .yellowbee .downleftbee } | ||
:material-bee:{ .strangebee .bluebee .downbee } | ||
:material-bee:{ .strangebee .yellowbee .downrightbee } | ||
</p> | ||
|
||
|
||
|
||
<p><em>Our bees are out buzzing to gather all the docs you need!</em></p> | ||
<p><em>Check out our <a href="https://github.com/TheHive-Project/TheHive4py?tab=readme-ov-file#quickstart" target="_blank">Quickstart</a> in the meantime!<em></p> | ||
</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,64 @@ | ||
:root { | ||
--md-primary-fg-color: #0049d4; | ||
--md-accent-fg-color: #ffc72c; | ||
} | ||
|
||
@keyframes pulse { | ||
0%, 100% { | ||
transform: scale(1); | ||
} | ||
50% { | ||
transform: scale(1.25); | ||
} | ||
} | ||
|
||
|
||
.coming-soon { | ||
color: var(--md-primary-fg-color); | ||
font-size: 1.5rem; | ||
font-weight: bold; | ||
transition: 0.75s; | ||
} | ||
|
||
.coming-soon:hover{ | ||
color: var(--md-accent-fg-color); | ||
transition: 0.75s; | ||
} | ||
|
||
.upleftbee { | ||
rotate: -90deg; | ||
} | ||
|
||
.upbee { | ||
rotate: -45deg; | ||
} | ||
|
||
.uprightbee{ | ||
rotate: 0deg; | ||
} | ||
|
||
.downleftbee { | ||
rotate: 180deg; | ||
} | ||
|
||
.downbee { | ||
rotate: 135deg; | ||
} | ||
|
||
.downrightbee{ | ||
rotate: 90deg; | ||
} | ||
|
||
.yellowbee { | ||
color: var(--md-accent-fg-color) | ||
} | ||
|
||
.bluebee { | ||
color: var(--md-primary-fg-color) | ||
} | ||
|
||
.strangebee { | ||
animation: pulse 2s infinite; | ||
font-size: 1.5rem; | ||
vertical-align: top !important; | ||
} |
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,49 @@ | ||
site_name: TheHive4py | ||
theme: | ||
name: material | ||
favicon: img/strangebee.png | ||
logo: img/strangebee.png | ||
features: | ||
- navigation.footer | ||
palette: | ||
- media: "(prefers-color-scheme)" | ||
toggle: | ||
icon: material/lightbulb-auto | ||
name: Switch to light mode | ||
- media: '(prefers-color-scheme: light)' | ||
scheme: default | ||
primary: custom | ||
accent: custom | ||
toggle: | ||
icon: material/lightbulb | ||
name: Switch to dark mode | ||
- media: '(prefers-color-scheme: dark)' | ||
scheme: slate | ||
primary: custom | ||
accent: custom | ||
toggle: | ||
icon: material/lightbulb-outline | ||
name: Switch to system preference | ||
extra_css: | ||
- styles/extra.css | ||
repo_name: TheHive-Project/TheHive4py | ||
repo_url: https://github.com/TheHive-Project/TheHive4py | ||
markdown_extensions: | ||
- attr_list | ||
- md_in_html | ||
- pymdownx.emoji: | ||
emoji_index: !!python/name:material.extensions.emoji.twemoji | ||
emoji_generator: !!python/name:material.extensions.emoji.to_svg | ||
extra: | ||
social: | ||
- icon: simple/discord | ||
link: https://discord.com/invite/XhxG3vzM44 | ||
name: Discord | ||
- icon: simple/github | ||
link: https://github.com/TheHive-Project/TheHive4py | ||
name: GitHub | ||
- icon: simple/python | ||
link: https://pypi.org/project/thehive4py/ | ||
name: PyPI | ||
|
||
|
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 |
---|---|---|
|
@@ -28,6 +28,7 @@ authors = [{ name = "Szabolcs Antal", email = "[email protected]" }] | |
[project.optional-dependencies] | ||
audit = ["bandit", "pip-audit"] | ||
build = ["build", "twine"] | ||
docs = ["mkdocs", "mkdocs-material"] | ||
lint = ["black", "flake8-pyproject", "mypy", "pre-commit"] | ||
test = ["pytest", "pytest-cov"] | ||
dev = ["thehive4py[audit, lint, test, build]"] | ||
|
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