CalculusWithJuliaNotes.jl/quarto/README-quarto.md

123 lines
3.4 KiB
Markdown
Raw Normal View History

2022-07-24 22:38:24 +02:00
# CalculusWithJulia via quarto
2022-11-04 15:50:13 +01:00
Short cut. Run first command until happy, then run second to publish
```
quarto render
2024-04-27 00:26:12 +02:00
#julia adjust_plotly.jl # <-- no longer needed
2024-10-15 23:17:25 +02:00
# maybe git config --global http.postBuffer 157286400
2024-04-27 00:26:12 +02:00
quarto publish gh-pages --no-render
2022-11-04 15:50:13 +01:00
```
2022-07-24 22:38:24 +02:00
To compile the pages through quarto
2024-04-27 00:26:12 +02:00
* author in `.qmd` files (to be run through pluto)
2022-07-25 01:03:28 +02:00
* run `quarto preview` to develop interactively (kinda slow!)
* run `quarto render` to render pages (not too bad)
# to publish
* bump the version number in `_quarto.yml`, `Project.toml`
* run `quarto publish gh-pages` to publish
2022-07-26 02:51:08 +02:00
* or `quarto publish gh-pages --no-render` to avoid re-rendering, when just done
2022-07-25 01:03:28 +02:00
* should also push project to github
* no need to push `_freeze` the repo, as files are locally rendered for now.
2024-05-22 13:55:20 +02:00
* NO LONGER to get `PlotlyLight` to work the plotly library needs loading **before** require.min.js. This is accomplished by **editing** the .html file and moving up this line: <script src="https://cdn.plot.ly/plotly-2.11.0.min.js"></script>
2022-09-08 13:03:08 +02:00
This can be done with this commandline call: julia adjust_plotly.jl
2022-08-11 19:19:07 +02:00
* This error
> fatal: 'gh-pages' is already checked out at '/Users/verzani/julia/CalculusWithJuliaNotes/quarto/f5611730'
2022-08-17 21:46:14 +02:00
was solved with (https://waylonwalker.com/til/git-checkout-worktree/)
2022-08-11 19:19:07 +02:00
> git worktree remove f5611730
2022-10-03 18:00:35 +02:00
```
quarto render; julia adjust_plotly.jl
quarto publish gh-pages --no-render
```
2022-07-24 22:38:24 +02:00
2022-09-08 13:03:08 +02:00
# ------
In summary, there are two steps
```
quarto render
```
Preview output in `_book/index.html`. If okay to publish:
```
julia adjust_plotly.jl
quarto publish gh-pages --no-render
```
Then one should:
* push changes to origin
* merge into main
* branch to new version
* pull origin to merge
2022-07-24 22:53:06 +02:00
---
Eventually, if this workflow seems to be settled:
2022-09-19 22:10:49 +02:00
* deprecate need to make "pluto friendly"
2022-09-15 15:28:10 +02:00
* take advantage of mermaid, ojs, bibliography, ...
2022-09-19 22:10:49 +02:00
DONE * move to not use CalculusWithJulia.WeaveSupport
DONE * remove frontmatter
DONE * fig_size -> _common_code
2022-09-15 15:28:10 +02:00
DONE * deprecate .jmd files
2022-08-17 21:46:14 +02:00
DONE? * do something with JSXGraph
2022-09-08 13:03:08 +02:00
DONE * figure out why PlotlyLight doesn't work XXX hacky!
2022-08-17 21:46:14 +02:00
DONE * use an include file not the "hack" in jmd2qmd
2022-09-15 15:28:10 +02:00
DONE * modify sympy's show method
2022-10-03 18:00:35 +02:00
## TODO
2023-03-28 17:02:18 +02:00
* Old and new astronomy; : Proctor, Richard Anthony, 1837-1888 : Free Download, Borrow, and Streaming : Internet Archive
https://archive.org/details/oldnewastronomy00procuoft
https://ia800908.us.archive.org/16/items/oldnewastronomy00procuoft/oldnewastronomy00procuoft.pdf has interesting epicycle figures on p 186/886. Could add these in.
2022-10-10 20:28:05 +02:00
* ImageFile -> ![]() as much as possible
2022-10-03 18:00:35 +02:00
* use pandoc references(?)
* mermaid, ojs?
CAN'T DO * set up quarto to generate on CI. (Tried, but can't get through to the finish before a CI timeout...; Must use quarto publish command locally...)
DONE * PlotlyLight
DONE * clean up edit link
DONE * remove pinned header
DONE * clean up directory
DONE (?) * JSXGraph files
2024-05-22 13:55:20 +02:00
WON'T DO * download links to Pluto .jl files (if we have .jmd, but we might deprecate...) For *now* .jmd is deprecated; though we keep the files around ....
2023-03-28 17:02:18 +02:00
## Cone, general
# https://discourse.julialang.org/t/general-plotting-code-for-cone-in-3d-with-glmakie-or-plots/92104/3
basecurve(u) = [cos(u), sin(u) + sin(u/2), 0]
Vertex = [0, 3/4, 3]
function Cone(u, t)
x, y, z = basecurve(u)
t * ([x,y,z] - Vertex) + Vertex
end
us = range(0, 2pi, length=50)
ts = range(0, 1, length=50)
xyzs = Cone.(us, ts')
surface(CalculusWithJulia.unzip(xyzs))