Skip to content

Commit 7d60524

Browse files
committed
add dark logo, doc fixes
1 parent 73099b5 commit 7d60524

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/logo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
python create_sugar_logo.py sugar_logo.png
2929
python create_sugar_logo.py sugar_logo_transparent.png --transparent
30-
python create_sugar_logo.py sugar_logo_dark.png --transparent --color1 0.9 --color2 0.5
30+
python create_sugar_logo.py sugar_logo_dark.png --transparent --color1 0.8 --color2 0.5
3131
- name: commit logo
3232
run: |
3333
git config --global user.name 'trichter'

docs/conf.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ def parse_version():
3535
# return sorted(modules)
3636

3737

38-
def download_logo():
38+
def download_logo(modifier=''):
3939
from pathlib import Path
4040
import urllib.request
41-
logo = Path(__file__).parent / '_static/sugar_logo.png'
42-
url = 'https://raw.githubusercontent.com/rnajena/sugar/logo/sugar_logo.png'
41+
logo = Path(__file__).parent / f'_static/sugar_logo{modifier}.png'
42+
url = f'https://raw.githubusercontent.com/rnajena/sugar/logo/sugar_logo{modifier}.png'
4343
urllib.request.urlretrieve(url, logo)
4444
return logo.name
4545

@@ -76,6 +76,7 @@ def write_table(what):
7676
.. _biopython: https://biopython.org
7777
.. _biotite: https://www.biotite-python.org
7878
.. _DNAFeaturesViewer: https://edinburgh-genome-foundry.github.io/DnaFeaturesViewer
79+
.. _Clustal: https://en.wikipedia.org/wiki/Clustal
7980
"""
8081

8182
extensions = ['sphinx.ext.autodoc',
@@ -103,9 +104,11 @@ def write_table(what):
103104
html_theme = 'furo'
104105
html_static_path = ['_static']
105106
html_title = f'S*R for your RNA <br>v{release} docs'
106-
html_logo = '_static/' + download_logo()
107+
#html_logo = '_static/' + download_logo()
107108
html_show_sphinx = True
108109
html_theme_options = {
110+
'light_logo': download_logo(),
111+
'dark_logo': download_logo('_dark'),
109112
'footer_icons' : [],
110113
"source_edit_link": "https://github.com/rnajena/sugar/edit/master/docs/{filename}",
111114
#"source_view_link": "_sources/src/{filename}.txt",

src/sugar/_io/clustal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# (C) 2024, Tom Eulenfeld, MIT license
22
"""
3-
`Clustal`_ reader
3+
`Clustal`_ IO
44
"""
55
from warnings import warn
66
from sugar import BioBasket, BioSeq, __version__

src/sugar/core/cane.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ def find_orfs(seq, rf='all', start='start', stop='stop', need_start='always', ne
381381
You can attach these features to sequences using `.BioSeq.add_fts()` or `.BioBasket.add_fts()`.
382382
Use the `.BioSeq.fts` and `.BioBasket.fts` properties to overwrite features with the found ORFs.
383383
384-
..note::
385-
Python's `python:re.matchall()` is used internally to find start and stop codons.
384+
.. note::
385+
Python's :func:`python:re.finditer` is used internally to find start and stop codons.
386386
The limitations of this function apply; for example, matches cannot overlap.
387387
Care must be taken in special cases.
388388
For instance, if ORFs do not need to start with a start codon,

0 commit comments

Comments
 (0)