Skip to content

Commit 4f56f72

Browse files
committed
initialise docs
1 parent a5572df commit 4f56f72

File tree

7 files changed

+976
-0
lines changed

7 files changed

+976
-0
lines changed

.github/workflows/docs.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Docs latest and released versions
2+
3+
on:
4+
push:
5+
branches:
6+
- "v*.*"
7+
- main
8+
9+
jobs:
10+
build_docs:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
name: Build and Deploy Job
16+
steps:
17+
- uses: actions/checkout@latest
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
fetch-depth: 0
21+
22+
- name: Set up Python 3.12
23+
uses: actions/setup-python@latest
24+
with:
25+
python-version: 3.12
26+
27+
- name: Install poetry
28+
uses: abatilo/actions-poetry@latest
29+
with:
30+
poetry-version: latest
31+
32+
- name: Install packages
33+
run: |
34+
poetry install
35+
36+
- name: Configure Git user
37+
run: |
38+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
39+
git config --local user.name "github-actions[bot]"
40+
41+
- name: Extract branch name
42+
shell: bash
43+
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
44+
id: extract_branch
45+
46+
- name: Build docs
47+
run: |
48+
poetry run mike deploy --push ${{ steps.extract_branch.outputs.branch }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check Pull Request Title
2+
3+
on:
4+
pull_request:
5+
branches: [main, feat/*]
6+
7+
jobs:
8+
semantic_pull_request:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: read
12+
steps:
13+
- name: Check PR title uses conventional commit spec
14+
uses: amannn/action-semantic-pull-request@latest
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
with:
18+
types: |
19+
fix
20+
feat

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.venv

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# EmbedIDS, Modern Intrusion Detection System (IDS) for Embedded Systems

mkdocs.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
site_name: EmbedIDS, Modern Intrusion Detection System (IDS) for Embedded Systems
2+
site_author: Seyed Amir Alavi
3+
site_url: https://embedids.samiralavi.io/
4+
repo_name: samiralavi/embedids
5+
docs_dir: "docs"
6+
theme:
7+
name: material
8+
language: en
9+
icon:
10+
logo: material/contacts
11+
favicon: images/favicon.png
12+
palette:
13+
- media: "(prefers-color-scheme: light)"
14+
scheme: default
15+
toggle:
16+
icon: material/weather-sunny
17+
name: Switch to dark mode
18+
primary: teal
19+
accent: blue
20+
- media: "(prefers-color-scheme: dark)"
21+
scheme: slate
22+
toggle:
23+
icon: material/weather-night
24+
name: Switch to light mode
25+
primary: teal
26+
accent: red
27+
28+
features:
29+
- navigation.sections
30+
- toc.integrate
31+
- navigation.top
32+
- search.suggest
33+
- search.highlight
34+
- search.share
35+
- content.code.copy
36+
37+
extra:
38+
version:
39+
provider: mike
40+
41+
markdown_extensions:
42+
- admonition
43+
- pymdownx.highlight:
44+
anchor_linenums: true
45+
line_spans: __span
46+
pygments_lang_class: true
47+
- pymdownx.inlinehilite
48+
- pymdownx.snippets
49+
- pymdownx.details
50+
- pymdownx.superfences
51+
- md_in_html
52+
- attr_list
53+
- toc:
54+
permalink: true
55+
toc_depth: 2
56+
57+
plugins:
58+
- search
59+
- mike
60+
61+
nav:
62+
- "index.md"
63+
64+
copyright: Copyright © 2025 Seyed Amir Alavi.

poetry.lock

Lines changed: 821 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[project]
2+
name = "embedids"
3+
version = "0.1.0"
4+
description = "Modern Intrusion Detection System (IDS) for Embedded Systems"
5+
authors = [
6+
{name = "Amir Alavi",email = "[email protected]"}
7+
]
8+
license = "Apache-2.0"
9+
readme = "README.md"
10+
requires-python = ">=3.12"
11+
dependencies = [
12+
"mkdocs-material (>=9.6.15,<10.0.0)",
13+
"mike (>=2.1.3,<3.0.0)"
14+
]
15+
16+
[tool.poetry]
17+
package-mode = false
18+
19+
[build-system]
20+
requires = ["poetry-core>=2.0.0,<3.0.0"]
21+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)