Skip to content

Commit

Permalink
windows compatiblity (#76) [refer GitPython/issues/356]
Browse files Browse the repository at this point in the history
* windows compatibility

* changelog
  • Loading branch information
devanshshukla99 committed Jul 23, 2024
1 parent ae1c230 commit e1da0c9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ jobs:
- os: macos-latest
python-version: "3.10"
toxenv: py310
- os: windows-latest
python-version: "3.10"
toxenv: py310
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand Down
1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ sphinx-versioned-docs
+-------------------------+-----------------------+

Sphinx extension that allows building versioned docs for self-hosting.
Supported on Linux and macOS.

It works by producing docs for all(specified) branches in separate folders and injects a readthedocs-like version selector menu/badge.

Expand Down
1 change: 1 addition & 0 deletions docs/changes/76.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adds windows compatibility.
4 changes: 2 additions & 2 deletions tests/test_multicommit_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_file_content(ver, expected):

# Verify the contents of `example.html`, if expected
data = None
with open(OUTPATH / ver / file) as f:
with open(OUTPATH / ver / file, encoding="utf8") as f:
data = f.read()
for content in content_to_verify.split():
assert content in data
Expand All @@ -74,7 +74,7 @@ def test_injected_hyperlinks(ver, file):
assert (OUTPATH / ver / file).is_file()

data = None
with open(OUTPATH / ver / file) as f:
with open(OUTPATH / ver / file, encoding="utf8") as f:
data = f.read()
soup = bs(data, features="html.parser")
injected_code = soup.find_all(class_="injected")
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ commands =

# test a multi-commit repository with `sphinx_rtd_theme` and injection tests
[testenv]
# Windows compatibility GitPython/issues/356
passenv = USERNAME
changedir = .tmp/{envname}
description = build `sphinx_rtd_theme` with prebuild for a multi-commit git-repo
extras = tests
Expand Down

0 comments on commit e1da0c9

Please sign in to comment.