Comments (7)
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.
Why not simply split your project into sensible submodules (example)?
from pdoc.
Hi,
The code is already split into separate modules.
I ask for this functionality for the text/tutorial/examples etc.
from pdoc.
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.
I get that. However would be nice if different ..include::
files went to different pages.
What do you think?
from pdoc.
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.
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)
- Skip-errors not recogniazed HOT 1
- Support inline math with dollar `$...$` delimiters when `--config latex_math=True`
- search field wont appear in generated html file HOT 1
- generating the whole project documentation with 1 command HOT 2
- Support search in docpage HOT 2
- Wrong search hyperlinks to page sections for inherited classes HOT 1
- Strike Through Markdown not working
- PEP224 style docstring not honoured for global variable of type Callable
- HTML files should end with a newline
- Upgrade code reference warnings to errors.
- --skip-errors flag does not work
- feature request: support for headings to organize functions
- Include html containing javascript
- Using a - in folder names prevents linking
- missing docstrings of methods HOT 2
- syntax error with match-case function
- Incorrectly rendered Args section HOT 1
- Add GitHub Flavor Markdown support HOT 2
- Remove indentation in text template for markdown files
- Deprecation warning for PEP224 class variable docstrings
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 pdoc.