Skip to content

Commit

Permalink
Merge pull request #6 from rheinwerk-verlag/feature/publish_action
Browse files Browse the repository at this point in the history
Added a publish action
  • Loading branch information
W1ldPo1nter authored Sep 15, 2021
2 parents 23019a0 + 4e32eb6 commit a7a6c03
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ Features

Screenshots
-----------
.. figure:: docs/static/ui_overview.png
.. figure:: https://raw.githubusercontent.com/rheinwerk-verlag/planning-poker/main/docs/static/ui_overview.png
:width: 100%
:alt: You can see all the necessary information on a single page

You can see all the necessary information on a single page

.. figure:: docs/static/participants_overview.gif
.. figure:: https://raw.githubusercontent.com/rheinwerk-verlag/planning-poker/main/docs/static/participants_overview.gif
:width: 100%
:alt: Live updated list of participants

Live updated list of participants

.. figure:: docs/static/dark_mode.png
.. figure:: https://raw.githubusercontent.com/rheinwerk-verlag/planning-poker/main/docs/static/dark_mode.png
:width: 100%
:alt: Natively supported dark mode

Expand Down
14 changes: 8 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,18 +306,20 @@


class RepoImagePathTransform(SphinxTransform):
"""Remove the leading 'docs/' directory where possible from all image URIs.
The relative paths of the images in the 'README.rst' all start with the 'docs' directory in order to show them
on the repository overview page. Since the same readme file should also be used inside the docs, the directory has
to be removed from the paths when building the docs.
"""Remove the leading GitHub repo prefix where possible from all image URIs.
The URIs of the images in the 'README.rst' all start with the prefix of the GitHub repo in order to show them on the
repository overview page and on PyPI. Since the same readme file should also be used inside the docs, the prefix
has to be removed from the paths when building the docs.
"""
default_priority = 409
github_repo_prefix = 'https://raw.githubusercontent.com/rheinwerk-verlag/planning-poker/main/docs/'

def apply(self, **kwargs):
github_repo_prefix_length = len(self.github_repo_prefix)
for node in self.document.traverse(nodes.image):
uri = node.attributes['uri']
if uri.startswith('docs/'):
node.attributes['uri'] = uri[5:]
if uri.startswith(self.github_repo_prefix):
node.attributes['uri'] = uri[github_repo_prefix_length:]


def setup(app):
Expand Down
2 changes: 1 addition & 1 deletion planning_poker/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.1' # pragma: no cover
__version__ = '1.0.0' # pragma: no cover
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from wheel.bdist_wheel import bdist_wheel


def read(*args):
return open(join(dirname(__file__), *args)).read()
def read(*args, **kwargs):
return open(join(dirname(__file__), *args), **kwargs).read()


class ToxTestCommand(distutils.cmd.Command):
Expand Down Expand Up @@ -105,7 +105,7 @@ def command_factory(name, base_class):
name='planning-poker',
version=__version__, # noqa
description='A Django app which allows teams to perform a remote planning poker session',
long_description=read('README.rst'),
long_description=read('README.rst', encoding='utf-8'),
author='Rheinwerk Webteam',
author_email='webteam@rheinwerk-verlag.de',
maintainer='Rheinwerk Verlag GmbH Webteam',
Expand Down

0 comments on commit a7a6c03

Please sign in to comment.