Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Fix relative path generation for static files (#11)
Browse files Browse the repository at this point in the history
* Fix relative path generation for static files

There was a bug in the software related to relative path generation (when --dev-name flag is used). If the build command were run on already existing documentation folders, the '_static' substring in all paths of HTML documents would be repeatedly replaced with '../../_static'. Already the second consecutive run would make static paths look like '../../../../_static', effectively breaking all paths

* Update version information
  • Loading branch information
rbrazinskas authored Feb 21, 2023
1 parent 2c95a6d commit e32e601
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Changelog
Version 0.2
===========

Version 0.2.13 (2023-02-21)
--------------------------
* Fix static file path generation when one global copy of static files is used (with flag ``--dev-name``).

Version 0.2.12 (2023-02-08)
--------------------------
* Reduce docs size.
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

author = "Jan Holthuis"
project = "sphinx-multiversion"
release = "0.2.12"
release = "0.2.13"
version = "0.2"
copyright = "{}, {}".format(time.strftime("%Y"), author)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
author="Jan Holthuis",
author_email="[email protected]",
url="https://github.com/iqm-finland/sphinx-multiversion-contrib",
version="0.2.12",
version="0.2.13",
install_requires=["sphinx >= 2.1"],
license="BSD",
packages=["sphinx_multiversion"],
Expand Down
2 changes: 1 addition & 1 deletion sphinx_multiversion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from .sphinx import setup
from .main import main

__version__ = "0.2.9"
__version__ = "0.2.13"

__all__ = [
"setup",
Expand Down

0 comments on commit e32e601

Please sign in to comment.