Skip to content

docs: adding translation stats to docs #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RobPasMue
Copy link
Contributor

Adding a dependency to this package with plotly for providing nice stats graphs.

See rendered docs for demonstration but here is a snapshot

image

@RobPasMue
Copy link
Contributor Author

This PR is related to #493 -- second step declared in #493 (comment)

@RobPasMue
Copy link
Contributor Author

The solution involves creating a Sphinx extension that reads in the JSON data generated, and creates a Plotly graph (with plotlyjs) and embeds it into the docs. Full statistics reports for each module are shown when hovering over the bar (as a function of the locale and module). This uses the hover tooltip to render properly.

Hope you like it! Looking forward to feedback related to it @lwasser!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant