-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from ClearXs/1.1.x
1.1.x
- Loading branch information
Showing
11 changed files
with
315 additions
and
19 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
site_name: uno文档 | ||
repo_name: uno | ||
repo_url: https://github.com/ClearXs/uno | ||
site_author: J.x ([email protected]) | ||
copyright: Copyright © 2023 - 2024 ClearX | ||
|
||
nav: | ||
- README.md | ||
- core: core.md | ||
- data: data.md | ||
- rule: rule.md | ||
- web: web.md | ||
- test: test.md | ||
- gis: gis.md | ||
- auto: auto.md | ||
- bom: bom.md | ||
- plugins: plugins.md | ||
- components: | ||
- http: components/http.md | ||
- kafka: components/kafka.md | ||
- media: components/media.md | ||
- netty: components/netty.md | ||
- sequential: components/sequential.md | ||
- websocket: components/websocket.md | ||
- starter: starter.md | ||
|
||
theme: | ||
# https://squidfunk.github.io/mkdocs-material/creating-your-site/#configuration | ||
name: material | ||
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/ | ||
palette: | ||
- scheme: default | ||
toggle: | ||
icon: material/brightness-7 | ||
primary: indigo | ||
accent: light blue | ||
- scheme: slate | ||
toggle: | ||
icon: material/brightness-4 | ||
primary: indigo | ||
accent: grey | ||
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/ | ||
font: | ||
text: Nunito Sans | ||
code: Roboto Mono | ||
logo: favicon.png | ||
favicon: favicon.png | ||
features: | ||
# Navigation | ||
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/ | ||
- navigation.instant # some features may not work properly with XHR | ||
- navigation.tracking # the URL changes with the active anchor | ||
- navigation.instant.prefetch | ||
- navigation.tabs # first top-level folders are shown as tabs | ||
- navigation.tabs.sticky # tabs always show | ||
- navigation.prune | ||
- navigation.sections # second-level folders are expanded | ||
- navigation.expand # all folders are expanded | ||
- navigation.indexes # link an index page to its parent folder | ||
- navigation.top # show the back-to-top button | ||
- toc.integrate # show the table of contents in the navigation panel | ||
# Search | ||
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-search | ||
- search.suggest # display the likeliest completion for the last word | ||
- search.highlight # highlight all occurrences | ||
- search.share # show a share button of the current search | ||
# Header | ||
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-header/ | ||
- header.autohide # hide the post title when scroll down | ||
# Content | ||
# https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#adding-annotations | ||
- content.code.annotate # add comment to code blocks | ||
- content.tabs.link # link tabs with the same label | ||
- content.tooltips | ||
|
||
# | ||
# Plugins | ||
# | ||
plugins: | ||
- tags | ||
- search: # must be included at the first place | ||
lang: | ||
- en | ||
- zh | ||
separator: '[\s\u200b\-]' | ||
- offline | ||
# | ||
# Extensions | ||
# | ||
markdown_extensions: | ||
- abbr # add a small tooltip to elements | ||
- admonition # add call-out blocks | ||
- attr_list # allow to add HTML attributes and CSS classes | ||
- def_list # add description lists | ||
- footnotes # define inline footnotes | ||
- meta # attach arbitrary key-value pairs to a document | ||
- md_in_html # allow to write Markdown inside HTML elements | ||
- tables # create tables in Markdown | ||
- toc: # generate a table of contents from documents | ||
permalink: '#' # anchor | ||
toc_depth: 4 # header 1 to header 4 | ||
slugify: !!python/name:pymdownx.slugs.uslugify # convert title to html-compatible text | ||
- sane_lists # make better lists | ||
- smarty: # convert some special characters | ||
smart_angled_quotes: true | ||
- pymdownx.highlight: | ||
anchor_linenums: true | ||
# - pymdownx.betterem: # improve the detection of Markup to emphasize text in Markdown | ||
# smart_enable: all | ||
- pymdownx.caret # define superscript | ||
- pymdownx.mark # highlight text | ||
- pymdownx.tilde # define subscript | ||
- pymdownx.critic # track changes | ||
- pymdownx.details # add collapsible call-outs | ||
- pymdownx.emoji: # add inlines bundled and custom icons and emojis | ||
emoji_index: !!python/name:materialx.emoji.twemoji | ||
emoji_generator: !!python/name:materialx.emoji.to_svg | ||
- pymdownx.superfences # define code blocks and nesting of code | ||
- pymdownx.highlight: # highlight of code blocks | ||
linenums_style: pymdownx-inline | ||
# anchor_linenums: true # create anchor link on each line of code | ||
- pymdownx.inlinehilite # highlight inline code blocks | ||
- pymdownx.smartsymbols # convert some sequences of characters into their corresponding symbols | ||
- pymdownx.snippets: # embed content from arbitrary files into a document | ||
check_paths: true | ||
- pymdownx.tabbed: # group related content and code blocks under accessible tabs | ||
alternate_style: true | ||
- pymdownx.tasklist: # define list of task with checkbox | ||
custom_checkbox: true | ||
- pymdownx.escapeall: | ||
hardbreak: true # use \ to create new line | ||
nbsp: true # use \<space> to create | ||
# - pymdownx.keys # syntax ++ctrl+c++ does not look clear in MD document | ||
- pymdownx.progressbar | ||
extra: | ||
version: | ||
provider: mike | ||
disqus: "vuquangtrong-github-io" |
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,10 @@ | ||
{ | ||
"name": "turbo-docs", | ||
"version": "1.0.0", | ||
"description": "turbo documentation", | ||
"private": true, | ||
"scripts": { | ||
"dev": "mkdocs serve", | ||
"build": "mkdocs build -d public" | ||
} | ||
} |
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,3 @@ | ||
mkdocs | ||
mkdocs-material | ||
mkdocs-roamlinks-plugin |
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
2 changes: 0 additions & 2 deletions
2
uno-core/src/main/java/cc/allio/uno/core/type/ShortTypeOperator.java
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
46 changes: 46 additions & 0 deletions
46
uno-core/src/main/java/cc/allio/uno/core/util/template/mvel/CharsetOutputStream.java
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,46 @@ | ||
package cc.allio.uno.core.util.template.mvel; | ||
|
||
import org.mvel2.templates.util.TemplateOutputStream; | ||
|
||
import java.io.IOException; | ||
import java.io.OutputStreamWriter; | ||
|
||
/** | ||
* solution messy code | ||
* | ||
* @author j.x | ||
* @date 2024/5/29 19:30 | ||
* @since 1.1.9 | ||
*/ | ||
public class CharsetOutputStream implements TemplateOutputStream { | ||
|
||
OutputStreamWriter writer; | ||
|
||
public CharsetOutputStream(OutputStreamWriter writer) { | ||
this.writer = writer; | ||
} | ||
|
||
@Override | ||
public TemplateOutputStream append(char[] chars) { | ||
try { | ||
for (char c : chars) { | ||
writer.write(c); | ||
} | ||
return this; | ||
} catch (IOException ex) { | ||
throw new RuntimeException("failed to write to stream", ex); | ||
} | ||
} | ||
|
||
@Override | ||
public TemplateOutputStream append(CharSequence c) { | ||
try { | ||
for (int i = 0; i < c.length(); ++i) { | ||
this.writer.write(c.charAt(i)); | ||
} | ||
return this; | ||
} catch (IOException ex) { | ||
throw new RuntimeException("failed to write to stream", ex); | ||
} | ||
} | ||
} |
Oops, something went wrong.