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

mongodb / stitch-android-sdk / baas_android_sdk_2e7fa83b8c524a0694be1e5359feebe27747a638 / 9
67%
master: 67%

Build:
DEFAULT BRANCH: master
Ran 05 Mar 2019 04:19PM UTC
Files 1
Run time 5min
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

05 Mar 2019 04:18PM UTC coverage: 100.0% (+28.6%) from 71.429%
baas_android_sdk_2e7fa83b8c524a0694be1e5359feebe27747a638.9

push

evergreen

DOCSP-4552 Add code example pasting doclet (#106)

Adds a doclet (javadoc 'plugin') that generates a manifest of which
external code examples are available for the entities.

Adds a python script using BeautifulSoup to edit the resulting HTML
output of javadoc to inject the code examples.

Adds a couple code examples for starters (borrowed from the main docs
site). To come: testing code examples and just more code examples,
plus styling of the overall javadoc output.

Finally, it adds a generate_docs.sh script, similar to JS SDK.

A note on this approach:

From what I can tell, it is not possible to leverage the existing
javadoc HTML doclet implementation while modifying it as HtmlDoclet
is private to the JDK.

It's also not possible to modify the entities passed to my doclet,
e.g. to inject new code example tags. The entities are completely
immutable when passed to my doclet.

Failing all that, I thought maybe I could override the overall
DocletEnvironment context to return my own brand new tree of entities
with tags injected -- i.e. use the decorator pattern to pass a custom
DocletEnvironment implementation that wraps their implementation
to the StandardDoclet. Unfortunately, the JDK downcasts to their
concrete DocEnvImpl type somewhere deep in the code, which makes
that approach also impossible.

So, here we are at programmatically editing the HTML after the javadoc
step has completed.

13 of 13 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job baas_android_sdk_2e7fa83b8c524a0694be1e5359feebe27747a638.9
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 0
  • 2e7fa83b on github
  • Prev Job for on master (#baas_android_sdk_29ffd4d4484093c28b00388f55b4c9b3f57b48b9_d099bc427fbfaee64f4180f7661f1062.4)
  • Next Job for on master (#baas_android_sdk_af2b422566f11157f8784fa7fee7036cdc063eb9_d099bc427fbfaee64f4180f7661f1062.17)
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