Skip to content

Commit 2452466

Browse files
committed
fix: fix security scan
1 parent 8964e25 commit 2452466

File tree

11 files changed

+27
-4
lines changed

11 files changed

+27
-4
lines changed

.readthedocs.yml renamed to .readthedocs.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.11"
6+
python: "3.10"
77

88
python:
99
install:
10+
- method: pip
11+
path: .
1012
- requirements: docs/requirements.txt
1113

1214
sphinx:

docs/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
sphinx
2-
myst-parser
1+
sphinx>=7.0

docs/source/_static/.gitkeep

Whitespace-only changes.

docs/source/_templates/.gitkeep

Whitespace-only changes.
File renamed without changes.
File renamed without changes.

docs/conf.py renamed to docs/source/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import sys
33

4-
sys.path.insert(0, os.path.abspath(".."))
4+
sys.path.insert(0, os.path.abspath("../.."))
55

66
project = "Min Ratio Cycle"
77
author = "Diogo Ribeiro"
@@ -13,7 +13,12 @@
1313
"sphinx.ext.viewcode",
1414
]
1515

16+
# Mock optional dependencies that are not installed in the documentation
17+
# build environment.
18+
autodoc_mock_imports = ["matplotlib", "networkx", "numpy", "psutil"]
19+
1620
templates_path = ["_templates"]
1721
exclude_patterns = []
1822

1923
html_theme = "alabaster"
24+
html_static_path = ["_static"]

docs/index.rst renamed to docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Welcome to Min Ratio Cycle's documentation!
55
:maxdepth: 2
66
:caption: Contents:
77

8+
installation
89
algorithm
910
usage
1011
user_guide

docs/source/installation.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Installation
2+
============
3+
4+
To install the package from source:
5+
6+
.. code-block:: bash
7+
8+
git clone https://github.com/DiogoRibeiro7/min_ratio_cycle
9+
cd min_ratio_cycle
10+
poetry install
11+
12+
Or install the latest release from PyPI:
13+
14+
.. code-block:: bash
15+
16+
pip install min-ratio-cycle
File renamed without changes.

0 commit comments

Comments
 (0)