F.A.Q.
Communication¶
This project mainly uses Issues for communication.
Ww will open an English telegram channel soon. Please stay tuned! Meanwhile, if you wish to join the discussion in Chinese, you can join @OIwiki.
Contributing¶
Please refer to the How to Contribute page.
F.A.Q.¶
Where is the table of contents¶
The table of contents is in the mkdocs.yml under the project root directory.
How to modify the content of a topic¶
In top right corner of the page, there is an edit button edit. Click it and confirm you have read how to contribute, and it will jump to the corresponding file on GitHub.
Or you can read the table of contents in (mkdocs.yml) to find the file location.
How to add a topic¶
- You can open an issue, indicating what you want to add.
- You can open a pull request, add a new topic in the table of contents in (mkdocs.yml), and Create an empty
.md
file in the corresponding location under the docs folder.
Warning
When editing an .md file, do not write a title at the beginning.
How to write a commit message¶
We recommend using commitizen/cz-cli to standardize the commit message (not mandatory).
The cloned project on client is too slow¶
If you have installed git bash
, you can add a few restrictions to reduce downloads:
git clone https://github.com/OI-wiki/i18n.git --depth=1 -b master
Reference: https://blog.csdn.net/FreeApe/article/details/46845555
I have not installed Python 3¶
You can visit Python official website for more information.
The pip version is too low¶
After entering cmd/shell,
python -m pip install --upgrade pip
I failed to install dependencies¶
You might want to check the following setup: network? permissions? error messages?
I have cloned the project, why can't it be deployed¶
Check if the dependencies are installed?
I cloned the repo a long time ago, how to update to the latest version¶
Reference: https://help.github.com/articles/syncing-a-fork/ 。
How to update if the old dependencies are installed¶
pip install -U -r requirements.txt
Why is my markdown format messed up¶
You can refer to MkDocs instructions.
We are currently using remark-lint to automate the format correction. There may be some problems with the configuration. You are welcome to suggest the edits.
GitHub does not display my mathematical formulas?¶
Yes, the GitHub preview does not show mathematical formulas. But please be assured that mkdocs supports them and can be used normally. All syntax supported by MathJax can be used.
Why is my math formula garbled¶
If it is an inline formula (using $$
), the currently known problem is that you need to leave blank spaces on both sides of the $$
, and $$
should be put individually on one line (and DO NOT add spaces in the beginning). The format is as follows:
// Blank line
$$
a_i
$$
// Blank line
Why is my formula not displayed properly in the sidebar?¶
Yes, this is a bug in python-markdown and would probably be fixed in the near future.
If you want to avoid double formulas in the table of contents now, you can refer to https://github.com/OI-wiki/OI-wiki/blame/master/docs/string/sam.md#L82
### ending position <script type="math/tex">endpos</script>
In the sidebar it will become:
ending position endpos
Note: Please try to avoid introducing MathJax formulas in the sidebar now.
How to individually declare copyright information for a page¶
Please refer to the usage of Metadata. Just add a line at the beginning of the page.
For example:
copyright: SATA
Note: The default is ‘CC BY-SA 4.0 and SATA’.
How to turn off word count for a page (now turned off default)¶
Please refer to the usage of Metadata. Just add a line at the beginning of the page.
For example:
pagetime:
Why does the author page does not have my name¶
This is because the GitHub API cannot track statistics after the file directory changes. To solve this problem, We are manually maintaining a list of authors in the file header. If you have contributed to a part of a page, but not recorded by the author of the page, you can add your GitHub ID to the author
field of the file header in the format of author: Ir1d, cjsoft
. The two adjacent IDs are separated by ,·
(comma and space).
Note: The ID recorded here is the address corresponding to the GitHub Profile (that is, the url after clicking the upper right corner profile on the GitHub)
How to use redirect file¶
The _redirects
file is used to generate the configuration of netlify and file for redirection.
Each line represents a redirection rule, denoting the URL of the start and end of the jump (excluding the domain name):
/path/to/src /path/to/desc
Note: All redirections are 301, and only need to be modified when the URL in the modification directory causes a dead link.
build本页面最近更新:,更新历史
edit发现错误?想一起完善? 在 GitHub 上编辑此页!
people本页面贡献者:OI-wiki
copyright本页面的全部内容在 CC BY-SA 4.0 和 SATA 协议之条款下提供,附加条款亦可能应用