Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# WARNING: Do not edit this file manually.
# Any changes will be overwritten by Copier.
_commit: v0.10.0
_commit: v0.10.1-2-gd05af4f
_src_path: gh:easyscience/templates
app_docs_url: https://easyscience.github.io/dynamics-app
app_doi: 10.5281/zenodo.18163581
app_doi: 10.5281/zenodo.18877180
app_package_name: easydynamics_app
app_python: '3.12'
app_repo_name: dynamics-app
home_page_url: https://easyscience.github.io/dynamics
home_repo_name: dynamics
lib_docs_url: https://easyscience.github.io/dynamics-lib
lib_doi: 10.5281/zenodo.18163581
lib_doi: 10.5281/zenodo.18877180
lib_package_name: easydynamics
lib_python_max: '3.12'
lib_python_min: '3.11'
Expand Down
14 changes: 6 additions & 8 deletions docs/docs/assets/javascripts/extra.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(function() {

"use strict"
;(function () {
'use strict'

// Variables
const header = document.getElementsByTagName('header')[0]
Expand All @@ -10,20 +9,19 @@
// Hide-show header shadow
function toggleHeaderShadow() {
if (window.pageYOffset <= 0) {
header.classList.remove("md-header--shadow")
header.classList.remove('md-header--shadow')
} else {
header.classList.add("md-header--shadow")
header.classList.add('md-header--shadow')
}
}

// Onload
window.onload = function() {
window.onload = function () {
toggleHeaderShadow()
}

// Onscroll
window.onscroll = function() {
window.onscroll = function () {
toggleHeaderShadow()
}

})()
18 changes: 12 additions & 6 deletions docs/docs/assets/javascripts/mathjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,27 @@ window.MathJax = {
//inlineMath: [['\\(', '\\)']],
//displayMath: [['\\[', '\\]']],
// Add support for $...$ and \(...\) delimiters
inlineMath: [['$', '$'], ['\\(', '\\)']],
inlineMath: [
['$', '$'],
['\\(', '\\)'],
],
// Add support for $$...$$ and \[...]\ delimiters
displayMath: [['$$', '$$'], ['\\[', '\\]']],
displayMath: [
['$$', '$$'],
['\\[', '\\]'],
],
processEscapes: true,
processEnvironments: true
processEnvironments: true,
},
options: {
//ignoreHtmlClass: ".*|",
//processHtmlClass: "arithmatex"
// Skip code blocks only
skipHtmlTags: ['script','noscript','style','textarea','pre','code'],
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
// Only ignore explicit opt-out
ignoreHtmlClass: 'no-mathjax|tex2jax_ignore',
}
};
},
}

document$.subscribe(() => {
MathJax.startup.output.clearCache()
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/introduction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Zenodo, each with a version-specific Digital Object Identifier (DOI).

Citation details in various styles (e.g., APA, MLA) and formats (e.g.,
BibTeX, JSON) are available on the
[Zenodo archive page](https://doi.org/10.5281/zenodo.18163581).
[Zenodo archive page](https://doi.org/10.5281/zenodo.18877180).

## Contributing

Expand Down
6 changes: 3 additions & 3 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ docs-update-assets = 'python tools/update_docs_assets.py'
# 📦 Template Management Tasks
##############################

copier-copy = "copier copy gh:easyscience/templates . --data-file .copier-answers.yml --data template_type=lib"
copier-recopy = "copier recopy --data-file .copier-answers.yml --data template_type=lib"
copier-update = "copier update --data-file .copier-answers.yml --data template_type=lib"
copier-copy = "copier copy gh:easyscience/templates . --data-file ../dynamics/.copier-answers.yml --data template_type=lib"
copier-recopy = "copier recopy --data-file ../dynamics/.copier-answers.yml --data template_type=lib"
copier-update = "copier update --data-file ../dynamics/.copier-answers.yml --data template_type=lib"
Comment on lines +185 to +187

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean we also need to pull https://github.com/easyscience/dynamics?
How are we assuring this?

After installing dynamics-lib and running pixi run copier-copy I get

(sdk) C:\Users\piotr\projects\easy\dynamics-lib>pixi run copier-copy
✨ Pixi task (copier-copy in default): copier copy gh:easyscience/templates . --data-file ../dynamics/.copier-answers.yml --data template_type=lib                                                                Error: Argument of data-file expected to be ExistingFile, not '../dynamics/.copier-answers.yml':
    ValueError('../dynamics/.copier-answers.yml is not a file')

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we need to pull both dynamics and dynamics-lib. I described this process in the README in easyscience/templates.

Unfortunately, Copier cannot read the answers file from the web - it only supports local files 🙁. I tried to find a simple cross-platform workaround, but could not find a good solution.

I even wrote a script that downloads the answers file to a temporary location and then runs Copier using that file. But this introduced extra complexity and, in the end, was less maintainable than just having a few lines in the guide explaining the process.

Of course, I’m open to better alternatives if you have any suggestions.


#####################
# 🪝 Pre-commit Hooks
Expand Down
2 changes: 2 additions & 0 deletions tools/add_spdx.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2026 EasyScience contributors <https://github.com/easyscience>
# SPDX-License-Identifier: BSD-3-Clause
"""Add SPDX headers to Python files.

- SPDX-FileCopyrightText with the license holder name and organization
Expand Down
2 changes: 2 additions & 0 deletions tools/check_spdx.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2026 EasyScience contributors <https://github.com/easyscience>
# SPDX-License-Identifier: BSD-3-Clause
"""Check SPDX headers in Python files."""

from __future__ import annotations
Expand Down
2 changes: 2 additions & 0 deletions tools/remove_spdx.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2026 EasyScience contributors <https://github.com/easyscience>
# SPDX-License-Identifier: BSD-3-Clause
"""Remove SPDX headers from Python files."""

from __future__ import annotations
Expand Down
2 changes: 2 additions & 0 deletions tools/test_scripts.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2026 EasyScience contributors <https://github.com/easyscience>
# SPDX-License-Identifier: BSD-3-Clause
"""Test runner for tutorial scripts in the 'tutorials' directory.

This test discovers and executes all Python scripts located under the
Expand Down
4 changes: 3 additions & 1 deletion tools/update_github_labels.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-FileCopyrightText: 2026 EasyScience contributors <https://github.com/easyscience>
# SPDX-License-Identifier: BSD-3-Clause
"""Set/update GitHub labels for current or specified easyscience
repository.

Expand All @@ -17,7 +19,7 @@
import argparse
import json
import shlex
import subprocess
import subprocess # noqa: S404
import sys
from dataclasses import dataclass

Expand Down