Comments (12)
(by jelmer)
s/ignore explicitly/explicitly ignore/
from pydoctor.
(by mwhudson)
I guess it could be supported. I don't know how they would be "documented" beyond their presence.
You can always document them using @ivar or :var: or similar.
from pydoctor.
(by jelmer)
On Sun, 2010-12-05 at 22:47 +0000, Michael Hudson-Doyle wrote:
I guess it could be supported. I don't know how they would be
"documented" beyond their presence.You can always document them using @ivar or :var: or similar.
It's mainly their presence that I would like to record. An indication
that they are undocumented would also be useful.
Cheers,
Jelmer
from pydoctor.
(by mwhudson)
On Sun, 05 Dec 2010 23:14:18 -0000, Jelmer Vernooij wrote:
On Sun, 2010-12-05 at 22:47 +0000, Michael Hudson-Doyle wrote:
I guess it could be supported. I don't know how they would be
"documented" beyond their presence.You can always document them using @ivar or :var: or similar.
It's mainly their presence that I would like to record. An indication
that they are undocumented would also be useful.
I do have a loose plan to change the model a bit that's vaguely related,
and you've provided me an excuse to brain dump :-)
Currently, Documentables have a document_in_parent_page attribute that
indicates whether the thing being documented should have its own page or
not. I'd like to expand this to be a three-valued thing: its own page,
in the parent page as functions/methods are now and additionally "in the
parents docstring", as :ivar:s and function arguments are now.
Currently zope Attributes are documented differently from :ivar:s and
that's a bit silly. Having function arguments be documentables or at
least some kind of more structured thing would also let us emit warnings
when you document an argument a function doesn't take, something that's
the topic of another bug report I think.
Brain dump over! I think documenting module variables would fit more
naturally into this view of the world than the one we have today.
Cheers,
mwh
from pydoctor.
(by exarkun)
Is this related to supporting module variables as link targets? It seems that presently even something documented with @var cannot be the target of L{}.
from pydoctor.
(by glyph)
See also this Twisted bug: http://twistedmatrix.com/trac/ticket/6196.
from pydoctor.
(by mwhudson)
Jean-Paul Calderone writes:
Is this related to supporting module variables as link targets? It
seems that presently even something documented with @var cannot be the
target of L{}.
It actually seems that things at module level documented with @var are
not present in the rendered page currently... which doesn't seem like it
was what I intended.
from pydoctor.
(by mwhudson)
I've fixed that problem in r588. I don't know if it's worth starting to recognise constant assignments at module level and reporting them as undocumented... might be interesting. So I'll leave this bug open for now.
from pydoctor.
Has there been any progress on this? It would be extremely useful for our project
from pydoctor.
Right now the NOT_DONE_YET
constant is missing from https://twistedmatrix.com/documents/current/api/twisted.web.server.html, so I can't link to it in twisted/treq#173. It's in __all__
, though.
The same thing afflicts the HTTP status code constants in twisted.web.http.
from pydoctor.
Some of the refactoring of "documentation_location" has happened. Nothing else though I'm afraid.
from pydoctor.
As of 20.7.0, module and class variables are included in the output and can be documented using @var
/@cvar
/@ivar
at the module/class level or with a docstring immediately following the assignment.
I'm closing this now; if there is any use case not covered yet, please reopen and include an example or link to Twisted's docs.
from pydoctor.
Related Issues (20)
- RFE: please provide update for `urllib3` 2.2.x HOT 5
- Fix compatibility with docutils 0.21.x
- Transform deprecated typing annotation into python 3.10 style HOT 1
- Codecov is failing HOT 7
- Docutils is slow for constructor links HOT 1
- doc(FAQ): How to lint? HOT 1
- Release automation is broken HOT 3
- Move away from appdirs package
- 24.3.3: pytest fails in `pydoctor/test/test_cyclic_imports_base_classes.py::test_cyclic_imports_base_classes` unit HOT 1
- Add support for PEP727 - typing.Doc
- Do a real distinction in between the code model and the view model
- Add support for doc comments HOT 2
- HTML: Break function signature elements into multiple spans HOT 2
- Drop python 3.7
- Source code files are always assumed to be uft-8
- Syntax error reports don't contain information about the error HOT 2
- Minimize the docstring line numbers offset introduced by napoleon
- pydoctor crashes on Windows when trying to symlink to a nonexistent file: 'index.html' HOT 5
- Create a new test module for the linker
- Setup security bug report process
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 pydoctor.