NetBox's rack elevation stylesheet uses CSS custom properties, which
WeasyPrint and cairosvg cannot resolve, so empty slots fell back to a
black fill. Replace the embedded stylesheet with fixed light-theme
colors, add equivalent presentation attributes as a fallback and drop
the hover-only "Add Device" labels.
Bump version to 0.3.1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New export option "Gerätebilder anzeigen": the SVG is rendered with
include_images and the /media/ image links are replaced by embedded
data URIs, since Word, WeasyPrint and SVG-as-image cannot load
login-protected files. The Pillow PNG renderer draws the front/rear
images too, with the device name on a dark label.
- Custom rack_svg_renderer adapters receive images=..., older adapters
without that parameter keep working.
- The HTML preview now opens in a new browser tab.
Bump version to 0.3.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RackElevationSVG falls back to RACK_ELEVATION_DEFAULT_* config
parameters, which raise AttributeError on the target NetBox version.
Pass the dimensions explicitly instead.
Add a Pillow-based PNG rack renderer (role colors, unit legend,
full-depth devices shown dimmed from the other side). It is used for
Word when cairosvg is unavailable and replaces a failed SVG in all
formats.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rack SVG failures were only logged, leaving racks silently without an
image. The error is now written into the document next to the rack so
the cause (e.g. missing rack_elevation.css in STATIC_ROOT) is visible.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Plugin for NetBox 4.6.8–4.6.99 that exports customer documentation
(PDF, Word, HTML preview) for a site, location, tenant or tenant group.
Technicians pick sections, device roles and columns before exporting.
Branding profiles (colors, font, logo, footer, Word template incl. .dotx,
table style, extra CSS) are configurable via PLUGINS_CONFIG and selectable
per export.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>