GithubHelp home page GithubHelp logo

ocamlpro / digodoc Goto Github PK

View Code? Open in Web Editor NEW
11.0 15.0 9.0 7.77 MB

Dig into an opam switch for doc

License: Other

Makefile 0.32% CSS 10.64% Python 1.28% OCaml 80.74% JavaScript 3.30% Shell 0.21% HTML 3.50%

digodoc's Introduction

digodoc's People

Contributors

ddeclerck avatar eliasgit2017 avatar fourchaux avatar hernoufm avatar lefessan avatar maxtori avatar radiopotin avatar thomasblanc avatar zapashcanon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

digodoc's Issues

windows' and macos' CI fail

  1. opam do not support command depext within macos' CI:
opam: unknown command `depext'.
Usage: opam COMMAND ...
Try `opam --help' for more information.
Error: Process completed with exit code 2.
  1. windows CI needs installation of packages gmp and system:pkgconf
The packages you requested declare the following system dependencies. Please make sure they are installed before retrying:
    gmp system:pkgconf

Type indexation considers too many artefacts

It seems that type indexation makes some extra indexation steps that weren't envisaged:

  1. Indexation types of classes, that is useless (due to existing separated class index) and doesn't provide correct link to the type in documentation page. Example:
(#in_obj_channel)
TYPE_ABSTRACT
in_obj_channel

This is an indexation entry for class in_obj_channel within moduleCsv inside package csv.
2. Indexation of corresponding class artifacts (values and methods)

Split index generation from page generation

Currently, the index is generated during the same pass as other pages. So, there is no way to merge package documentations coming from multiple switches. Instead, we should save the package documentations first, with enough information for a second, independent, pass to generate the 4 indexes.

Note that, though it will be easy to regenerate the indexes for OPAM., LIBRARY. and META., only independent modules have a MODULE. entry. So, we need to find another solution for modules that are included in libraries.

mld files are not rendered

It seems these files are currently not rendered. That's a problem for my libraries which often have such files.

Also it would be nice to honour the odig convention which allows packages to customize part of the package page landing page via the index.mld file of the package. In my packages these files also have important bits for end-users (see e.g. odig's brr's package page).

cma-only libraries not taken into account

It seems that cma-only libraries are ignored.

For instance, the OPAM package num installs three METAs :

  • num (which is virtual)
  • num.core, containing the library nums.(cma|cmxa|cmxs)
  • num-top, containing the library num_top.cma

The generated documentation for the OPAM package correctly mentions the three METAs, but only mentions the nums library.

mli-only module never considered a dependency by ocamlobjinfo

The ocamlbuildlib.cmxa library uses signatures.mli, according to its source files, however ocamlobjinfo never lists this dependency. The .cmi and .cmti files for signatures are also present.

I don't know if this is related, but the Signatures interface only appears in include statements.

Change typing for module extensions from StringSet.t to StringMap.t

Some unsuspected crash has occured when mapping modules to their respective package directory.

Indeed some modules appear in subdirectories of that package (.private/ for example) and there mapping to that package is erroneous, said module being mapped the package dir, instead of, to keep previous example, .private.

We have noticed small discrepancies between our expectations and the reality of some .changes files under .opam_switch/install of the opam config subtree.

This issue and #51 are correlated

Extend list of supported formats in sources tab

Consider extending the list of supported formats in the source tab with the following:

  • .md files
  • image formats (JPEG/PNG/...)
  • .c and .h files
  • binary files

Which are all rendered in a raw manner, for now.

Fix links in HTML code in MD files

HTML code found in Markdown files isn't patched when generating sources and fixing static links.

Example:
Alcotest README.md file

### Examples

A simple example (taken from `examples/simple.ml`):

<p align="center"><img src="./.meta/ok.png" width="65%"></p>

This static link won't be patched and rendered in digodoc's Sources tab

css templates overhaul

Consider revisiting the overall esthetic and interface of generated doc pages.

  • make it look even prettier, coloring, background and whatnot

  • improve interfaces for a clearer, properly better user experience

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.