Comments (5)
- Is my code written "incorrectly" with relation to how
pdoc
works that isn't obvious to me?- Is there a flag that I can add to
pdoc
to write a static reference to the in-memory object? (I don't believe so)
Not really, that all looks reasonable. We normally try to detect memory addresses and remove them from output, not sure why this is not happening here:
Line 1183 in 3e93213
Could you please try to remove the dollar sign from the regex and see if that fixes things?
- Is there a way to tell
pdoc
to ignore / exclude an entire directory tree from documentation? So I don't have to add@private
to all of the docstrings individually.
Yes, see https://pdoc.dev/docs/pdoc.html#exclude-submodules-from-being-documented
from pdoc.
Happening now! :)
from pdoc.
Okay, so removing the $
as suggested seems to have resolved the id
being included. In fact removing the entire (?=>$)
lookahead seems to have no obvious negative effect. I wrote a bit of perl
(sed
should also work) to workaround this in the meantime:
#!/usr/bin/env perl
use strict;
use warnings;
use Tie::File;
@ARGV == 1
or usage("Incorrect number of arguments\n");
tie my @file, "Tie::File", $ARGV[0] or die $!;
for (@file) {
$_ =~ s/(<span[^<]+object<\/span>)\s*<span[^<]+at<\/span>\s*<span[^<]+0x[a-f0-9]+<\/span>/$1/gx;
}
Which runs like this:
find docs/ -type f -exec "${SCRIPT_DIR}/documentation-cleanup.pl" {} \;
from pdoc.
Thanks for the quick turnaround on the fix @mhils . Any idea on when you plan to make the next release?
from pdoc.
Thanks @mhils ! 🏅
from pdoc.
Related Issues (20)
- Fails without error in CI for certain import statements HOT 5
- Add `overflow-y: hidden;` to css style `mjx-container` HOT 1
- Error parsing annotation: 'type' object is not subscriptable HOT 2
- Error importing module: no signature found for builtin type `<class 'type I wrote'>` HOT 3
- Proposal: Document each member at the lowest-level submodule, with higher level modules pointing at submodule's primary declaration without duplicating them. HOT 2
- TypeError in /pdoc/extract.py HOT 2
- add pre-commit support HOT 1
- Support `start-after` option for `.. include::` directive HOT 1
- Way to add external Markdown file HOT 2
- A way to NOT inherit documentation for a specific class HOT 4
- Store generated html docs in a folder HOT 4
- `AssertionError: OSError: If there is an error while writing to the file.` Help would be appreciated HOT 1
- Can pdoc be further automated? HOT 3
- Including markdown is buggy and local images do not work HOT 4
- PyPi upload of 14.5 seems to have failed HOT 1
- Non-deterministic behavior with set literals HOT 2
- `TYPE_CHECKING` warnings when subclassing `textual` objects HOT 6
- Embedded local images not working when inside __init__ HOT 1
- Modify import behavior to support documentation for micropython HOT 1
- Hyperlink reference gets parsed as docstring reference
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.