Skip to content

Commit

Permalink
deploy: 722e3c2
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Mar 27, 2024
1 parent 6924c85 commit 7b6e86c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
from watchdog.observers import Observer
from watchdog.observers.api import BaseObserver

from dipdup import __version__
from dipdup.cli import green_echo
from dipdup.cli import red_echo
from dipdup.config import DipDupConfig
Expand All @@ -48,6 +49,7 @@
from dipdup.project import get_default_answers
from dipdup.sys import set_up_logging

_version = __version__.split('+')[0]
_logger = logging.getLogger()
_logger.setLevel(logging.INFO)
_process: subprocess.Popen[Any] | None = None
Expand Down Expand Up @@ -596,9 +598,12 @@ def dump_demos() -> None:

lines = [
'<!-- markdownlint-disable first-line-h1 -->',
'| name | network | description |',
'|-|-|-|',
*(f'| {name} | {network} | {description} |' for name, network, description in demos),
'| name | network | description | source |',
'|-|-|-|-|',
*(
f'| {name} | {network} | {description} | [link](https://github.com/dipdup-io/dipdup/tree/{_version}/src/{name}) |'
for name, network, description in demos
),
'',
]

Expand Down

0 comments on commit 7b6e86c

Please sign in to comment.