Skip to content

Commit e938984

Browse files
authored
Add Social Cards Plugin and Minor Fiexes (#6)
1 parent 0b9b5c7 commit e938984

7 files changed

Lines changed: 29 additions & 8 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
run: |
2222
git config user.name github-actions[bot]
2323
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
24-
- uses: actions/setup-python@v4
24+
- uses: actions/setup-python@v5
2525
with:
26-
python-version: "3.10"
26+
python-version: "3.11"
2727
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
2828
- uses: actions/cache@v3
2929
with:

.github/workflows/publish-to-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Set up Python
18-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: "3.x"
2121

docs/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2+
title: Welcome to PyORlib
23
hide:
34
- navigation
45
---
56

67
<style>
7-
.md-content .md-content__inner.md-typeset h1 { height: 0; margin: 0; color: transparent; }
8+
.md-content .md-content__inner.md-typeset h1 { height: 0; margin: 0; color: transparent; display: none; }
89
.md-content .md-content__inner.md-typeset::before { height: 0; }
910
</style>
1011

docs/release-notes.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ hide:
1212

1313
[//]: # (--------------------------------------------------------------------------------------------------------------)
1414

15+
## [v0.1.2](https://github.com/dapensoft/pyorlib/releases/tag/0.1.2) <small>April 9, 2024</small> { id="0.1.2" }
16+
17+
<hr class="divider">
18+
19+
##### Changed
20+
21+
- Upgraded the `Setup-Python` GitHub Action from version 4 to version 5 in all workflows.
22+
- Updated the `index.md` page with a welcome title.
23+
- Updated the `mkdocs.yml` config file with the `mkdocs social cards` plugin.
24+
- Updated the `pyproject.toml` config file with the necessary dependencies for the `mkdocs social cards` plugin.
25+
26+
##### Fixed
27+
28+
- Resolved the `mathjax.js` config file path error in the documentation.
29+
30+
[//]: # (--------------------------------------------------------------------------------------------------------------)
31+
1532
## [v0.1.1](https://github.com/dapensoft/pyorlib/releases/tag/0.1.1) <small>March 2, 2024</small> { id="0.1.1" }
1633

1734
<hr class="divider">

mkdocs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ plugins:
6464
repository: dapensoft/pyorlib
6565
branch: master
6666
exclude:
67+
- api/*
6768
- examples/index.md
68-
- api/index.md
6969
- index.md
7070
- git-revision-date-localized:
7171
type: timeago
@@ -91,6 +91,8 @@ plugins:
9191
show_symbol_type_toc: true
9292
show_signature_annotations: true
9393
show_category_heading: true
94+
- social:
95+
enabled: !ENV [ CI, false ]
9496

9597
# Extensions
9698
markdown_extensions:
@@ -122,7 +124,7 @@ markdown_extensions:
122124

123125
# Extra JavaScript for MathJax
124126
extra_javascript:
125-
- javascripts/mathjax.js
127+
- javascript/mathjax.js
126128
- https://polyfill.io/v3/polyfill.min.js?features=es6
127129
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
128130

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ all = [
6363
# ----------
6464

6565
docs = [
66-
"mkdocs-material>=9.4.0",
66+
"mkdocs-material>=9.5.17",
6767
"mkdocstrings[python]>=0.24.0",
6868
"mkdocs-git-revision-date-localized-plugin>=1.2.1",
6969
"mkdocs-git-committers-plugin-2>=2.3.0",
70+
"mkdocs-material[imaging]",
7071
]
7172

7273
# --------------------

src/pyorlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
mathematical models in a standardized manner across different optimization packages.
44
"""
55

6-
__version__ = "0.1.1"
6+
__version__ = "0.1.2"
77

88
from .engines import Engine
99
from .model import Model

0 commit comments

Comments
 (0)