New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latex backend #441
Latex backend #441
Conversation
There are some post 4.02 function calls in there that are causing the CI to fail - |
🎉 yay 🎉 Just to complement @Octachron 's presentation, there are two additional changes:
|
2b33511
to
608a9e2
Compare
I have restored the compatibility with 4.02.3. |
Did you change the nesting structure along the way (I don't have the time to look into details right now but a quick look doesn't seem to indicate it's the case) ? One of the problem with IIRC what would be nice is to eave each structure item in its own |
This is how I intend it to be. I think I've achieved it but I would be happy to improve it further. EDIT: here's an example of signature item with doc: <div>
<div class="spec value" id="val-bar">
<a href="#val-bar" class="anchor"></a><code><span class="keyword">val</span> bar : unit</code>
</div>
<div>
<p>
foo bar
</p>
</div>
</div> |
That doesn't look too bad, except having the Unless you worry about space adding a Also @trefis's markup had the id on the wrapping |
@Drup let's not discuss this there since it's unrelated. I'm interested in someone pinging me when the new markup stabilized so that I can update the |
@Drup I presume you're happy with this, given you've been active in its development - in which case I don't see any barrier to merging this and doing any necessary tidying in master. Sound OK? |
Sure! |
@Octachron do you want to tidy this up before merging or shall I squash and merge? |
I would prefer to tidy up the history to at least split the document IR part from the latex-only part. (And keeping an independant commit for the |
OK, sounds good. |
8f17c37
to
3e186e6
Compare
Rebased and squashed down to three commits. |
There's a failure in the tests in |
Currently, this node only represents a potentially expanded item (a subpage for instance) that each backend may choose to expand or not. Co-authored-by: Drup <drupyog@zoho.com>
3e186e6
to
03aa365
Compare
Indeed, I forgot to run the test with a recent version of OCaml after fixing the rebasing conflicts. This should be fixed now. |
This PRs adds an initial latex backend that can compile the OCaml standard library quite nicely.
During the implementation, @Drup and me modified the documentation IR to allow backends to take more easily the decision to inline submodules and other subpages, since for a latex backend we try to generate readable paper texts, where following link is not so immediate.
The backend probably some need more testing with other libraries and more tuning with people feedback.
A remaining point is the question of the user interface, currently, I am using a hand-written makefile combined with a handwritten latex header file. I was wondering if we should provide a template latex header but this is not done yet.