Skip to content

Commit

Permalink
Merge pull request #140 from ekiefl/lower-your-cue
Browse files Browse the repository at this point in the history
Straight in shot example
  • Loading branch information
ekiefl authored Sep 14, 2024
2 parents a8e2a3b + d8101a7 commit 467b56e
Show file tree
Hide file tree
Showing 9 changed files with 430 additions and 73 deletions.
31 changes: 23 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
include .env
# Load environment variables from the `.env` file if it exists.
ifneq (,$(wildcard .env))
include .env
endif

.PHONY: docs
docs:
$(MAKE) -C docs/ clean-and-build-html
$(MAKE) -C docs/ view-html

.PHONY: clean
clean:
rm -rf dist

.PHONY: build
build: clean
poetry build

# Note: `poetry` does not appear to read the `POETRY_PYPI_TOKEN_<NAME>` environment variable,
# so we need to pass it explicitly in the `publish` command.
.PHONY: test-publish
test-publish:
echo ${POETRY_PYPI_TOKEN_PYPI_TEST}
# so we need to pass it explicitly in these publishing commands.
.PHONY: build-and-test-publish
build-and-test-publish: build
poetry publish \
--repository pypi-test \
--repository pypi_test \
--username __token__ \
--password ${POETRY_PYPI_TOKEN_PYPI_TEST}

.PHONY: publish
publish: build
.PHONY: build-and-publish
build-and-publish: build
poetry publish \
--username __token__ \
--password ${POETRY_PYPI_TOKEN_PYPI}
26 changes: 17 additions & 9 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
# Put `help` first so that calling `make` without argument is like `make help`.
.PHONY: help
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile
.PHONY: clean
clean:
rm -rf $(BUILDDIR)

.PHONY: clean-and-build-html
clean-and-build-html: clean
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: view-html
view-html:
open $(BUILDDIR)/html/index.html

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ poetry install --with docs

Additionally, `pandoc` needs to be installed: https://pandoc.org/installing.html

Then navigate to this directory and run:
Then, in the root directory run:

```
bash local.sh
make docs
```
1 change: 1 addition & 0 deletions docs/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
```{eval-rst}
.. nbgallery::
30_degree_rule
straight_shot
```

Loading

0 comments on commit 467b56e

Please sign in to comment.