Skip to content
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

Proof-of-concept for reading time #643

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

Proof-of-concept for reading time #643

wants to merge 3 commits into from

Conversation

tomschr
Copy link
Collaborator

@tomschr tomschr commented Jan 9, 2025

As discussed in our doc tools meeting on Jan 9th 2025, reading time should be calculated with XSLT (and not with JS due to performance issues during loading).

In the root directory, call

$ xsltproc contrib/reading-time/reading-time.xsl contrib/reading-time/sample-1.xml
<?xml version="1.0"?>
<result xmlns:d="http://docbook.org/ns/docbook">
  <word-count>22</word-count>
  <reading-time unit="min">1</reading-time>
</result>

@tomschr tomschr added the cat-enhancement Enhancements label Jan 9, 2025
@tomschr tomschr self-assigned this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat-enhancement Enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant