Skip to content

Commit 63eea6f

Browse files
committed
Merge branch 'release/1.0.0.3'
2 parents 3c15bdb + 338b58a commit 63eea6f

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
poetry-version: 1.7.1
2525
- name: Set up poetry-dynamic-versioning
2626
run: |
27-
poetry self add "poetry-dynamic-versioning[plugin]"
27+
poetry self add "poetry-dynamic-versioning[plugin]"
2828
- name: Install dependencies
2929
run: |
3030
poetry install

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $ pipx install pandoc-beamer-block
4242
To upgrade to the most recent release, use
4343

4444
~~~shell
45-
$ pipx install --upgrade pandoc-beamer-block
45+
$ pipx upgrade pandoc-beamer-block
4646
~~~
4747

4848
`pipx` is a script to install and run python applications in isolated environments from the Python Package Index, [PyPI]. It can be installed using instructions given [here](https://pipx.pypa.io/stable/).

docs/conf.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,25 @@
1616
# import sys
1717
# sys.path.insert(0, os.path.abspath('.'))
1818

19+
import importlib.metadata
1920
import os
2021
import sys
2122

23+
from datetime import date
24+
2225
sys.path.insert(0, os.path.abspath("../.."))
2326

2427
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
2528

2629
# -- Project information -----------------------------------------------------
2730

28-
project = "pandoc-beamer-block"
29-
copyright = "2018-2023, Christophe Demko"
30-
author = "Christophe Demko"
31+
project, release = os.popen("poetry version").readline().strip().split(" ")
32+
author = importlib.metadata.metadata(project)["Author"]
33+
year = date.today().year
34+
copyright = f"2018-{year}, {author}"
3135

3236
# The short X.Y version
33-
version = "1.0"
34-
# The full version, including alpha/beta/rc tags
35-
release = "1.0.0.0"
36-
37+
version = ".".join(release.split(".")[:2])
3738

3839
# -- General configuration ---------------------------------------------------
3940

@@ -85,11 +86,8 @@
8586
# The theme to use for HTML and HTML Help pages. See the documentation for
8687
# a list of builtin themes.
8788
#
88-
if not on_rtd: # only import and set the theme if we're building docs locally
89-
import sphinx_rtd_theme
9089

91-
html_theme = "sphinx_rtd_theme"
92-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
90+
html_theme = "sphinx_rtd_theme"
9391

9492
# Theme options are theme-specific and customize the look and feel of a theme
9593
# further. For a list of options available for each theme, see the

docs/requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)