8000 feat(main): Revert "feat(main): New Testcontainers Python Docs Site" by terry-docker · Pull Request #835 · testcontainers/testcontainers-python · GitHub
[go: up one dir, main page]

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,3 @@ venv
.python-version
.env
.github-token

# docs build
site/
5 changes: 0 additions & 5 deletions Dockerfile.docs

This file was deleted.

36 changes: 0 additions & 36 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,39 +68,3 @@ clean-all: clean ## Remove all generated files and reset the local virtual envir
.PHONY: help
help: ## Display command usage
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

## --------------------------------------

DOCS_CONTAINER=mkdocs-container
DOCS_IMAGE=mkdocs-poetry
DOCS_DOCKERFILE := Dockerfile.docs

.PHONY: clean-docs
clean-docs:
@echo "Destroying docs"
@if docker ps -a --format '{{.Names}}' | grep -q '^$(DOCS_CONTAINER)$$'; then \
docker rm -f $(DOCS_CONTAINER); \
fi
@if docker images -q $(DOCS_IMAGE) | grep -q .; then \
docker rmi $(DOCS_IMAGE); \
fi

.PHONY: docs-ensure-image
docs-ensure-image:
@if [ -z "$$(docker images -q $(DOCS_IMAGE))" ]; then \
docker build -f $(DOCS_DOCKERFILE) -t $(DOCS_IMAGE) . ; \
fi

.PHONY: serve-docs
serve-docs: docs-ensure-image
docker run --rm --name $(DOCS_CONTAINER) -it -p 8000:8000 \
-v $(PWD):/testcontainers-go \
-w /testcontainers-go \
$(DOCS_IMAGE) bash -c "\
cd docs && poetry install --no-root && \
poetry run mkdocs serve -f ../mkdocs.yml -a 0.0.0.0:8000"

# Needed if dependencies are added to the docs site
.PHONY: export-docs-deps
export-docs-deps:
cd docs && poetry export --without-hashes --output requirements.txt
2 changes: 0 additions & 2 deletions docs/_headers

This file was deleted.

Empty file removed docs/_redirects
Empty file.
126 changes: 0 additions & 126 deletions docs/contributing.md

This file was deleted.

136 changes: 0 additions & 136 deletions docs/css/extra.css

This file was deleted.

Loading
Loading
0