Metadata-Version: 2.1
Name: invenio-theme-kth
Version: 1.2.5
Summary: invenio-theme-kth
Home-page: https://github.com/Samk13/invenio-theme-kth
Author: KTH Royal Institute of Technology
Author-email: info@kth.se
License: MIT
Keywords: invenio rdm config kth theme
Platform: any
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: tests
License-File: LICENSE

![GitHub](https://img.shields.io/github/license/front-matter/talbot?logo=MIT)

# invenio-theme-kth
This module provides templates overrides and modification to invenio default theme:
- Customization of templates and modifications to the Invenio default theme are provided by this module
- Adding terms of use check box to the registration process when using third-party authentication services such as ORCID before registration.

## Installation
```bash
pip install invenio-theme-kth
```

## Components
`views.py`: provides a Blueprint that registers both the static/ and templates/ folders to be usable by Invenio

`webpack.py`: registers the front-end assets (in the assets/ folder) to webpack

`config.py`: overrides several configuration items related to theming Invenio If new files is been added, first run:

## Maintainers
This section intended for you who want to further develop this module.

### Last Updated
> invenio RDM V11

### Maintaining
Keep the following files up to date with source:

[RDMDepositFormOverride.js](invenio_theme_kth/assets/semantic-ui/js/invenio_theme_kth/deposit/RDMDepositFormOverride.js) with
[Source RDMDepositForm.js](https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js)

[index.js](invenio_theme_kth/assets/semantic-ui/js/invenio_theme_kth/deposit/index.js) with [Source index.js](https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/index.js)

Update translations:
[Follow the steps here](.tx/config)

## Local setup
```bash
make install
# if you use pyenv
make install-pipenv
make test
```

while working on assets you can watch the assets with
```bash
invenio-cli assets watch
```
When you are done with your development
```bash
invenio-cli assets build
```

## Upload to pypi

```console
make package-create
make package-upload USER="" PASS=""
```

- `make package-create` command will:
1. remove old dist folder
2. auto increment package version
3. zip the package into dist dir
4. check if the package pass twin checks

> You can change version increment to major or minor by adding ARG:

- `make package-create ARG="-ma"` increment major version

- `make package-create ARG="-mi"` increment minor version

- `make package-create` increment patch version

- `make package-check` # verify if the package pass twine checks

- `make package-upload USER="" PASS=""` # will  and upload to pypi will prompt for username and pass

or manually:
twine upload -u <USERNAME> -p <PASSWORD> dist/* --verbose

<!--
#
# Copyright (C) 2022 KTH Royal Institute of Technology Sweden
#
# invenio-config-kth is free software, you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file details.
-->
Changes
=======

Version 1.0.0 (released 2022-12-01)
Version 1.1.0 Add terms of use checkbox for Registration form

