Skip to content

Commit eafc0ca

Browse files
committed
run sphinxs workflow on main
1 parent b540680 commit eafc0ca

File tree

2 files changed

+28
-21
lines changed

2 files changed

+28
-21
lines changed

.github/workflows/docs.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Build sphinx documentation
22

3-
on: workflow_dispatch
3+
on:
4+
push:
5+
paths:
6+
- 'docs/**'
7+
branches:
8+
- main
9+
workflow_dispatch:
410

511
jobs:
612
build:
@@ -32,4 +38,4 @@ jobs:
3238
if: github.ref == 'refs/heads/main'
3339
with:
3440
github_token: ${{ secrets.GITHUB_TOKEN }}
35-
publish_dir: docs/_build/html
41+
publish_dir: docs/_build/html

docs/conf.py

+20-19
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@
88

99
import os
1010
import sys
11+
1112
sys.path.insert(0, os.path.abspath("../localstack-sdk-python/localstack"))
1213

1314

1415
def _get_version() -> str:
15-
with open(os.path.abspath("../VERSION"), 'r') as f:
16+
with open(os.path.abspath("../VERSION"), "r") as f:
1617
version = f.read()
1718
return version
1819

1920

20-
project = 'LocalStack Python SDK'
21-
copyright = '2024, LocalStack Team'
22-
author = 'LocalStack Team'
21+
project = "LocalStack Python SDK"
22+
copyright = "2024, LocalStack Team"
23+
author = "LocalStack Team"
2324
release = _get_version()
2425

2526
# -- General configuration ---------------------------------------------------
@@ -28,31 +29,31 @@ def _get_version() -> str:
2829
# enable auto-doc extension
2930
extensions = ["sphinx.ext.autodoc"]
3031

31-
templates_path = ['_templates']
32-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
32+
templates_path = ["_templates"]
33+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
3334

3435

3536
# -- Options for HTML output -------------------------------------------------
3637
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
3738

38-
html_theme = 'alabaster'
39-
html_static_path = ['_static']
39+
html_theme = "alabaster"
40+
html_static_path = ["_static"]
4041

4142
html_sidebars = {
42-
'**': [
43-
'about.html',
44-
'searchfield.html',
45-
'navigation.html',
43+
"**": [
44+
"about.html",
45+
"searchfield.html",
46+
"navigation.html",
4647
]
4748
}
4849

4950
html_theme_options = {
50-
'extra_nav_links': {
51-
'Source': 'https://github.com/localstack/localstack-sdk-python',
52-
'Issues': 'https://github.com/localstack/localstack-sdk-python/issues',
53-
'PyPI': 'https://pypi.org/project/localstack-sdk-python/',
51+
"extra_nav_links": {
52+
"Source": "https://github.com/localstack/localstack-sdk-python",
53+
"Issues": "https://github.com/localstack/localstack-sdk-python/issues",
54+
"PyPI": "https://pypi.org/project/localstack-sdk-python/",
5455
},
55-
'description': 'Python SDK to interact with LocalStack developer endpoints',
56-
'github_user': 'localstack',
57-
'github_repo': 'localstack-sdk-python'
56+
"description": "Python SDK to interact with LocalStack developer endpoints",
57+
"github_user": "localstack",
58+
"github_repo": "localstack-sdk-python",
5859
}

0 commit comments

Comments
 (0)