Skip to content

Commit

Permalink
Improve mean, eccentric, and true anomaly descriptions (#16)
Browse files Browse the repository at this point in the history
* First draft

* Add jupyterlab deps

* Add script to draw the time since periapsis figure

* Jupyter Lab wants to have node available

* Julia updates

* Jupyterlab updates

* SVG updates

* Mise task updates

* Improve text for calculating GEO

* Allow math rendering to run from the root

* New figures!

* Updates for the text to resolve #15

* Update lockfile
  • Loading branch information
bryanwweber authored Jan 18, 2025
1 parent 10dcfcd commit fec7e3f
Show file tree
Hide file tree
Showing 93 changed files with 5,709 additions and 3,684 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/Dockerfile.math-api
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# syntax=docker/dockerfile:1
FROM node:20-alpine AS deps
FROM node:22-alpine AS deps

WORKDIR /usr/src/app
ADD https://github.com/bryanwweber/math-api.git .
RUN yarn install --frozen-lockfile

FROM node:20-alpine AS builder
FROM node:22-alpine AS builder
WORKDIR /usr/src/app
COPY --from=deps /usr/src/app/server.ts .
COPY --from=deps /usr/src/app/index.ts .
Expand All @@ -15,7 +15,7 @@ COPY --from=deps /usr/src/app/package.json .
COPY --from=deps /usr/src/app/node_modules ./node_modules
RUN npm run build

FROM node:20-alpine as runner
FROM node:22-alpine AS runner

WORKDIR /usr/src/app
ENV NODE_ENV=production
Expand Down
85 changes: 63 additions & 22 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
[tools]
python = "3.12"
bun = "latest"
cargo-binstall = "latest"
"cargo:taplo-cli" = "latest"
julia = "latest"
node = "22"
"npm:markdownlint-cli2" = "latest"
uv = "latest"
julia = "latest"
bun = "latest"
python = "3.12"
uv = "latest"
watchexec = "latest"

[env]
_.python.venv = { path = ".venv", create = true }
Expand All @@ -12,23 +16,60 @@ _.python.venv = { path = ".venv", create = true }
julia = "asdf:rkyleg/asdf-julia"

[settings]
npm = { bun = true }
cargo = { binstall = true }
npm = { bun = true }
python = { uv_venv_auto = true }

[tasks]
lint = { depends = [
"ruff_check_lint",
"ruff_format_lint",
"markdownlint_lint",
], description = "Run all the linter tools", env = { MISE_JOBS = "1" } }
ruff_check_lint = { description = "Run the ruff linter", run = "ruff check ." }
ruff_format_lint = { run = "ruff format --check .", description = "Run the ruff formatter in check mode" }
markdownlint_lint = { run = "markdownlint-cli2", description = "Run markdownlint" }
ruff_check_format = { run = "ruff check --fix .", description = "Run the ruff linter in fix mode" }
ruff_format_format = { run = "ruff format .", description = "Run the ruff formatter" }
markdownlint_format = { run = "markdownlint-cli2 --fix", description = "Run markdownlint in fix mode" }
format = { depends = [
"ruff_check_format",
"ruff_format_format",
"markdownlint_format",
], description = "Run all the formatting tools", env = { MISE_JOBS = "1" } }
[tasks.build_book]
description = "Build the book"
outputs = ["_build/html/**/*.html"]
run = "uv run jb build -W --nitpick -v ."
sources = ["time-since-periapsis-and-keplers-equation/*.md"]

[tasks.format]
depends = ["markdownlint_format", "ruff_check_format", "ruff_format_format"]
description = "Run all the formatting tools"
env = { MISE_JOBS = "1" }

[tasks.julia]
depends = ["julia_install"]
description = "Upgrade and install Julia dependencies"
env = { MISE_JOBS = "1" }

[tasks.julia_install]
depends = ["julia_upgrade"]
description = "Install Julia dependencies"
run = "julia --project=. -e 'using Pkg; Pkg.instantiate()'"

[tasks.julia_upgrade]
description = "Upgrade Julia dependencies"
run = "julia --project=. -e 'using Pkg; Pkg.update()'"

[tasks.lint]
depends = ["markdownlint_lint", "ruff_check_lint", "ruff_format_lint"]
description = "Run all the linter tools"
env = { MISE_JOBS = "1" }

[tasks.markdownlint_format]
description = "Run markdownlint in fix mode"
run = "markdownlint-cli2 --fix"

[tasks.markdownlint_lint]
description = "Run markdownlint"
run = "markdownlint-cli2"

[tasks.ruff_check_format]
description = "Run the ruff linter in fix mode"
run = "ruff check --fix ."

[tasks.ruff_check_lint]
description = "Run the ruff linter"
run = "ruff check ."

[tasks.ruff_format_format]
description = "Run the ruff formatter"
run = "ruff format ."

[tasks.ruff_format_lint]
description = "Run the ruff formatter in check mode"
run = "ruff format --check ."
6 changes: 0 additions & 6 deletions .mise/tasks/build

This file was deleted.

9 changes: 9 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include = [".mise.toml", ".taplo.toml", "pyproject.toml"]

[formatting]
align_entries = true
column_width = 88
indent_string = " "
reorder_arrays = true
reorder_inline_tables = true
reorder_keys = true
Loading

0 comments on commit fec7e3f

Please sign in to comment.