• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

xapi-project / xen-api / 13243522502
78%
master: 80%

Build:
Build:
LAST BUILD BRANCH: dev/pau/majmin
DEFAULT BRANCH: master
Ran 10 Feb 2025 02:47PM UTC
Jobs 1
Files 37
Run time 10min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Feb 2025 02:46PM UTC coverage: 78.248%. Remained the same
13243522502

push

github

web-flow
Hugo docs: Support for dark themes: Invert images to match the theme (#6284)

When I enabled Hugo theme selection (including dark themes) for the new
Xapi docs,
we noted that images weren't properly adapted for the dark themes and
that we could
fix these later. This PR fixes those minor problems when a dark theme is
selected:

- The docs use SVG images that draw black on transparent background,
  making them black-on-black in the dark themes.
- Other black-on-white drawings are inverted to white-on-black to match
the dark theme as well. This is also more friendly to dark theme users.
- The text in the tables in the XenAPI class and releases pages is not
legible.

Addressed by:
1. The issues with transparent SVGs when the page body is fixed by
inverting the images.
It turns the the black foreground into white foreground on darker
backgrounds.
2. Fix the default Zebra-styled tables now (manual zebra-styling for is
no longer needed,
removing the manual styling fixes makes the tables improves them in
light and dark modes)
3. Tables for the XenAPI class reference use hard-coded shades of grey
but do not set the text colour.
Dark themes, change it from black to white but then the text is not
visible against bright gray.
As it currently does not work to use the grey shades from the theme in
this case,
hard-code the text color to black. This fixes the contrast to keep the
text visible.

3457 of 4418 relevant lines covered (78.25%)

0.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 13243522502.1 10 Feb 2025 02:47PM UTC 37
78.25
GitHub Action Run
Source Files on build 13243522502
  • Tree
  • List 37
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13243522502
  • 510a0a3d on github
  • Prev Build on gh-readonly-queue/master/pr-6272-cf38f99642c8370888306ee0f778d4aea4dbc48b (#13242295386)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc