-
Notifications
You must be signed in to change notification settings - Fork 405
create doc of century #3085
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
create doc of century #3085
Conversation
zclllyybb
left a comment
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.
- 参考下其它文档的格式
- 添加sidebar
- 需要中文+英文。dev+4.x
|
在 pr content里link过来对应的 code PR |
|
code pr : apache/doris#57893 |
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.
中文这里整体再写下
|
|
||
| | Parameter | Description | | ||
| | -- | -- | | ||
| | `<x>` | It returns the century of the corresponding date and supports error type handling. | |
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.
这里应该是参数,而不是返回值
|
|
||
| The century corresponding to the given date | ||
|
|
||
| ## Special Cases |
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.
参考下其他函数的文档格式哈,这块应该是合到上面的 Return Value 里面的
|
还需要4.x 版本的文档( |
sidebars.ts
Outdated
| 'sql-manual/sql-functions/scalar-functions/numeric-functions/cbrt', | ||
| 'sql-manual/sql-functions/scalar-functions/numeric-functions/ceil', | ||
| 'sql-manual/sql-functions/scalar-functions/numeric-functions/conv', | ||
| 'sql-manual/sql-functions/scalar-functions/numeric-functions/century', |
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.
按字典序排列
|
|
||
| ## 语法 | ||
| ```sql | ||
| CENTURY(<date_or_time_expr>) [AS <alias>] |
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.
no need to add [AS <alias>]. keep structure same between same docs in different branch
| CENTURY(<date_or_time_expr>) [AS <alias>] | ||
| ``` | ||
|
|
||
| ##参数 |
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.
need a space here to make it a title
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.
dont add 3.x docs. you should add 4 docs: 2 langs in dev, 2 langs in 4.x
| @@ -0,0 +1,59 @@ | |||
| --- | |||
| { | |||
| "title": "世纪 (century)", | |||
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.
dont need Chinese translation here.
…al/sql-functions/scalar-functions/date-time-functions/century.md
zclllyybb
left a comment
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.
你的不同几个文档格式没有对齐,请处理成相同的格式。
robll-v1
left a comment
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.
fix some format and fix the sidebars,This‘s my problem.
zclllyybb
left a comment
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
Versions
Languages
Docs Checklist