Skip to content

Commit

Permalink
BUMP: version 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgepiloto committed Dec 6, 2022
1 parent 9ab6f3f commit 2830805
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 17 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repos:
rev: 5.10.1
hooks:
- id: isort
args: ["--profile", "black"]

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.6
1.0.8
18 changes: 4 additions & 14 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
"""Sphinx documentation configuration file."""

import os
import pathlib

import yaml
from ansys_sphinx_theme import ansys_favicon, ansys_logo_black
from ansys_sphinx_theme import ansys_favicon, ansys_logo_black, get_version_match
from tabulate import tabulate as Table

# Project information
project = "PyAnsys Actions"
copyright = "(c) 2022 ANSYS, Inc. All rights reserved"
author = "ANSYS, Inc."
cname = os.getenv("DOCUMENTATION_CNAME", "nocname.com")

# Read version from VERSION file in base root directory
source_dir = pathlib.Path(__file__).parent.resolve().absolute()
version_file = source_dir / "../../VERSION"
with open(str(version_file), "r") as file:
__version__ = file.read().splitlines()[0]
release = version = __version__


def get_version_match(semver):
"""Evaluate the version match for the multi-documentation."""
if semver.endswith("dev0"):
return "dev"
major, minor, _ = semver.split(".")
return ".".join([major, minor])


# Use the default pyansys logo
Expand All @@ -33,14 +26,11 @@ def get_version_match(semver):
html_favicon = ansys_favicon

# Specify the location of your GitHub repo
version_mapper = (
"https://raw.githubusercontent.com/pyansys/actions/gh-pages/release/versions.json"
)
html_theme_options = {
"github_url": "https://github.com/pyansys/actions",
"show_prev_next": False,
"switcher": {
"json_url": version_mapper,
"json_url": f"https://{cname}/release/versions.json",
"version_match": get_version_match(__version__),
},
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements_doc.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ansys-sphinx-theme==0.7.0
ansys-sphinx-theme==0.7.4
pyyaml==6.0.0
Sphinx==5.3.0
sphinx-copybutton==0.5
Expand Down
2 changes: 1 addition & 1 deletion tests/pyansys-actions/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
[project]
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
name = "ansys-actions-core"
version = "1.0.2"
version = "1.0.8"
description = "A demo library for testing pyansys actions"
readme = "README.rst"
requires-python = ">=3.7"
Expand Down

0 comments on commit 2830805

Please sign in to comment.