Open joa-quim opened 2 years ago
Tons of rebuilds later I found that prefacing the offending (who knows why) reflink
command with something wrapped in singe quotes, even a blank, makes the error go away. i.e. this works.
Select map projection. More at ` ` \myreflink{proj}
This begs for the question if the error is not a consequence of some unbalanced single quoted string in some file that has been processed before the coast.md
file.
unfortunately the way Franklin parses stuff now is prone to hard-to-track errors where, indeed, you forgot to close an environment but Franklin doesn't tell you which one. The upcoming release does this better.
Anyway, glad that you found a workaround
Sorry to continuing bothering you with this but I have one question about the github action. I have to first merge the PR to trigger the Build-Deploy action. But it should be the other way around. Submitting the PR triggers the build and at the if no errors we merge the PR. How to make it work like that?
You can do this via netlify: https://franklinjl.org/workflow/deploy/index.html#previewing_pull_requests
Alternatively, you can use the version
keyword of optimize
, setting it to either dev
or previews/$PR
where PR is recuperated from the GA env.
This will trigger and deploy without affecting the "main" website and be visible at /prepath/dev or /prepath/previews/someid
Note that if the site builds properly locally, you're guaranteed to have a working deploy assuming you set up the prepath and dependencies properly
So that gives you three path:
If you work on the site alone, I'd say just go for 3, if it's collaborative, 1 or 2
Ok, thanks. I'll consider those 3 options. Though it's only me working on it so far, I'd like to keep the door open for collaborations.
Continuing the
reflink
issue here. Made the change you suggested\newcommand{\myreflink}[1]{reflink:#1}
but it still errors the same. To make it happens change thecoast.md
line 26 toThe
proj
target is located athttps://github.com/joa-quim/GMTjl_doc/blob/master/documentation/common_opts.md#L332