Skip to content

guides webhdfs: fix Unknown language: "markup" error #510

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

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

Watson1978
Copy link
Contributor

When I built the documents using HonKit, I met the following error message:

$ npx honkit build
(node:128004) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
info: 7 plugins are installed
info: 7 explicitly listed
info: plugin "addcssjs" is loaded
info: plugin "hints" is loaded
info: plugin "highlight" is loaded
info: plugin "search" is loaded
info: plugin "lunr" is loaded
info: plugin "fontsettings" is loaded
info: plugin "theme-default" is loaded
info: found 191 pages
info: found 237 asset files
warn: "this.generator" property is deprecated, use "this.output.name" instead
warn: "navigation" property is deprecated
warn: "book" property is deprecated, use "this" directly instead
warn: "options" property is deprecated, use config.get(key) instead
Could not find the language 'markup', did you forget to load/include a language module?
Error: Unknown language: "markup"
    at _highlight (/home/watson/src/fluentd-docs-gitbook/node_modules/highlight.js/lib/core.js:2107:13)
    at Object.highlight (/home/watson/src/fluentd-docs-gitbook/node_modules/highlight.js/lib/core.js:1720:9)
    at highlight (/home/watson/src/fluentd-docs-gitbook/node_modules/@honkit/honkit-plugin-highlight/index.js:36:21)
    at Object.code (/home/watson/src/fluentd-docs-gitbook/node_modules/@honkit/honkit-plugin-highlight/index.js:60:20)
    at TemplateBlock.applyBlock (/home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/models/templateBlock.js:163:29)
    at /home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/output/getModifiers.js:47:48
    at /home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/output/modifiers/highlightCode.js:49:39
    at /home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/output/modifiers/editHTMLElement.js:14:16
    at /home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/utils/promise.js:40:16
    at /home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/utils/promise.js:25:20
info: >> generation finished with success in 19.8s !

Seem that an error occurred by specified unknown markup.
So this patch will fix this error.

When I built the documents using HonKit, I met the following error message:

```
$ npx honkit build
(node:128004) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
info: 7 plugins are installed
info: 7 explicitly listed
info: plugin "addcssjs" is loaded
info: plugin "hints" is loaded
info: plugin "highlight" is loaded
info: plugin "search" is loaded
info: plugin "lunr" is loaded
info: plugin "fontsettings" is loaded
info: plugin "theme-default" is loaded
info: found 191 pages
info: found 237 asset files
warn: "this.generator" property is deprecated, use "this.output.name" instead
warn: "navigation" property is deprecated
warn: "book" property is deprecated, use "this" directly instead
warn: "options" property is deprecated, use config.get(key) instead
Could not find the language 'markup', did you forget to load/include a language module?
Error: Unknown language: "markup"
    at _highlight (/home/watson/src/fluentd-docs-gitbook/node_modules/highlight.js/lib/core.js:2107:13)
    at Object.highlight (/home/watson/src/fluentd-docs-gitbook/node_modules/highlight.js/lib/core.js:1720:9)
    at highlight (/home/watson/src/fluentd-docs-gitbook/node_modules/@honkit/honkit-plugin-highlight/index.js:36:21)
    at Object.code (/home/watson/src/fluentd-docs-gitbook/node_modules/@honkit/honkit-plugin-highlight/index.js:60:20)
    at TemplateBlock.applyBlock (/home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/models/templateBlock.js:163:29)
    at /home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/output/getModifiers.js:47:48
    at /home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/output/modifiers/highlightCode.js:49:39
    at /home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/output/modifiers/editHTMLElement.js:14:16
    at /home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/utils/promise.js:40:16
    at /home/watson/src/fluentd-docs-gitbook/node_modules/honkit/lib/utils/promise.js:25:20
info: >> generation finished with success in 19.8s !
```

Seem that an error occurred by specified unknown `markup`.
So this patch will fix this error.

Signed-off-by: Watson <watson1978@gmail.com>
Copy link
Contributor

@daipom daipom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@daipom daipom merged commit 49a2642 into fluent:1.0 Aug 7, 2024
1 check passed
@Watson1978 Watson1978 deleted the fix-markup branch August 7, 2024 07:39
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.

2 participants