Skip to content

Commit

Permalink
chore: fix netlify doc publish (#1431)
Browse files Browse the repository at this point in the history
## This PR
<!-- add the description of the PR here -->

- disable package mode in the Python project

### Notes

Netlify build output

```
Warning: The current project could not be installed: No file/folder found for package flagd-dev
If you do not want to install the current project use --no-root.
If you want to use Poetry only for dependency management but not for packaging, you can disable package mode by setting package-mode = false in your pyproject.toml file.
In a future version of Poetry this warning will become an error!
```
I resolved the issue by following this guide.

https://docs.netlify.com/frameworks/#mkdocs

---------

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
  • Loading branch information
beeme1mr authored Oct 28, 2024
1 parent 5c39cfe commit 02d881e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1,139 deletions.
10 changes: 2 additions & 8 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
[build]
publish = "site"
# https://docs.netlify.com/configure-builds/ignore-builds/
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF netlify.toml mkdocs.yml pyproject.toml ./docs/"
command = """
pip3 install -q poetry &&
poetry config virtualenvs.in-project true &&
poetry lock &&
poetry install -v &&
mkdocs build
"""
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF netlify.toml mkdocs.yml requirements.txt ./docs/"
command = "mkdocs build"

[[headers]]
# Relax cross origin restrictions for schemas, so they can be requested by front-end apps.
Expand Down
Loading

0 comments on commit 02d881e

Please sign in to comment.