-
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.
- Loading branch information
Showing
5 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,21 @@ | ||
# Welcome to MkDocs | ||
|
||
For full documentation visit [mkdocs.org](https://www.mkdocs.org). | ||
|
||
## Commands | ||
|
||
* `mkdocs new [dir-name]` - Create a new project. | ||
* `mkdocs serve` - Start the live-reloading docs server. | ||
* `mkdocs build` - Build the documentation site. | ||
* `mkdocs -h` - Print help message and exit. | ||
|
||
## Project layout | ||
|
||
mkdocs.yml # The configuration file. | ||
docs/ | ||
index.md # The documentation homepage. | ||
... # Other markdown pages, images and other files. | ||
|
||
# Project Documentation | ||
|
||
::: package.functions |
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,34 @@ | ||
site_name: My Docs | ||
|
||
theme: | ||
name: tech_docs_template | ||
features: | ||
- navigation.tabs | ||
- navigation.tabs.sticky | ||
- navigation.indexes | ||
|
||
plugins: | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
options: | ||
# All options can be found at: https://mkdocstrings.github.io/python/usage/#globallocal-options | ||
docstring_style: numpy | ||
show_signature_annotations: True | ||
show_source: False | ||
show_root_heading: True | ||
merge_init_into_class: True | ||
- material/search | ||
- git-revision-date-localized | ||
- mkdocs-jupyter: | ||
include_source: True | ||
include: ["*.ipynb"] # Default: ["*.py", "*.ipynb"] | ||
ignore: ["*.py"] | ||
remove_tag_config: | ||
remove_input_tags: | ||
- hide_code | ||
remove_all_outputs_tags: | ||
- hide_out | ||
|
||
nav: | ||
- test: index.md |
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,52 @@ | ||
import numpy as np | ||
|
||
def printing_own(text:str = 'empty'): | ||
""" text | ||
This is a function to print a string | ||
Parameters | ||
---------- | ||
text - string | ||
A string to print | ||
""" | ||
print(text) | ||
|
||
def create_array(): | ||
""" | ||
function to create numpy array | ||
""" | ||
x = np.zeros((1,3)) | ||
return x | ||
|
||
def testing_docstring(): | ||
"""Execute a command via subprocess, capturing stdout and stderr. | ||
This function creates a subprocess with the provided command list, then | ||
communicates with it to retrieve the stdout and stderr. After the | ||
command execution, it checks the process's return code to determine success | ||
or failure. A zero return code indicates success. | ||
Parameters | ||
---------- | ||
command | ||
A list of command elements representing the system | ||
command to be executed. For example, ['ls', '-l', '/home/user']. | ||
Returns | ||
------- | ||
bool | ||
True if the command execution is successful (return code 0), | ||
otherwise False. | ||
Raises | ||
------ | ||
subprocess.TimeoutExpired | ||
If the process does not complete within the default timeout. | ||
""" | ||
print('testing 2') | ||
|
||
if __name__ == "__main__": | ||
printing_own('testing') | ||
x = create_array() | ||
print(x) | ||
testing_docstring() |
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,5 @@ | ||
"""Setup script for creating package from code.""" | ||
from setuptools import setup | ||
|
||
if __name__ == '__main__': | ||
setup() |