update _quarto.yml

This commit is contained in:
jverzani 2022-07-25 12:54:32 -04:00
parent 0f492099ff
commit bce4ce7fa0
19 changed files with 81 additions and 1459 deletions

2
quarto/.gitignore vendored
View File

@ -1,5 +1,5 @@
/.quarto/
/_site/
/_book/
/_freeze/
/*/*_files/
/*/*.ipynb/

View File

@ -1,10 +0,0 @@
[deps]
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
MonteCarloMeasurements = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
NLsolve = "2774e3e8-f4cf-5e23-947b-6d7e65073b56"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"

View File

@ -1,3 +1,12 @@
## TODO
* download .jl file (if we have .jmd)
DONE * clean up edit link
DONE * remove pinned header
DONE * clean up directory
* JSXGraph files
* mermaid, ojs?
# CalculusWithJulia via quarto
To compile the pages through quarto

28
quarto/_common_code.qmd Normal file
View File

@ -0,0 +1,28 @@
```{julia}
#| echo: false
import Logging
Logging.disable_logging(Logging.Info) # or e.g. Logging.Info
Logging.disable_logging(Logging.Warn)
import SymPy
function Base.show(io::IO, ::MIME"text/html", x::T) where {T <: SymPy.SymbolicObject}
println(io, "<span class=\"math-left-align\" style=\"padding-left: 4px; width:0; float:left;\"> ")
println(io, "\\[")
println(io, sympy.latex(x))
println(io, "\\]")
println(io, "</span>")
end
# hack to work around issue
import Markdown
import CalculusWithJulia
function CalculusWithJulia.WeaveSupport.ImageFile(d::Symbol, f::AbstractString, caption; kwargs...)
nm = joinpath("..", string(d), f)
u = "![$caption]($nm)"
Markdown.parse(u)
end
nothing
print("all loaded boss")
```

View File

@ -8,22 +8,20 @@ comments:
book:
title: "Calculus with Julia"
date: now
author: "John Verzani"
date: now
search: true
repo-url: https://github.com/jverzani/CalculusWithJuliaNotes.jl
repo-actions: [edit]
downloads: [pdf, epub]
repo-subdir: quarto/
repo-actions: [edit, issue]
navbar:
background: light
search: true
logo: logo.png
pinned: true
page-footer:
left: "Copyright 2022, John Verzani"
right:
- icon: github
href: https://github.com/
pinned: false
sidebar:
collapse-level: 1
page-footer: "Copyright 2022, John Verzani"
chapters:
- index.qmd
- part: "Precalculus Concepts"
@ -125,10 +123,11 @@ bibliography: references.bib
website:
favicon: logo.png
reader-mode: true
format:
html:
theme: lux # spacelab # lux # sketchy # cosmo # https://quarto.org/docs/output-formats/html-themes.html
theme: lux #lux # spacelab # lux # sketchy # cosmo # https://quarto.org/docs/output-formats/html-themes.html
number-depth: 3
toc-depth: 3
link-external-newwindow: true

View File

@ -1,9 +0,0 @@
[deps]
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253"
IntervalRootFinding = "d2bf35a9-74e0-55ec-b149-d360ff49b807"
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
MDBM = "dd61e66b-39ce-57b0-8813-509f78be4b4d"
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
Weave = "44d3d7a6-8a23-5bf8-98c5-b353f8df5ec9"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

View File

