Skip to content

Commit

Permalink
5.7.1 - Switch to Cascadia Code & Mono
Browse files Browse the repository at this point in the history
  • Loading branch information
vkottler committed Oct 18, 2024
1 parent 4441d5d commit 4a4872d
Show file tree
Hide file tree
Showing 18 changed files with 104 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- run: |
mk python-release owner=vkottler \
repo=runtimepy version=5.7.0
repo=runtimepy version=5.7.1
if: |
matrix.python-version == '3.12'
&& matrix.system == 'ubuntu-latest'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
=====================================
generator=datazen
version=3.1.4
hash=aa59dcef7f11c767458b14ad97f9de59
hash=8247340c8c4e6982a54b831c311f2c0b
=====================================
-->

# runtimepy ([5.7.0](https://pypi.org/project/runtimepy/))
# runtimepy ([5.7.1](https://pypi.org/project/runtimepy/))

[![python](https://img.shields.io/pypi/pyversions/runtimepy.svg)](https://pypi.org/project/runtimepy/)
![Build Status](https://github.com/vkottler/runtimepy/workflows/Python%20Package/badge.svg)
Expand Down
2 changes: 1 addition & 1 deletion local/variables/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
major: 5
minor: 7
patch: 0
patch: 1
entry: runtimepy
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"

[project]
name = "runtimepy"
version = "5.7.0"
version = "5.7.1"
description = "A framework for implementing Python services."
readme = "README.md"
requires-python = ">=3.11"
Expand Down
4 changes: 2 additions & 2 deletions runtimepy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================
# generator=datazen
# version=3.1.4
# hash=c51f4ac6cf134b3c3fa872a096e83489
# hash=405585c0fbfcc966ef193f744f21fa59
# =====================================

"""
Expand All @@ -10,7 +10,7 @@

DESCRIPTION = "A framework for implementing Python services."
PKG_NAME = "runtimepy"
VERSION = "5.7.0"
VERSION = "5.7.1"

# runtimepy-specific content.
METRICS_NAME = "metrics"
Expand Down
5 changes: 2 additions & 3 deletions runtimepy/data/css/bootstrap_extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ button:hover {
*/

:root {
/* Prefer 'Arial' and 'Consolas' at the highest priority. */
--bs-font-sans-serif: Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--bs-font-monospace: Consolas, "Liberation Mono", "Courier New", monospace;
--bs-font-sans-serif: CascadiaCode;
--bs-font-monospace: CascadiaMono;
}
47 changes: 47 additions & 0 deletions runtimepy/data/css/font.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@font-face {
font-family: CascadiaCode;
src: url("static/woff2/CascadiaCode-Regular.woff2");
}

@font-face {
font-family: CascadiaCode;
src: url("static/woff2/CascadiaCode-Bold.woff2");
font-weight: bold;
}

@font-face {
font-family: CascadiaCode;
src: url("static/woff2/CascadiaCode-BoldItalic.woff2");
font-weight: bold;
font-style: italic;
}

@font-face {
font-family: CascadiaCode;
src: url("static/woff2/CascadiaCode-Italic.woff2");
font-style: italic;
}

@font-face {
font-family: CascadiaMono;
src: url("static/woff2/CascadiaMono-Regular.woff2");
}

@font-face {
font-family: CascadiaMono;
src: url("static/woff2/CascadiaMono-Bold.woff2");
font-weight: bold;
}

@font-face {
font-family: CascadiaMono;
src: url("static/woff2/CascadiaMono-BoldItalic.woff2");
font-weight: bold;
font-style: italic;
}

@font-face {
font-family: CascadiaMono;
src: url("static/woff2/CascadiaMono-Italic.woff2");
font-style: italic;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions runtimepy/data/static/woff2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# [Cascadia Code](https://github.com/microsoft/cascadia-code)

Assets sourced from
[this release](https://github.com/microsoft/cascadia-code/releases/tag/v2404.23).

See also:
[LICENSE](https://github.com/microsoft/cascadia-code/blob/main/LICENSE).
5 changes: 2 additions & 3 deletions runtimepy/net/server/app/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ def __init__(self, app: AppInfo) -> None:
def populate(self, document: Html, app: TabPopulater) -> None:
"""Populate the body element with the application."""

# Third-party dependencies.
# CSS.
append_kind(document.head, "font", kind="css", tag="style")
add_bootstrap_css(document.head)

# Internal CSS.
append_kind(
document.head, "main", "bootstrap_extra", kind="css", tag="style"
)
Expand Down
40 changes: 39 additions & 1 deletion tasks/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,51 @@ includes:
factories:
- {name: tasks.tlm.LogCapture}
tasks:
- {name: root_log, factory: log_capture, period_s: 0.1}
- name: root_log
factory: log_capture
period_s: 0.1
markdown: |
*something isn't looking right...*
**why's it looking like that...**
***why's it looking like THAT...***
`nice mono stuff there`
*`nice slanted mono yeah`*
**`nice mono bold type shit there`**
***`nice mono bold type slant shit there`***
ligature type shit \_\_\_|\_\_\_ ligature type shit
port_overrides:
runtimepy_https_server: 8443

# This works.
# websocket_hostname: nuc2

config:
top_markdown: &sample |
# Libre Embedded

# `Libre Embedded`

# *Libre Embedded*

# *`Libre Embedded`*

# **Libre Embedded**

# **`Libre Embedded`**

# ***Libre Embedded***

# ***`Libre Embedded`***

bottom_markdown: *sample

app:
- runtimepy.net.apps.wait_for_stop

0 comments on commit 4a4872d

Please sign in to comment.