Skip to content

Proof-of-concept for reading time#643

Draft
tomschr wants to merge 3 commits intomainfrom
poc-reading-time
Draft

Proof-of-concept for reading time#643
tomschr wants to merge 3 commits intomainfrom
poc-reading-time

Conversation

@tomschr
Copy link
Copy Markdown
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