Comments (8)
I wouldn't rely on it in its current implementation, but think of it as an aspirational command - we'll get it right next version :-)
from bsdoc.
- Compile to .odoc: https://github.com/ocaml/odoc/blob/1.4.1/src/odoc/compile.mli
- Env builder: https://github.com/ocaml/odoc/blob/1.4.1/src/odoc/env.mli
- Package is just a string
- Compile .odoc to HTML: https://github.com/ocaml/odoc/blob/1.4.1/src/odoc/html_page.mli
- Syntax: https://github.com/ocaml/odoc/blob/1.4.1/src/html/tree.mli
- output: docs/ dir
from bsdoc.
This may not be a good idea, particularly with the new model. It's quite aggressive with caching and memoizing for performance - though it does depend on which libraries you're using.
from bsdoc.
@jonludlam yeah, now I'm leaning more towards using BuckleScript's vendored Ninja build tool to drive doc generation using just odoc compile and odoc html calls.
from bsdoc.
sounds good. Out of interest, does ninja need to know what files will be produced? (ie, the html-targets command)
from bsdoc.
Yeah, at least roughly the main outputs. For example, and I'm planning to implement this, if I have a file src/foo/foo__bar.ml
, then I need to tell Ninja about the following outputs from odoc html
:
docs/foo__bar/index.html
docs/foo/bar/index.html
(because of aliasmodule Bar = Foo__Bar
insrc/foo.ml
)
from bsdoc.
@jonludlam oh, I just realized odoc html-targets
is an actual command, which, I assume, prints out the output HTML files. Will look into that.
from bsdoc.
Closing to try Ninja-driven approach as mentioned above.
from bsdoc.
Related Issues (15)
- Support .cmt files too HOT 4
- Add support for bs-platform@5 HOT 2
- Wrong project link in repo description HOT 1
- esy build fails: esy-build-package: Error: exception Sys_error("/usr/lib/ocaml/METAS: No such file or directory") HOT 1
- odoc invocation will be changing HOT 1
- Minor typo
- [Feature request] Strip module-path components from the front of generated docs
- does this support monorepo ? HOT 2
- Support specifying reason or ocaml syntax
- Random Symbols in output HOT 2
- Warnings during compilation HOT 3
- does not generate TOC
- Ship with odoc HOT 1
- cannot execute binary file: Exec format error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bsdoc.