Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Generate Documentation

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

jobs:
build-docs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9 # Adjust as needed

- name: Set up Rust
uses: actions/setup-rust@v1
with:
rust-version: 1.59 # Ensure this matches your Rust version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ."[dev]"

- name: Generate Rust Documentation (cargo doc)
run: |
cargo doc --no-deps --document-private-items --target-dir docs/build/rust

- name: Generate Python Documentation with Sphinx
run: |
sphinx-apidoc -o docs/source/ src/pyspector
sphinx-build docs/source docs/build

- name: Upload documentation artifact
uses: actions/upload-artifact@v2
with:
name: docs
path: docs/build/
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ __pycache__/
# Distribution / packaging
.Python
build/
!docs/build/.gitignore
develop-eggs/
dist/
downloads/
Expand Down Expand Up @@ -60,4 +61,8 @@ venv.bak/

# IDEs
.idea/
.vscode/
.vscode/

# Rust
Cargo.lock
target/
1 change: 1 addition & 0 deletions docs/build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
3 changes: 3 additions & 0 deletions docs/source/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
modules.rst
pyspector.rst
pyspector.rules.rst
1 change: 1 addition & 0 deletions docs/source/_static/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
27 changes: 27 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'PySpector'
copyright = '2026, ParzivalHack'
author = 'ParzivalHack'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = ['sphinx.ext.autodoc']

templates_path = ['_templates']
exclude_patterns = []



# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
24 changes: 24 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.. PySpector documentation master file, created by
sphinx-quickstart on Mon Mar 2 03:40:13 2026.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

PySpector documentation
=======================

Add your content using ``reStructuredText`` syntax. See the
`reStructuredText <https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html>`_
documentation for details.

.. toctree::
:maxdepth: 2
:caption: Contents:

modules

Rust Documentation
===================

You can view the generated Rust documentation here:

`Rust Documentation (cargo doc) <rust/doc/pyspector_api/index.html>`_
Loading