-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add mddocs/user_guide/installation.md
- Loading branch information
1 parent
51ca41e
commit a2de909
Showing
15 changed files
with
205 additions
and
126 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,61 @@ | ||
|
||
|
||
## Person | ||
|
||
```python | ||
mycode.Person(name, age=18) | ||
``` | ||
|
||
This is a class of Person. | ||
|
||
**Arguments** | ||
|
||
- **name**: `str`. The name of the Person instance. | ||
- **age**: `int`. Defaults to 18. The age of the Person instance. | ||
|
||
**Examples** | ||
|
||
You could create a Person instance in this way: | ||
```python | ||
batman = Person('Bruce Wayne') | ||
elder = Person('you-know-who`, 99) | ||
``` | ||
|
||
--- | ||
|
||
|
||
|
||
## speak | ||
|
||
```python | ||
mycode.Person.speak(message) | ||
``` | ||
|
||
Speak something. | ||
|
||
**Argument:** | ||
|
||
- **message**: `str`. Something to speak. | ||
|
||
**Return:** | ||
|
||
`None`. | ||
|
||
--- | ||
|
||
|
||
|
||
## show_info | ||
|
||
```python | ||
mycode.show_info(person) | ||
``` | ||
|
||
Show the personal information of the given person. | ||
|
||
**Argument** | ||
|
||
- **person**: `Person`. The person. | ||
|
||
--- | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
code_dir: . | ||
build_dir: api | ||
pages: | ||
- page: API_of_mycode.md | ||
tags: | ||
- tag: | ||
classes: | ||
- mycode.Person | ||
functions: | ||
- mycode.Person.speak | ||
- mycode.show_info |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Installation | ||
|
||
Download Sophon from GitHub: | ||
|
||
```bash | ||
$ git clone git@github.com:monitor1379/sophon.git | ||
``` | ||
|
||
Install Sophon using `pip`: | ||
|
||
```bash | ||
$ cd sophon | ||
$ pip install . | ||
``` |
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
Oops, something went wrong.