-
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
19bbfbb
use new style for note and warning
datamweb fa091c8
fix note format
datamweb d148d87
use new style for note/warning format
datamweb cecc5ff
update dark mode css for note/warning
datamweb ddfc52b
use LF
datamweb e5217b5
use curl for beter code show
datamweb ae1449e
update highlightjs to 11.8.0
datamweb 1c68542
show Last update/Created date
datamweb 292e0a3
fix: remiove space codeblock
datamweb 48d0118
use pip3 instance pip
datamweb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/*! `curl` grammar compiled for Highlight.js 11.3.1 */ | ||
(()=>{var e=(()=>{"use strict";return e=>{const n={className:"string",begin:/"/, | ||
end:/"/,contains:[e.BACKSLASH_ESCAPE,{className:"variable",begin:/\$\(/, | ||
end:/\)/,contains:[e.BACKSLASH_ESCAPE]}],relevance:0},a={className:"number", | ||
variants:[{begin:e.C_NUMBER_RE}],relevance:0};return{name:"curl", | ||
aliases:["curl"],keywords:"curl",case_insensitive:!0,contains:[{ | ||
className:"literal",begin:/(--request|-X)\s/,contains:[{className:"symbol", | ||
begin:/(get|post|delete|options|head|put|patch|trace|connect)/,end:/\s/, | ||
returnEnd:!0}],returnEnd:!0,relevance:10},{className:"literal",begin:/--/, | ||
end:/[\s"]/,returnEnd:!0,relevance:0},{className:"literal",begin:/-\w/, | ||
end:/[\s"]/,returnEnd:!0,relevance:0},n,{className:"string",begin:/\\"/, | ||
relevance:0},{className:"string",begin:/'/,end:/'/,relevance:0 | ||
},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,{match:/(\/[a-z._-]+)+/}]}}})() | ||
;hljs.registerLanguage("curl",e)})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 usedotenv
or write a plugin for highlight or use classnohighlight
. 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 toini
. 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