-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from bybatkhuu:develop
Update documentation script
- Loading branch information
Showing
52 changed files
with
322 additions
and
101 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
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,26 @@ | ||
include requirements*.txt | ||
exclude .github/** | ||
exclude .vscode/** | ||
exclude data/** | ||
exclude docs/** | ||
exclude examples/** | ||
exclude models/** | ||
exclude notebooks/** | ||
exclude results/** | ||
exclude scripts/** | ||
exclude templates/** | ||
exclude tests/** | ||
exclude __init__.py | ||
exclude .editorconfig | ||
exclude .env.example | ||
exclude .gitignore | ||
exclude .gitsubmodules | ||
exclude .markdownlint.json | ||
exclude .DS_Store | ||
exclude CHANGELOG.md | ||
exclude environment.yml | ||
exclude Makefile | ||
exclude MANIFEST.in | ||
exclude mkdocs.yml | ||
exclude pytest.ini | ||
exclude Thumbs.db |
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,35 @@ | ||
.PHONY: help clean get-version test bump-version build docs example all | ||
|
||
help: | ||
@echo "make help -- show this help" | ||
@echo "make clean -- clean leftovers and build files" | ||
@echo "make get-version -- get current version" | ||
@echo "make test -- run tests" | ||
@echo "make bump-version -- bump version" | ||
@echo "make build -- build python package" | ||
@echo "make docs -- build documentation" | ||
@echo "make example -- run example script" | ||
@echo "make all -- clean, get-version, test, build" | ||
|
||
clean: | ||
./scripts/clean.sh $(MAKEFLAGS) | ||
|
||
get-version: | ||
./scripts/get-version.sh | ||
|
||
test: | ||
./scripts/test.sh $(MAKEFLAGS) | ||
|
||
bump-version: | ||
./scripts/bump-version.sh $(MAKEFLAGS) | ||
|
||
build: | ||
./scripts/build.sh $(MAKEFLAGS) | ||
|
||
docs: | ||
./scripts/docs.sh $(MAKEFLAGS) | ||
|
||
example: | ||
python ./examples/simple/main.py | ||
|
||
all: clean get-version test build |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
try: | ||
from .simple_model import * | ||
from .src.simple_model import * | ||
except ImportError: | ||
from simple_model import * | ||
from src.simple_model import * |
File renamed without changes.
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,10 @@ | ||
# About | ||
|
||
This section contains non-technical information about this project. | ||
|
||
## Pages | ||
|
||
- [FAQ](./faq.md) | ||
- [Authors](./authors.md) | ||
- [Contact](./contact.md) | ||
- [License](./license.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Authors | ||
|
||
This project is developed by the following authors: | ||
|
||
- Author 1 |
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 was deleted.
Oops, something went wrong.
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,3 @@ | ||
# ModelConfigPM | ||
|
||
::: src.simple_model.ModelConfigPM |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# API Documentation | ||
|
||
This section provides information on the API documentation for this project. | ||
|
||
## Pages | ||
|
||
- [SimpleModel](./SimpleModel.md) | ||
- [ModelConfigPM](./ModelConfigPM.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,3 @@ | ||
# SimpleModel | ||
|
||
::: src.simple_model.SimpleModel |
File renamed without changes.
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,22 @@ | ||
# docs.sh | ||
|
||
This script is used to manage the documentation for the project, providing options to either serve a local documentation server or build the documentation as static HTML files. | ||
|
||
The script performs the following operations: | ||
|
||
- **Loading base script**: Includes the `base.sh` script to gain access to its utility functions and environment variables. | ||
- **Serving documentation**: If no flags are set, runs `mkdocs serve` to start a local documentation server for live preview. | ||
- **Building documentation**: If the `-b` or `--build` flag is set, the script builds the documentation as static HTML files using `mkdocs build`, placing the output in the `site` directory. | ||
|
||
**Usage**: | ||
|
||
To execute the documentation script, use the following command in the terminal: | ||
|
||
```sh | ||
./docs.sh [-b|--build] | ||
``` | ||
|
||
**Examples**: | ||
|
||
- To serve the documentation: `./docs.sh` | ||
- To build the documentation: `./docs.sh -b` |
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.