Skip to content

Commit

Permalink
Merge pull request #505 from 12rambau/master
Browse files Browse the repository at this point in the history
bump: version 2.9.0 → 2.9.2 🚀
  • Loading branch information
12rambau authored Jun 9, 2022
2 parents 089b982 + 286e428 commit 0a6194e
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .cz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ commitizen:
changelog_incremental: true
tag_format: v_$major.$minor.$patch$prerelease
update_changelog_on_bump: true
version: 2.9.0
version: 2.9.2
version_files:
- setup.py:version
- sepal_ui/__init__.py:__version__
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel twine build
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
python -m sdist bdist_wheel
twine upload dist/*
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## v_2.9.2 (2022-06-09)

### Fix

- build the wheel

## v_2.9.1 (2022-06-09)

### Fix

- allow the build off the wheel

## v_2.9.0 (2022-06-09)

### Feat
Expand Down
28 changes: 20 additions & 8 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
/*******************************************************************************
* add padding to the jupyter-sphinx widgets
*/
div.jupyter_container.docutils {
padding: .4em;
}

/*********************************************************************************
/*******************************************************************************
* make the footer inlined
*
**/
*/
.footer-item {
display: inline-block;
}
Expand All @@ -16,11 +18,21 @@ div.jupyter_container.docutils {
}

/*******************************************************************************
* overwrite image filter in dark theme
* most of our images are from SEPAL which is already using a dark theme
* there is no need for extra contrast and dimned brightness
*
*/
* overwrite image filter in dark theme
* most of our images are from SEPAL which is already using a dark theme
* there is no need for extra contrast and dimned brightness
*/
html[data-theme=dark] img {
filter: brightness(1) contrast(1);
}

/*******************************************************************************
* Customize the colors of the website
*/
html[data-theme=light] {
--pst-color-primary: #196692;
}

html[data-theme=dark] {
--pst-color-primary: #196692;
}
12 changes: 5 additions & 7 deletions docs/source/_static/css/icon.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
i.fa-github:hover {
color: #333;
}

i.fa-python:hover {
color: #306998;
}
/*******************************************************************************
* color the icon in the header navbar
*/
i.fa-github:hover {color: #333;}
i.fa-python:hover {color: #306998;}
12 changes: 12 additions & 0 deletions docs/source/_static/switcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"name": "dev",
"version": "latest",
"url": "https://sepal-ui.readthedocs.io/en/latest/"
},
{
"name": "2.9.0 (stable)",
"version": "v_2.9.0",
"url": "https://sepal-ui.readthedocs.io/en/v_2.9.0"
}
]
25 changes: 19 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Path setup --------------------------------------------------------------
# -- Path setup ----------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand All @@ -28,7 +28,7 @@
DOC_DIR = Path(__file__).parent


# -- Project information -----------------------------------------------------
# -- Project information -------------------------------------------------------

# General information about the project.
project = "sepal-ui"
Expand All @@ -39,7 +39,7 @@
release = __version__


# -- General configuration ---------------------------------------------------
# -- General configuration -----------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand Down Expand Up @@ -69,7 +69,7 @@
# to be able to read RST files
source_suffix = [".rst", ".md"]

# -- Load the images from the master sepal-doc -------------------------------
# -- Load the images from the master sepal-doc ---------------------------------
urlretrieve(
"https://raw.githubusercontent.com/openforis/sepal-doc/master/docs/source/_images/sepal.png",
"_image/dwn/sepal.png",
Expand All @@ -84,7 +84,18 @@
)


# -- Options for HTML output -------------------------------------------------
# -- Options for HTML output ---------------------------------------------------

# Define the version we use for matching in the version switcher.
json_url = "https://sepal-ui.readthedocs.io/en/latest/_static/switcher.json"
version_match = os.environ.get("READTHEDOCS_VERSION")
# If READTHEDOCS_VERSION doesn't exist, we're not on RTD
# If it is an integer, we're in a PR build and the version isn't correct.
if not version_match or version_match.isdigit():
# For local development, infer the version to latest
release = "dev"
version_match = "latest"
json_url = "/_static/switcher.json"

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
Expand All @@ -94,7 +105,10 @@
html_favicon = "_image/dwn/favicon.ico"
html_last_updated_fmt = ""
html_theme_options = {
"use_edit_page_button": True,
"show_prev_next": False,
"switcher": {"json_url": json_url, "version": version_match},
"navbar_start": ["navbar-logo", "version-switcher"],
"icon_links": [
{
"name": "GitHub",
Expand All @@ -107,7 +121,6 @@
"icon": "fab fa-python",
},
],
"use_edit_page_button": True,
}
html_context = {
"github_user": "12rambau",
Expand Down
2 changes: 1 addition & 1 deletion sepal_ui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

__author__ = """Pierrick Rambaud"""
__email__ = "pierrick.rambaud49@gmail.com"
__version__ = "2.9.0"
__version__ = "2.9.2"
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools.command.develop import develop
from subprocess import check_call

version = "2.9.0"
version = "2.9.2"

DESCRIPTION = "Wrapper for ipyvuetify widgets to unify the display of voila dashboards in SEPAL platform"
LONG_DESCRIPTION = open("README.rst").read()
Expand Down Expand Up @@ -62,7 +62,7 @@ def run(self):
],
"doc": [
"jupyter-sphinx @ git+https://github.com/jupyter/jupyter-sphinx.git",
"pydata-sphinx-theme @ git+https://github.com/pydata/pydata-sphinx-theme.git",
"pydata-sphinx-theme==0.9.0",
"sphinx-notfound-page",
"Sphinx",
"sphinxcontrib-spelling",
Expand Down

0 comments on commit 0a6194e

Please sign in to comment.