@ -1,17 +0,0 @@
[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
EllipsisNotation = "da5c29d0-fa7d-589e-88eb-ea29b0a81949"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
ImplicitPlots = "55ecb840-b828-11e9-1645-43f4a9f9ace7"
IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253"
IntervalConstraintProgramming = "138f1668-1576-5ad7-91b9-7425abbf3153"
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
MDBM = "dd61e66b-39ce-57b0-8813-509f78be4b4d"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"
TaylorSeries = "6aa5eb33-94cf-58f4-a9d0-e4b2c4fc25ea"
TermInterface = "8ea1fca8-c5ef-4a55-8b96-4e9afe9c9a3c"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

View File

@ -1,15 +0,0 @@
[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Contour = "d38c429a-6771-53c6-b99e-75d170b6e991"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MDBM = "dd61e66b-39ce-57b0-8813-509f78be4b4d"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"

View File

@ -17,7 +17,6 @@ function Base.show(io::IO, ::MIME"text/html", x::T) where {T <: SymPy.SymbolicOb
println(io, "</span>")
end
# hack to work around issue
import Markdown
import CalculusWithJulia
@ -30,7 +29,6 @@ end
nothing
```
This section uses these add-on packages:
@ -2823,3 +2821,4 @@ choices = [
answ = 1
radioq(choices, answ)
```

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +0,0 @@
[deps]
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
HCubature = "19dc6840-f33b-545b-b366-655c7e3ffd49"
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"

View File

@ -1,8 +0,0 @@
[deps]
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
UnitfulUS = "7dc9378f-8956-57ef-a780-aa31cc70ff3d"

View File

@ -1,5 +0,0 @@
# Introduction
This is a book created from markdown and executable code.
See @knuth84 for additional discussion of literate programming.

View File

@ -9,36 +9,40 @@ Base.show(io::IO, ::MIME"text/qmd", content) = Markdown.plain(io, content)
## Expects title to be very first thing in a jmd file
## Proper way would be to use https://quarto.org/docs/extensions/nbfilter.html
function inject_code(io::IO)
println(io, """
```{julia}
#| echo: false
import Logging
Logging.disable_logging(Logging.Info) # or e.g. Logging.Info
Logging.disable_logging(Logging.Warn)
import SymPy
function Base.show(io::IO, ::MIME"text/html", x::T) where {T <: SymPy.SymbolicObject}
println(io, "<span class=\\"math-left-align\\" style=\\"padding-left: 4px; width:0; float:left;\\"> ")
println(io, "\\\\[")
println(io, sympy.latex(x))
println(io, "\\\\]")
println(io, "</span>")
end
# hack to work around issue
import Markdown
import CalculusWithJulia
function CalculusWithJulia.WeaveSupport.ImageFile(d::Symbol, f::AbstractString, caption; kwargs...)
nm = joinpath("..", string(d), f)
u = "![\$caption](\$nm)"
Markdown.parse(u)
end
nothing
```
println(io, """
{{< include ../_common_code.qmd >}}
""")
end
# println(io, """
# ```{julia}
# #| echo: false
# import Logging
# Logging.disable_logging(Logging.Info) # or e.g. Logging.Info
# Logging.disable_logging(Logging.Warn)
# import SymPy
# function Base.show(io::IO, ::MIME"text/html", x::T) where {T <: SymPy.SymbolicObject}
# println(io, "<span class=\\"math-left-align\\" style=\\"padding-left: 4px; width:0; float:left;\\"> ")
# println(io, "\\\\[")
# println(io, sympy.latex(x))
# println(io, "\\\\]")
# println(io, "</span>")
# end
# # hack to work around issue
# import Markdown
# import CalculusWithJulia
# function CalculusWithJulia.WeaveSupport.ImageFile(d::Symbol, f::AbstractString, caption; kwargs...)
# nm = joinpath("..", string(d), f)
# u = "![\$caption](\$nm)"
# Markdown.parse(u)
# end
# nothing
# ```
# """)
# end
## Main function to take a jmd file and turn into an HTML
function markdownToHTML(fname::AbstractString; TITLE="", kwargs...)

View File

@ -1,10 +0,0 @@
[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253"
IntervalRootFinding = "d2bf35a9-74e0-55ec-b149-d360ff49b807"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"

View File

@ -37,7 +37,7 @@ for DIR ∈ DIRS
if ext == ".jmd"
qmd_file = joinpath(DIR, fnm * ".qmd")
jmd_file = joinpath(dir, f)
if mtime(jmd_file) > mtime(qmd_file)
if true || mtime(jmd_file) > mtime(qmd_file)
open(qmd_file, "w") do io
jmd2qmd(io, jmd_file)
end

View File

@ -1,9 +0,0 @@
[deps]
CalculusWithJulia = "a2e0e22d-7d4c-5312-9169-8b992201a882"
HCubature = "19dc6840-f33b-545b-b366-655c7e3ffd49"
ImplicitEquations = "95701278-4526-5785-aba3-513cca398f19"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Polynomials = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"

View File

@ -1,11 +0,0 @@
[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253"
Measures = "442fdcdd-2543-5da2-b0f3-8c86c306513e"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Polynomials = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
RealPolynomialRoots = "87be438c-38ae-47c4-9398-763eabe5c3be"
Richardson = "708f8203-808e-40c0-ba2d-98a6953ed40d"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"