Skip to content

Commit

Permalink
Update some things related to color playgrounds in docs
Browse files Browse the repository at this point in the history
Use latest pymdown-extensions.
  • Loading branch information
facelessuser committed Sep 23, 2024
1 parent c09c794 commit 9624950
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
8 changes: 0 additions & 8 deletions docs/src/markdown/gamut.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,14 +495,6 @@ surface, which in some spaces will help to converge closer to our ideal color th

![Ray Trace Gamut Mapping Example](images/raytrace-gma-improve.png)

/// note
For accuracy, iterations could be increased further which would reduce a potential ∆h shift even more, but ColorAide has
opted to keep iterations at 4 which can gamut map colors to sRGB with ∆h shift of less than 1, and when gamut mapping
to a larger space like Rec. 2020, still below a ∆h of 2. It can be noted that the further away the gamut boundary is
from the achromatic line, the less accurate gamut mapping can be, but with a shift still below ∆h of 2 for a large space
like Rec. 2020, the accuracy is plenty sufficient.
///

The results are comparable to MINDE using a low JND, but resolves much faster and within more predictable, consistent
time.

Expand Down
4 changes: 3 additions & 1 deletion docs/src/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,14 @@ markdown_extensions:
- pymdownx.blocks.definition:
- pymdownx.blocks.tab:
alternate_style: True
- pymdownx.fancylists:
inject_style: True

extra_css:
- assets/coloraide-extras/extra.css
extra_javascript:
- https://unpkg.com/[email protected]/dist/mermaid.min.js
- playground-config-4eaa56ea.js
- playground-config-70f29cae.js
- https://cdn.jsdelivr.net/pyodide/v0.26.2/full/pyodide.js
- assets/coloraide-extras/extra-notebook.js

Expand Down
6 changes: 5 additions & 1 deletion docs/src/py/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,8 @@ def render_notebook(*args, **kwargs):
'pymdownx.blocks.details',
'pymdownx.blocks.html',
'pymdownx.blocks.definition',
'pymdownx.blocks.tab'
'pymdownx.blocks.tab',
'pymdownx.fancylists'
]
extension_configs = {
'markdown.extensions.toc': {
Expand Down Expand Up @@ -1028,6 +1029,9 @@ def render_notebook(*args, **kwargs):
'question', 'warning', 'failure', 'danger', 'bug', 'example', 'quote'
]
},
'pymdownx.fancylists': {
'inject_style': True
},
'pymdownx.blocks.details': {
'types': [
{'name': 'details-new', 'class': 'new'}, {'name': 'details-settings', 'class': 'settings'},
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var colorNotebook = {
"playgroundWheels": ['pygments-2.17.2-py3-none-any.whl', 'coloraide-4.0-py3-none-any.whl'],
"notebookWheels": ['pyyaml', 'Markdown-3.6-py3-none-any.whl', 'pymdown_extensions-10.8-py3-none-any.whl', 'pygments-2.17.2-py3-none-any.whl', 'coloraide-4.0-py3-none-any.whl'],
"notebookWheels": ['pyyaml', 'Markdown-3.6-py3-none-any.whl', 'pymdown_extensions-10.10.1-py3-none-any.whl', 'pygments-2.17.2-py3-none-any.whl', 'coloraide-4.0-py3-none-any.whl'],
"defaultPlayground": "import coloraide\ncoloraide.__version__\nColor('red')"
}
6 changes: 4 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,16 @@ markdown_extensions:
- pymdownx.blocks.definition:
- pymdownx.blocks.tab:
alternate_style: True
- pymdownx.fancylists:
inject_style: True

extra_css:
- assets/coloraide-extras/extra-696a2734c9.css
extra_javascript:
- https://unpkg.com/[email protected]/dist/mermaid.min.js
- playground-config-4eaa56ea.js
- playground-config-70f29cae.js
- https://cdn.jsdelivr.net/pyodide/v0.26.2/full/pyodide.js
- assets/coloraide-extras/extra-notebook-Ebu9FPfZ.js
- assets/coloraide-extras/extra-notebook-DQWpIrCE.js

extra:
social:
Expand Down
2 changes: 1 addition & 1 deletion tools/buildwheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Notebook specific wheels
NOTEBOOK_WHEELS = [
"https://files.pythonhosted.org/packages/fc/b3/0c0c994fe49cd661084f8d5dc06562af53818cc0abefaca35bdc894577c3/Markdown-3.6-py3-none-any.whl", # noqa: E501
"https://files.pythonhosted.org/packages/5f/6b/9d63a5122b7cda7710bc14f5cbb441579c61c8f76841b1d10005e86dc12e/pymdown_extensions-10.8-py3-none-any.whl", # noqa: E501
"https://files.pythonhosted.org/packages/f5/08/56121d5a6746c192172766c18be90c790018b632ff94598ad3fa39935b73/pymdown_extensions-10.10.1-py3-none-any.whl", # noqa: E501
]

NOTEBOOK_PYODIDE_PKGS = [
Expand Down

0 comments on commit 9624950

Please sign in to comment.