Conversation
Gnimuc
commented
Jun 26, 2020
|
|
||
| using JuliaZH | ||
| zh_CN() | ||
|
|
Member
Author
There was a problem hiding this comment.
Open
Roger-luo
reviewed
Jun 26, 2020
Roger-luo
left a comment
Member
There was a problem hiding this comment.
我们可以先merge了试试?反正不影响其它部分的功能。
| @@ -0,0 +1,85 @@ | |||
| using JSON, JSON3 | |||
Member
Author
There was a problem hiding this comment.
最开始想用JSON3的struct mapping,后来发现直接用Dict就行。只用JSON就可以,下面的dump_docstrings的实现调整一下,这是个demo,就懒得改了。
Member
Author
还有一些事情需要确认:
|
Gnimuc
commented
Jun 27, 2020
|
|
||
| [[JuliaZH]] | ||
| deps = ["JSON", "JSON3", "REPL"] | ||
| path = ".." |
Member
Author
There was a problem hiding this comment.
这里是为了在PR中触发docstrings的替换,并在Gitlab Pages中预览,实际上,commit Manifest.toml是非必要的。
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
在 #88 中已经描述的挺清楚了,可以把这个 PR 作为一个 demo,这里为了简化,采用了更直白的 JSON 文件作为文档翻译的载体。
本地化流程与 markdown 文档基本一致,唯一不同之处是,markdown 是利用 Transifex 的自动同步源功能,自动与 Julia repo 进行同步,而 docstrings 是本地提取的,需要手动用
tx push -s同步。