Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/conventional-commits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: test
on:
push:
branches:
- "main"
- "feature/*"
- "hotfix/*"
- "release/*"
- "renovate/*"
pull_request:

jobs:
commit-message:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: conventional commits
uses: webiny/action-conventional-commits@v1.3.0
with:
allowed-commit-types: "build,chore,ci,docs,feat,fix,perf,refactor,style,test"
4 changes: 0 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: conventional commits
uses: webiny/action-conventional-commits@v1.3.0
with:
allowed-commit-types: "build,chore,ci,docs,feat,fix,perf,refactor,style,test"
- name: Setup Python
uses: actions/setup-python@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions canonical_sphinx/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,11 @@
if (
config.latex_elements == {}
): # pyright: ignore [reportUnnecessaryComparison] type: # ignore[comparison-overlap]

config.latex_elements = ast.literal_eval(config.latex_config)

html_context = config.html_context

disable_feedback_button = config.disable_feedback_button
if html_context.get("github_issues") and not disable_feedback_button:
html_js_files.append("github_issue_links.js")

values_and_defaults = [
("product_tag", "_static/tag.png"),
Expand All @@ -244,6 +241,9 @@
for value, default in values_and_defaults:
html_context.setdefault(value, default)

if html_context.get("github_issues") and not disable_feedback_button:
html_js_files.append("github_issue_links.js")

Check warning on line 245 in canonical_sphinx/config.py

View check run for this annotation

Codecov / codecov/patch

canonical_sphinx/config.py#L245

Added line #L245 was not covered by tests

html_context["has_contributor_listing"] = has_contributor_listing

config.html_js_files.extend(html_js_files)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "canonical-sphinx"
dynamic = ["version", "readme"]
dependencies = [
"Sphinx",
"Sphinx>=7.1.2",
"furo",
"myst-parser",
"linkify-it-py",
Expand Down
Loading