Git Product home page Git Product logo

Comments (7)

kernc avatar kernc commented on May 18, 2024 2

Why not just make a submodule examples with little/no public API code, instead containing just prose introduction? You can then link to it with:

`my_project.examples`

from pdoc.

kernc avatar kernc commented on May 18, 2024

Why not simply split your project into sensible submodules (example)?

from pdoc.

shbhuk avatar shbhuk commented on May 18, 2024

Hi,
The code is already split into separate modules.
I ask for this functionality for the text/tutorial/examples etc.

from pdoc.

kernc avatar kernc commented on May 18, 2024

I see. How would this work?

pdoc is meant mainly for API docs! Its primary use case is short usage introduction preceding the API reference.

from pdoc.

shbhuk avatar shbhuk commented on May 18, 2024

I get that. However would be nice if different ..include:: files went to different pages.
What do you think?

from pdoc.

kernc avatar kernc commented on May 18, 2024

Certainly not with .. include:: as this directive has an established, known outcome (verbatim content injection).

It's not that hard to make a hyperlink explicitly:

Find more examples on the [Examples] page.

[Examples]: ./examples.html

That extra page can then be constructed by any convenient means.

If you're counting mostly on prose documentation, perhaps what you're after is more in line with how Sphinx, MkDocs, or even Nikola operate. (Unfortunately, Nikola only supports old pdoc as a plugin.)

from pdoc.

kernc avatar kernc commented on May 18, 2024

Opposing the idea, I'll close for the time being. Docs hierarchy follows module hierarchy is one of the main selling points of the program. I think the comment above shows the appropriate way to go.

If you care to find a strong counter argument, envision further details, and propose a reasonable implementation, welcome to comment/reopen.

from pdoc.

Related Issues (20)

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.