Skip to content

Commit 248b439

Browse files
committed
Fix Sphinx documentation build with markdown support and remove warnings-as-errors
1 parent 9c6d041 commit 248b439

4 files changed

Lines changed: 20 additions & 21 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Build documentation
2727
run: |
2828
cd docs
29-
sphinx-build -W -b html -d _build/doctrees . _build/html
29+
sphinx-build -b html -d _build/doctrees . _build/html
3030
3131
- name: Upload documentation
3232
uses: actions/upload-artifact@v4

docs/conf.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
11
import os
22
import sys
3+
from typing import List
34

45
sys.path.insert(0, os.path.abspath(".."))
56

67
project = "Steadfast Courier Python SDK"
7-
copyright = "2026, Md Mojno Miya"
8+
copyright = "2024, Md Mojno Miya"
89
author = "Md Mojno Miya"
9-
release = "0.1.0"
10+
release = "0.2.0"
1011

1112
extensions = [
1213
"sphinx.ext.autodoc",
1314
"sphinx.ext.viewcode",
1415
"sphinx.ext.napoleon",
16+
"myst_parser",
1517
"sphinx_rtd_theme",
1618
]
1719

1820
templates_path = ["_templates"]
1921
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
2022

2123
html_theme = "sphinx_rtd_theme"
22-
html_static_path = ["_static"]
24+
html_static_path: List[str] = []
2325

2426
autodoc_member_order = "bysource"
2527
autodoc_typehints = "description"
28+
29+
source_suffix = {
30+
".rst": None,
31+
".md": "markdown",
32+
}

docs/index.rst

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,18 @@ A Python SDK for the Steadfast Courier API that provides easy-to-use interfaces
77
:maxdepth: 2
88
:caption: Getting Started
99

10-
installation
11-
authentication
12-
Quick Start <STEADFAST_QUICK_START>
10+
Installation <installation>
11+
Authentication <authentication>
1312

1413
.. toctree::
1514
:maxdepth: 2
1615
:caption: User Guide
1716

18-
order_management
19-
order_tracking
20-
balance_management
21-
return_requests
22-
payments
17+
Order Management <order_management>
18+
Order Tracking <order_tracking>
19+
Balance Management <balance_management>
20+
Return Requests <return_requests>
21+
Payments <payments>
2322

2423
.. toctree::
2524
:maxdepth: 2
@@ -31,17 +30,9 @@ A Python SDK for the Steadfast Courier API that provides easy-to-use interfaces
3130
:maxdepth: 2
3231
:caption: Advanced
3332

34-
error_handling
33+
Error Handling <error_handling>
3534
Development Guide <steadfast_dev_guide>
3635

37-
.. toctree::
38-
:maxdepth: 1
39-
:caption: Additional
40-
41-
Contributing <../CONTRIBUTING>
42-
Code of Conduct <../CODE_OF_CONDUCT>
43-
Changelog <../CHANGELOG>
44-
4536
Indices and tables
4637
==================
4738

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ types-requests>=2.28.0
99
pre-commit>=3.0
1010
sphinx>=5.0
1111
sphinx-rtd-theme>=1.0
12+
myst-parser>=0.18.0

0 commit comments

Comments
 (0)