docs: README #23
							
								
								
									
										66
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										66
									
								
								README.md
									
									
									
									
									
								
							|  | @ -1,8 +1,12 @@ | ||||||
| # JOJ3-config-generator | # JOJ3-forge | ||||||
|  | |||||||
| 
 | 
 | ||||||
| [](https://app.codacy.com/gh/joint-online-judge/JOJ3-config-generator/dashboard) | [](https://app.codacy.com/gh/joint-online-judge/JOJ3-config-generator/dashboard) | ||||||
| [](https://app.codacy.com/gh/joint-online-judge/JOJ3-config-generator/dashboard) | [](https://app.codacy.com/gh/joint-online-judge/JOJ3-config-generator/dashboard) | ||||||
| 
 | 
 | ||||||
|  | ## Introduction | ||||||
|  | 
 | ||||||
|  | JOJ3-forge is a CLI tool that generates configuration files for [JOJ3](https://github.com/joint-online-judge/JOJ3). | ||||||
|  | 
 | ||||||
| ## Getting Started | ## Getting Started | ||||||
| 
 | 
 | ||||||
| ### For users | ### For users | ||||||
|  | @ -10,7 +14,7 @@ | ||||||
| 1. Install [Python>=3.9](https://www.python.org/) and [pip](https://pip.pypa.io/) | 1. Install [Python>=3.9](https://www.python.org/) and [pip](https://pip.pypa.io/) | ||||||
| 2. (Optional) Create a virtual environment, check [here](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/). | 2. (Optional) Create a virtual environment, check [here](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/). | ||||||
| 3. Install/Upgrade the project by `pip install --force-reinstall --upgrade git+ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-config-generator.git` | 3. Install/Upgrade the project by `pip install --force-reinstall --upgrade git+ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-config-generator.git` | ||||||
| 4. Run it by `joj3-config-generator --help` | 4. Run it by `joj3-forge --help` | ||||||
| 
 | 
 | ||||||
| ### For developers | ### For developers | ||||||
| 
 | 
 | ||||||
|  | @ -23,22 +27,62 @@ | ||||||
| 
 | 
 | ||||||
| ## How to use? | ## How to use? | ||||||
| 
 | 
 | ||||||
| - `joj3-config-generator convert` function is now supported, currently support one argument as input, it indicates the **convert root** | Run `joj3-forge --help` to get basic CLI usage information. | ||||||
|   - default value on the server can be given as `/home/tt/.config/joj` | 
 | ||||||
|  | ### `convert` | ||||||
|  | 
 | ||||||
|  | - `joj3-forge convert` function is now supported, currently support one argument as input, it indicates the **convert root* | ||||||
|  |   - default value on the server should be given as `/home/tt/.config/joj` | ||||||
|   - **NOTE:** the user should ensure that the ideal `repo.toml` file is in the sub-directory of the **convert root** |   - **NOTE:** the user should ensure that the ideal `repo.toml` file is in the sub-directory of the **convert root** | ||||||
|   - the intended immutable files should be placed at a sub-directory named `immutable_files` at same position as the `repo.toml` file |   - the intended immutable files should be placed at a sub-directory named `immutable_files` at same position as the `repo.toml` file | ||||||
|  |   - a sample directory tree as follows | ||||||
| 
 | 
 | ||||||
| ```shell | ```shell | ||||||
| $ tree . | $ tree -a | ||||||
| . | home | ||||||
| |- immutable_files | `-- tt | ||||||
| | |-- push.yaml |     |-- .cache | ||||||
| | |-- release.yaml |     `-- .config | ||||||
| |-- repo.toml |         `-- joj | ||||||
|  |             |-- hidden | ||||||
|  |             |   |-- ex1 | ||||||
|  |             |   |   |-- case1.in | ||||||
|  |             |   |   |-- case1.out | ||||||
|  |             |   |   |-- conf.json | ||||||
|  |             |   |   `-- conf.toml | ||||||
|  |             |   |-- immutable_files | ||||||
|  |             |   |   |-- push.yaml | ||||||
|  |             |   |   `-- release.yaml | ||||||
|  |             |   |-- p1 | ||||||
|  |             |   |   |-- case1.in | ||||||
|  |             |   |   |-- case1.out | ||||||
|  |             |   |   |-- conf.json | ||||||
|  |             |   |   `-- conf.toml | ||||||
|  |             |   `-- repo.toml | ||||||
|  |             |-- students | ||||||
|  |             |   |-- ex1 | ||||||
|  |             |   |   |-- case1.in | ||||||
|  |             |   |   |-- case1.out | ||||||
|  |             |   |   |-- conf.json | ||||||
|  |             |   |   `-- conf.toml | ||||||
|  |             |   |-- immutable_files | ||||||
|  |             |   |   |-- push.yaml | ||||||
|  |             |   |   `-- release.yaml | ||||||
|  |             |   |-- p1 | ||||||
|  |             |   |   |-- case1.in | ||||||
|  |             |   |   |-- case1.out | ||||||
|  |             |   |   |-- conf.json | ||||||
|  |             |   |   `-- conf.toml | ||||||
|  |             |   `-- repo.toml | ||||||
|  |             |-- students.csv | ||||||
|  |             `-- tools | ||||||
|  |                 |-- .clang-tidy | ||||||
|  |                 |-- compile | ||||||
|  |                 `-- helper.sh | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| - sample command on the server | - sample command on the server | ||||||
| 
 | 
 | ||||||
| ```shell | ```shell | ||||||
| joj3-config-generator convert /home/tt/.config/joj | joj3-forge convert /home/tt/.config/joj | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	
We should change this name after changing repo name.