mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-23 21:21:57 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02e9b3f90c | ||
|
|
9320fe3d5d | ||
|
|
d38e50a489 | ||
|
|
f1fc4d8b9e | ||
|
|
b286b9adaa | ||
|
|
19fada5940 | ||
|
|
7cb3b5a83b | ||
|
|
936c085f05 |
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@@ -31,10 +31,10 @@ jobs:
|
||||
python-version: [3.8, 3.9]
|
||||
requirements-level: [pypi]
|
||||
db-service: [postgresql13]
|
||||
search-service: [elasticsearch7]
|
||||
search-service: [opensearch2]
|
||||
include:
|
||||
- search-service: elasticsearch7
|
||||
SEARCH_EXTRAS: "elasticsearch7"
|
||||
- search-service: opensearch2
|
||||
SEARCH_EXTRAS: "opensearch2"
|
||||
|
||||
env:
|
||||
DB: ${{ matrix.db-service }}
|
||||
|
||||
21
CHANGES.rst
21
CHANGES.rst
@@ -8,6 +8,27 @@
|
||||
Changes
|
||||
=======
|
||||
|
||||
Version v4.11.0 (release 2023-04-20)
|
||||
|
||||
- global: make dependencies compatible with v11
|
||||
|
||||
|
||||
Version v4.10.1 (release 2022-11-10)
|
||||
|
||||
- dep: bump in invenio-assets
|
||||
|
||||
|
||||
Version v4.10.0 (release 2022-10-13)
|
||||
|
||||
- global: migrate to v10 (#282)
|
||||
|
||||
Version v4.0.2 (release 2022-09-09)
|
||||
|
||||
- release v4.0.1
|
||||
- update translation
|
||||
- improve wording on search options
|
||||
|
||||
|
||||
Version v4.0.1 (release 2022-08-05)
|
||||
|
||||
- update translation
|
||||
|
||||
@@ -62,7 +62,7 @@ release = __version__
|
||||
#
|
||||
# This is also used if you do content translation via gettext catalogs.
|
||||
# Usually you set "language" from the command line for these cases.
|
||||
language = None
|
||||
language = "en"
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
|
||||
from .ext import InvenioThemeTugraz
|
||||
|
||||
__version__ = "4.0.1"
|
||||
__version__ = "4.11.0"
|
||||
|
||||
__all__ = ("__version__", "InvenioThemeTugraz")
|
||||
|
||||
@@ -255,3 +255,10 @@ span.home-inline{
|
||||
border: solid @notificationBorder 1px;
|
||||
z-index: 100000;
|
||||
}
|
||||
|
||||
#skip-to-main {
|
||||
background-color: @primaryButton;
|
||||
&:focus {
|
||||
background-color: @primaryButtonInverted;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
@primaryLinkHoverBackground : @primaryText;
|
||||
@primaryButton : @primaryBackground;
|
||||
@primaryButtonHoverBackground : @primaryText;
|
||||
@primaryButtonInverted : #000f;
|
||||
@primaryButtonInverted : @primaryText;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
|
||||
"""Frontpage records."""
|
||||
|
||||
from elasticsearch_dsl.query import Q
|
||||
from invenio_search.api import RecordsSearch
|
||||
from invenio_search.engine import dsl
|
||||
|
||||
|
||||
class FrontpageRecordsSearch(RecordsSearch):
|
||||
@@ -19,7 +19,7 @@ class FrontpageRecordsSearch(RecordsSearch):
|
||||
"""Default index and filter for frontpage search."""
|
||||
|
||||
index = "rdmrecords-records"
|
||||
default_filter = Q(
|
||||
default_filter = dsl.Q(
|
||||
"query_string",
|
||||
query=("access.record:public " "AND versions.is_latest:true"),
|
||||
)
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
|
||||
from typing import Dict
|
||||
|
||||
from elasticsearch_dsl.utils import AttrDict
|
||||
from flask import Blueprint, render_template
|
||||
from invenio_rdm_records.resources.serializers import UIJSONSerializer
|
||||
from opensearch_dsl.utils import AttrDict
|
||||
|
||||
from .search import FrontpageRecordsSearch
|
||||
|
||||
|
||||
23
setup.cfg
23
setup.cfg
@@ -36,20 +36,19 @@ packages = find:
|
||||
python_requires = >=3.8
|
||||
zip_safe = False
|
||||
install_requires =
|
||||
Flask-BabelEx>=0.9.4
|
||||
Flask-WebpackExt>=1.0.0
|
||||
invenio-assets>=1.2.7,<1.3.0
|
||||
flask-babel>=2,<3
|
||||
invenio-assets>=2.0.0,<3.0.0
|
||||
invenio-i18n>=1.3.1,<1.4.0
|
||||
invenio_config_tugraz>=0.9.0,<0.10.0
|
||||
invenio_config_tugraz>=0.10.0,<0.11.0
|
||||
|
||||
[options.extras_require]
|
||||
tests =
|
||||
pytest-black>=0.3.0,<0.3.10
|
||||
sphinx>=4.2.0,<5
|
||||
pytest-invenio>=1.4.7
|
||||
invenio-app>=1.3.0,<2.0.0
|
||||
elasticsearch7 =
|
||||
invenio-search[elasticsearch7]>=1.4.2,<2.0
|
||||
pytest-black>=0.3.0
|
||||
Sphinx>=4.5.0
|
||||
pytest-invenio>=2.1.0,<3.0.0
|
||||
invenio-app>=1.3.4,<1.4.0
|
||||
opensearch2 =
|
||||
invenio-search[opensearch2]>=2.1.0,<3.0.0
|
||||
|
||||
[options.entry_points]
|
||||
invenio_base.apps =
|
||||
@@ -98,6 +97,10 @@ output-dir = invenio_theme_tugraz/translations/
|
||||
[isort]
|
||||
profile=black
|
||||
|
||||
[check-manifest]
|
||||
ignore =
|
||||
*-requirements.txt
|
||||
|
||||
[tool:pytest]
|
||||
addopts = --black --isort --pydocstyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_theme_tugraz --cov-report=term-missing tests invenio_theme_tugraz
|
||||
testpaths = tests invenio_theme_tugraz
|
||||
|
||||
Reference in New Issue
Block a user