Skip to content

Commit 83c7289

Browse files
committed
Reworked run.ps1 script.
1 parent 082cef1 commit 83c7289

7 files changed

Lines changed: 375 additions & 219 deletions

File tree

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@
229229
# ==============================================================================
230230
# SphinxContrib.Mermaid
231231
# ==============================================================================
232+
mermaid_cmd = "mmdc"
233+
mermaid_cmd_shell = True
232234
mermaid_params = [
233235
'--backgroundColor', 'transparent',
234236
]

doc/index.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,19 @@ License
267267
.. raw:: latex
268268

269269
\part{Main Documentation}
270+
\chapter{Actions}
270271

271272
.. toctree::
272273
:caption: Actions
273274
:hidden:
274275

275276
Action/index
276-
Action/Releaser
277277
Action/With-post-step
278+
Action/Releaser
279+
280+
.. raw:: latex
281+
282+
\chapter{Job Templates}
278283

279284
.. toctree::
280285
:caption: Job Templates

doc/preamble.tex

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,44 @@
66
% - https://GitHub.com/sphinx-doc/sphinx/issues/3511
77
%
88
\usepackage{fontspec}
9-
\usepackage{unicode-math}
109

1110
% Set Main fonts
12-
\setmainfont{Noto Serif}
13-
\setsansfont{Noto Sans}
14-
15-
% Set your requested Source Code Pro for Monospace
16-
% Make sure "Source Code Pro" is installed on your Windows system
17-
\setmonofont{Source Code Pro}[Scale=MatchLowercase]
11+
\usepackage{libertinus-otf}
12+
%\usepackage{noto-emoji}
1813

1914
% Set Math font
20-
\setmathfont{Libertinus Math}
15+
\usepackage{unicode-math}
16+
\setmathfont{LibertinusMath}
2117

2218
% Set Symbol font
23-
\newfontfamily{\symbolsfont}{DejaVu Sans}
24-
25-
26-
% 4. Handle the "Package" Icon and other Symbols
27-
% If Noto Serif misses the 📦 icon, we can define a fallback
28-
%\newfontfamily{\symbolsfont}{Segoe UI Symbol} % Excellent on Windows
29-
%\newfontfamily{\emojifont}{Segoe UI Emoji}
30-
31-
% Tell XeLaTeX to look for specific characters in other fonts if missing
32-
% This requires the 'ucharclasses' package or manual substitution
33-
19+
\usepackage{newunicodechar}
20+
\newfontfamily{\emojifont}[Renderer=OpenType]{NotoColorEmoji.ttf}
21+
\newunicodechar{≤}{\ensuremath{\le}}
22+
\newunicodechar{—}{---}
23+
\newunicodechar{…}{\dots}
24+
\newunicodechar{␣}{\ttfamily\char32} % open box = visible space U+2423
25+
26+
\newunicodechar{🍎}{{\emojifont 🍎}} % red apple
27+
\newunicodechar{🍏}{{\emojifont 🍏}} % green apple
28+
\newunicodechar{🐧}{{\emojifont 🐧}} % penguin
29+
\newunicodechar{⛄}{{\emojifont ⛄}} % snowman
30+
\newunicodechar{🪟}{{\emojifont 🪟}} % window
31+
\newunicodechar{🏢}{{\emojifont 🏢}} % glas building
32+
\newunicodechar{🐍}{{\emojifont 🐍}} % green snake
33+
\newunicodechar{🔴}{{\emojifont 🔴}} % red circle
34+
\newunicodechar{🟠}{{\emojifont 🟠}} % orange circle
35+
\newunicodechar{🟡}{{\emojifont 🟡}} % yellow circle
36+
\newunicodechar{🟢}{{\emojifont 🟢}} % green circle
37+
\newunicodechar{🟣}{{\emojifont 🟣}} % purple circle
38+
\newunicodechar{⚫}{{\emojifont ⚫}} % black circle U+26AB
39+
\newunicodechar{🟧}{{\emojifont 🟧}} % red square U+1F7E7
40+
\newunicodechar{🟨}{{\emojifont 🟨}} % yellow square U+1F7E8
41+
\newunicodechar{🟫}{{\emojifont 🟫}} % braun square U+1F7EB
42+
\newunicodechar{🟦}{{\emojifont 🟦}} % blue square U+1F7E6
43+
\newunicodechar{🟪}{{\emojifont 🟪}} % purple square U+1F7EA
44+
\newunicodechar{⟲}{{\emojifont ⟲}} % circular arrow counterclockwise U+27F2
45+
\newunicodechar{📦}{{\emojifont 📦}}
46+
\newunicodechar{📂}{{\emojifont 📂}}
47+
\newunicodechar{🗑}{{\emojifont 🗑}} % Wastebasket 🗑️ U+1F5D1
3448

3549
% ================================================================================

doc/shields.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
:target: https://GitHub.com/pyTooling/Actions/releases
4545

4646
.. # Documentation license
47-
.. |SHIELD:svg:pyTooling-doc-license| image:: https://img.shields.io/badge/doc-CC--BY%204.0-green?longCache=true&style=flat-square&logo=CreativeCommons&logoColor=fff
47+
.. |SHIELD:svg:pyTooling-doc-license| image:: https://img.shields.io/badge/doc-CC--BY\ 4.0-green?longCache=true&style=flat-square&logo=CreativeCommons&logoColor=fff
4848
:alt: Documentation License
4949
:height: 22
5050
:target: License.html
51-
.. |SHIELD:png:pyTooling-doc-license| image:: https://raster.shields.io/badge/doc-CC--BY%204.0-green?longCache=true&style=flat-square&logo=CreativeCommons&logoColor=fff
51+
.. |SHIELD:png:pyTooling-doc-license| image:: https://raster.shields.io/badge/doc-CC--BY\ 4.0-green?longCache=true&style=flat-square&logo=CreativeCommons&logoColor=fff
5252
:alt: Documentation License
5353
:height: 22
5454
:target: https://GitHub.com/pyTooling/Actions/blob/main/doc/License.rst

myPackage/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def Value(self) -> int:
7070
"""
7171
return self._value
7272

73-
def Add(self, value) -> None:
73+
def Add(self, value: int) -> None:
7474
"""
7575
Accumulate value to internal value.
7676

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ junit_xml = "report/typing/StaticTypingSummary.xml"
3737
cobertura_xml_report = "report/typing"
3838

3939
[tool.pytest]
40-
addopts = ["--tb=native"]
40+
addopts = [
41+
"--tb=native",
42+
"--junitxml=report/unit/UnittestReportSummary.xml"
43+
]
4144
# Don't set 'python_classes = *' otherwise, pytest doesn't search for classes
4245
# derived from unittest.Testcase
4346
python_files = ["*"]

0 commit comments

Comments
 (0)