Skip to content

Commit 908e6d1

Browse files
Fix docs build and sort imports (#54)
1 parent 74b4021 commit 908e6d1

21 files changed

+76
-17
lines changed

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ sphinx-rtd-theme
44
sphinx-autodoc-typehints
55
sphinx-copybutton
66
sphinx-design
7+
linkify-it-py>=2.0

docs/source/algorithms.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
orphan: true
3+
---
4+
15
# Algorithm Overview
26

37
This page provides a short description of each model implemented in **gen_surv**. For mathematical details see {doc}`theory`.

docs/source/api/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
orphan: true
3+
---
4+
15
# API Reference
26

37
Complete documentation for all gen_surv functions and classes.

docs/source/bibliography.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
orphan: true
3+
---
4+
15
# References
26

37
Below is a selection of references covering the statistical models implemented in **gen_surv**.

docs/source/changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
---
2+
orphan: true
3+
---
4+
15
# Changelog
26

37
```{include} ../../CHANGELOG.md
4-
:relative: true
8+
:relative-docs: true
59
```

docs/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
'pandas': ('https://pandas.pydata.org/docs/', None),
6565
}
6666

67+
# Disable fetching remote inventories when network access is unavailable
68+
if os.environ.get("SKIP_INTERSPHINX", "1") == "1":
69+
intersphinx_mapping = {}
70+
6771
# HTML theme options
6872
html_theme = 'sphinx_rtd_theme'
6973
html_theme_options = {

docs/source/contributing.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
---
2+
orphan: true
3+
---
4+
15
# Contributing
26

37
```{include} ../../CONTRIBUTING.md
4-
:relative: true
8+
:relative-docs: true
59
```

docs/source/examples/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
orphan: true
3+
---
4+
15
# Examples
26

37
Real-world examples and use cases for gen_surv.

docs/source/getting_started.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
orphan: true
3+
---
4+
15
# Getting Started
26

37
This guide will help you install gen_surv and generate your first survival dataset.

docs/source/modules.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
orphan: true
3+
---
4+
15
# API Reference
26

37
::: gen_surv.cphm

0 commit comments

Comments
 (0)