Giter Club home page Giter Club logo

epythet's Introduction

i2mint

Meta info about i2mint organization and projects

epythet's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

epythet's Issues

Include version and docs generation date.

I would be nice for the user to be able to know what version the documentation pertains to, and view earlier versions as well (like python or sklearn docs do).

It's also nice for the developer to know when the docs were generated (for example, to see if a new generation came through yet). Unless a better/easier idea comes along; generation date should be included subtly (small font, gray, footer?).

recommonmark is now deprecated

I see that epythet imports recommonmark, but as seen on recommonmark's page it is now deprecated in favor of MyST:
"Warning: recommonmark is now deprecated. We recommend using MyST for a docutils bridge going forward. See this issue for background and discussion.": recommonmark deprecated

Annoying effects of local docs

The presence of local docs produces a lot of annoying "information washout":

during IDE (pycharm here) search

When searching for objects, a big proportion of files are html or js, which makes it hard to find stuff.
The cleaner solution would be that I parametrize the search to ignore .js and .html files, but haven't managed to find how to do that.

image

in git prints

Hard to see what’s (arguably) more important when, say, doing a git pull.

image

Solution and their tradeoffs

Of course, it's nice to have local documentation, but personally I almost always use online documentation, so it's an easy price for me to pay to not have the docs locally.

What about the solution of putting docs/* in the gitignore. Would that be sufficient? in which situations would that not be recommended?

Markdown support breaks normal rst docs

I've disabled the markdown support because it messes with the rst code blocks and numbered lists. You can find examples on this page when you compile the docs:
https://i2mint.github.io/epythet/module_docs/epythet.html

This code needs to change
epythet/_static/docsrc/conf.py

import commonmark


def docstring(app, what, name, obj, options, lines):
    md = '\n'.join(lines)
    ast = commonmark.Parser().parse(md)
    rst = commonmark.ReStructuredTextRenderer().render(ast)
    lines.clear()
    lines += rst.splitlines()


def setup(app):
    app.connect('autodoc-process-docstring', docstring)

The markdown parser should not be blindly applied to the entire document.

One possible solution is to have some kind of sentinel or keyword show where md starts and finishes and only apply it to those sections. Even better if you can tell the difference between md and rst without the users knowledge.

Documentation must be added for whatever the solution ends up being.

Spell check support

Another problem to solve in doc gen: Spell checking.

  • How can we have pycharm/vscode tell us about possible mistakes in module and functions/classes docs?
  • A function/command to ask sphinx to spell check those things that will actually end up in the docs? Integrate that with the default doc gen?

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.