-
Notifications
You must be signed in to change notification settings - Fork 133
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
mkdocs: Improve site part2 #860
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kenjis has a warning due to the use of dotenv
. It seems that the solution is not to use dotenv
or write a plugin for highlight or use class nohighlight
. Not sure how to fix it now. We continue with the same conditions.
WARN: Could not find the language 'dotenv', did you forget to load/include a language module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kenjis see:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems ```dotenv
is not supported by highlight.js.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly, the solution is to write a plugin(like what was done for curl) or reject an interpreter with class nohighlight
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about removing dotenv
in the markdown?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By removing dotenv
, language it will be set to ini
. This is not correct.
But we will use it temporarily. what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to ```text
.
ini
is not correct, because it is not a ini file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I sent PR #864
@datamweb How can I run mkdocs? $ mkdocs serve
ERROR - Config value 'theme': Unrecognised theme name: 'material'. The available installed themes are: mkdocs, readthedocs
ERROR - Config value 'markdown_extensions': Failed to load extension 'pymdownx.superfences'.
ModuleNotFoundError: No module named 'pymdownx'
Aborted with 2 configuration errors! |
Resolved. $ pip3 install mkdocs
$ pip3 install mkdocs-material
$ pip3 install mkdocs-git-revision-date-localized-plugin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
https://datamweb.github.io/shield
See https://github.com/timvink/mkdocs-git-revision-date-localized-plugin
You need
pip3 install mkdocs-git-revision-date-localized-plugin
.Checklist: