Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:

- name: Generate Doxygen XML
working-directory: docs
run: doxygen Doxyfile
run: mkdir -p _doxygen/xml && doxygen Doxyfile

- name: Build Sphinx site
working-directory: docs
run: sphinx-build -b html . _site -W --keep-going
run: sphinx-build -b html . _site --keep-going
env:
SPHINXOPTS: "-j auto"

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ rules.ninja
ALL_BUILD*
ZERO_CHECK*
INSTALL*
!docs/installation.md

# Per-target/build subdirectories generated by CMake/VS
*.dir/
Expand Down
3 changes: 1 addition & 2 deletions docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ OUTPUT_DIRECTORY = .
#---------------------------------------------------------------------------
# Input
#---------------------------------------------------------------------------
INPUT = ../cpp/rcspp ../python/bindings
INPUT = ../cpp/rcspp
RECURSIVE = YES
FILE_PATTERNS = *.hpp *.cpp *.h
EXCLUDE_PATTERNS = */test* *_test.* */extern/*
Expand Down Expand Up @@ -50,7 +50,6 @@ XML_PROGRAMLISTING = NO
# Diagrams (disabled — no graphviz required on CI)
#---------------------------------------------------------------------------
HAVE_DOT = NO
CLASS_DIAGRAMS = NO

#---------------------------------------------------------------------------
# Misc
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/column-generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,6 @@ rg.add_rows_to_arc(arc_id, [(constraint_idx, coeff)])
rg.add_rows(np.array([
[arc_id_0, constraint_0, coeff_0],
[arc_id_1, constraint_1, coeff_1],
# ...
]))
```
3 changes: 1 addition & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# ---------------------------------------------------------------------------
# The compiled C extension is not available at doc-build time; mock it so
# imports of rcspp.graph, rcspp.resource etc. succeed.
autodoc_mock_imports = ["rcspp._core"]
autodoc_mock_imports = ["rcspp._core", "networkx", "numpy"]
autodoc_default_options = {
"members": True,
"undoc-members": False,
Expand Down Expand Up @@ -115,7 +115,6 @@
"_site",
"Thumbs.db",
".DS_Store",
"cpp/api", # Exhale-generated — excluded from source list, not toctree
"Gemfile*",
"_config.yml",
]
Expand Down
4 changes: 1 addition & 3 deletions docs/cpp/advanced_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,5 @@ deep-copied when the graph is duplicated across threads.
:undoc-members:
```

```{doxygenclass} rcspp::ResourceType
:members:
:undoc-members:
```{doxygenconcept} rcspp::ResourceTypeConcept
```
7 changes: 1 addition & 6 deletions docs/cpp/beginner_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ labels carry a composition of resource types.
:undoc-members:
```

```{doxygenstruct} rcspp::BucketAlgorithmParams
:members:
:undoc-members:
```

```{doxygenstruct} rcspp::SolveResult
:members:
:undoc-members:
Expand Down Expand Up @@ -117,7 +112,7 @@ labels carry a composition of resource types.
:undoc-members:
```

```{doxygenclass} rcspp::NGPathExtensionFunction
```{doxygenclass} rcspp::NgPathExtensionFunction
:members:
:undoc-members:
```
Expand Down
57 changes: 57 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
title: Installation
---

# Installation

## Python (recommended)

```bash
pip install rcspp
```

This installs pre-built wheels for Linux, macOS, and Windows (Python 3.11+).

## C++ library

### Prerequisites

- **CMake ≥ 3.26**
- **C++23 compiler** — Clang 21+ or GCC 13+

### Build from source

```bash
git clone --recursive https://github.com/lab-core/rcspp.git
cd rcspp
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
```

To also build the Python bindings:

```bash
cmake -B build -DCMAKE_BUILD_TYPE=Release -DRCSPP_BUILD_PYTHON=ON
cmake --build build
pip install python/
```

### Include in your CMake project

```cmake
find_package(rcspp REQUIRED)
target_link_libraries(my_target PRIVATE rcspp::rcspp)
```

Or via FetchContent:

```cmake
include(FetchContent)
FetchContent_Declare(
rcspp
GIT_REPOSITORY https://github.com/lab-core/rcspp.git
GIT_TAG main
)
FetchContent_MakeAvailable(rcspp)
target_link_libraries(my_target PRIVATE rcspp::rcspp)
```
Loading