-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 changed files
with
1,118 additions
and
0 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,50 @@ | ||
default: help | ||
|
||
.PHONY: help | ||
help: | ||
@echo "\nUsage: make [target] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" | ||
@echo "Available targets:\n" | ||
|
||
@echo "Environment Management --------------------------------------------------------" | ||
@echo " \033[1m\033[35mclean-venv\033[0m \033[37m(cv)\033[0m: \033[36mRemove virtual environment.\033[0m" | ||
@echo " \033[1m\033[35minstall\033[0m \033[37m(i)\033[0m: \033[36mInstall dependencies and {{ cookiecutter.project_slug }}.\033[0m" | ||
@echo " \033[1m\033[35mvenv\033[0m \033[37m(v)\033[0m: \033[36mCreate virtual environment.\033[0m\n" | ||
|
||
@echo "Documentation -----------------------------------------------------------------" | ||
@echo " \033[1m\033[35mdocs\033[0m \033[37m(d)\033[0m: \033[36mGenerate project documentation.\033[0m\n" | ||
|
||
.PHONY: clean-venv | ||
clean-venv: | ||
@echo "\nRemoving the virtual environment ++++++++++++++++++++++++++++++++++++++++++++++\n" | ||
@rm -rf .venv | ||
|
||
.PHONY: cv | ||
cv: clean-venv | ||
|
||
.PHONY: docs | ||
docs: | ||
@echo "\nGenerating project documentation ++++++++++++++++++++++++++++++++++++++++++++++\n" | ||
@mkdocs build | ||
|
||
.PHONY: d | ||
d: docs | ||
|
||
.PHONY: install | ||
install: | ||
@echo "\nInstalling dependencies and with this package +++++++++++++++++++++++++++++++++\n" | ||
@poetry install --no-root | ||
|
||
.PHONY: i | ||
i: install | ||
|
||
.PHONY: venv | ||
venv: | ||
@echo "\nCreating a virtual environment ++++++++++++++++++++++++++++++++++++++++++++++++\n" | ||
@python -m venv .venv | ||
@echo "\nSummary +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" | ||
@echo "Virtual environment created successfully." | ||
@echo "To activate the environment for this shell session, run:" | ||
@echo "source .venv/bin/activate" | ||
|
||
.PHONY: v | ||
v: venv |
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,30 @@ | ||
# Documentation Hub | ||
|
||
Documentation for ELIXIR Cloud & AAI project. | ||
|
||
## Development | ||
|
||
For ease, certain scripts have been abbreviated in `Makefile`, make sure that | ||
you have installed the dependencies before running the commands. | ||
|
||
> **Note**: `make` commands are only available for Unix-based systems. | ||
To view the commands available, run: | ||
|
||
```sh | ||
make | ||
``` | ||
|
||
Here are some commands that you might find useful: | ||
|
||
- Making a virtual environment | ||
|
||
```sh | ||
make v | ||
``` | ||
|
||
- Installing dependencies | ||
|
||
```sh | ||
make i | ||
``` |
Oops, something went wrong.