Skip to content

Commit 83af5e3

Browse files
committed
Create documentation.
1 parent 4440b5a commit 83af5e3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+43785
-1
lines changed

.github/workflows/docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.12'
24+
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v4
27+
28+
- name: Install dependencies
29+
run: uv sync --all-groups
30+
31+
- name: Deploy docs
32+
run: uv run mkdocs gh-deploy --force

impulse/parsing/replay_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(self, global_features: List[str], player_features: List[str], fps:
7070
self.fps = fps
7171

7272
@classmethod
73-
def from_preset(cls, preset_name: str, fps: float = ParsingConfig.DEFAULT_FPS):
73+
def from_preset(cls, preset_name: str, fps: float = ParsingConfig.DEFAULT_FPS) -> "ReplayParser":
7474
"""
7575
Create parser from a feature preset.
7676

mkdocs.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
site_name: Impulse
2+
site_description: A Python library for collecting, parsing, and processing Rocket League replay files for machine learning.
3+
site_url: https://darmendariz.github.io/impulse
4+
repo_url: https://github.com/darmendariz/impulse
5+
repo_name: darmendariz/impulse
6+
7+
theme:
8+
name: material
9+
palette:
10+
- media: "(prefers-color-scheme: light)"
11+
scheme: default
12+
primary: blue
13+
accent: blue
14+
toggle:
15+
icon: material/brightness-7
16+
name: Switch to dark mode
17+
- media: "(prefers-color-scheme: dark)"
18+
scheme: slate
19+
primary: blue
20+
accent: blue
21+
toggle:
22+
icon: material/brightness-4
23+
name: Switch to light mode
24+
features:
25+
- navigation.tabs
26+
- navigation.sections
27+
- navigation.expand
28+
- navigation.top
29+
- search.highlight
30+
- search.suggest
31+
- content.code.copy
32+
- content.code.annotate
33+
34+
plugins:
35+
- search
36+
- mkdocstrings:
37+
handlers:
38+
python:
39+
options:
40+
docstring_style: google
41+
show_source: true
42+
show_root_heading: true
43+
show_root_full_path: false
44+
show_symbol_type_heading: true
45+
show_symbol_type_toc: true
46+
members_order: source
47+
separate_signature: true
48+
show_signature_annotations: true
49+
merge_init_into_class: true
50+
51+
markdown_extensions:
52+
- admonition
53+
- pymdownx.details
54+
- pymdownx.superfences
55+
- pymdownx.highlight:
56+
anchor_linenums: true
57+
- pymdownx.inlinehilite
58+
- pymdownx.tabbed:
59+
alternate_style: true
60+
- pymdownx.snippets
61+
- attr_list
62+
- md_in_html
63+
- toc:
64+
permalink: true
65+
66+
nav:
67+
- Home: index.md
68+
- Getting Started:
69+
- Installation: getting-started/installation.md
70+
- Quick Start: getting-started/quickstart.md
71+
- Collection:
72+
- Overview: collection/overview.md
73+
- Downloading Replays: collection/downloading.md
74+
- Storage Backends: collection/storage.md
75+
- RLCS Seasons: collection/rlcs.md
76+
- API Reference: collection/api-reference.md
77+
- Parsing:
78+
- Overview: parsing/overview.md
79+
- Feature Extraction: parsing/features.md
80+
- Output Formats: parsing/output-formats.md
81+
- API Reference: parsing/api-reference.md
82+
- Configuration:
83+
- Overview: configuration/index.md
84+
- Reference:
85+
- Database: reference/database.md
86+
- Changelog: reference/changelog.md

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ dependencies = [
2121

2222
[dependency-groups]
2323
dev = [
24+
"mkdocs-gen-files>=0.6.0",
25+
"mkdocs-literate-nav>=0.6.2",
26+
"mkdocs-material>=9.7.2",
27+
"mkdocstrings[python]>=1.0.3",
2428
"pytest-cov>=7.0.0",
2529
"pytest-mock>=3.15.1",
2630
"responses>=0.25.8",
31+
"ruff>=0.15.2",
2732
]

0 commit comments

Comments
 (0)