Skip to content

Commit 06f87d4

Browse files
Seva Dvsdudakov
andauthored
Feature: docs (#27)
* Added generation of docs * Moved test env to environment folder, added examples for documentation * Fixed docs * Fixed docs * Fixed docs --------- Co-authored-by: Seva D <vsdudakov@gmail.com>
1 parent ad11901 commit 06f87d4

66 files changed

Lines changed: 3732 additions & 2935 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ fix:
1010
poetry run pyupgrade --exit-zero-even-if-changed --py39-plus fastadmin/**/*.py tests/**/*.py
1111
poetry run isort --settings-path pyproject.toml fastadmin tests
1212
poetry run black --config pyproject.toml fastadmin tests
13-
make -C frontend fix
13+
cd frontend && make fix
1414

1515
.PHONY: lint
1616
lint:
1717
poetry run isort --diff --check-only --settings-path pyproject.toml fastadmin tests
1818
poetry run black --diff --check --config pyproject.toml fastadmin tests
1919
poetry run flake8 --show-source --config .flake8 fastadmin tests
2020
poetry run mypy --show-error-code --install-types --non-interactive --namespace-packages --show-traceback --config-file pyproject.toml fastadmin
21-
make -C frontend lint
21+
cd frontend && make lint
2222

2323
.PHONY: test
2424
test:
2525
poetry run python generate_db.py
2626
ADMIN_ENV_FILE=example.env poetry run pytest --cov=fastadmin --cov-report=term-missing --cov-report=xml --cov-fail-under=90 -s tests
27-
make -C frontend test
27+
cd frontend && make test
2828

2929
.PHONY: kill
3030
kill:
@@ -46,9 +46,16 @@ install:
4646
poetry install --all-extras
4747
make -C frontend install
4848

49+
50+
.PHONY: docs
51+
docs:
52+
make -C docs build
53+
cp ./docs/README.md ./README.md
54+
55+
4956
.PHONY: build
5057
build:
51-
make -C docs build
58+
make docs
5259
make -C frontend build
5360
make collectstatic
5461

0 commit comments

Comments
 (0)