Skip to content

Commit 8d08b09

Browse files
Fix ci (#3)
* fix: fix lint * fix: fix lint * fix: fix lint * fix: fix lint * fix: fix security scan * fix: fix security scan * fix: fix security scan * fix: fix security scan
1 parent d10b324 commit 8d08b09

File tree

11 files changed

+39
-3
lines changed

11 files changed

+39
-3
lines changed

.readthedocs.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.10"
7+
8+
python:
9+
install:
10+
- method: pip
11+
path: .
12+
- requirements: docs/requirements.txt
13+
14+
sphinx:
15+
configuration: docs/source/conf.py

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)