Skip to content

Commit 8ef403d

Browse files
authored
Merge pull request #629 from python-discord/static-docs
Clean Up Static Deployment Docs
2 parents 053d43e + 77da014 commit 8ef403d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ test = "coverage run manage.py test"
5454
report = "coverage report -m"
5555
lint = "pre-commit run --all-files"
5656
precommit = "pre-commit install"
57-
static = "python mange.py distill-local build --traceback --force"
57+
static = "python manage.py distill-local build --traceback --force"

static-builds/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,15 @@ They are split into two parts:
1717
To get started with building, you can use the following command:
1818

1919
```shell
20+
poetry install
2021
python -m pip install httpx==0.19.0
21-
python manage.py distill-local build --traceback --force --collectstatic
22+
poetry run task static
2223
```
2324

2425
Alternatively, you can use the [Dockerfile](/Dockerfile) and extract the build.
2526

2627
Both output their builds to a `build/` directory.
2728

28-
> Warning: If you are modifying the [build script](./netlify_build.py), make sure it is compatible with Python 3.8.
29-
30-
Note: The build script uses [nightly.link](https://github.com/oprypin/nightly.link)
31-
to fetch the artifact with no verification.
32-
3329
### Deploying To Netlify
3430
To deploy to netlify, link your site GitHub repository to a netlify site, and use the following settings:
3531

@@ -46,3 +42,9 @@ Environment Variables:
4642
Note that at this time, if you are deploying to netlify yourself, you won't have access to the
4743
fa-icons pack we are using, which will lead to many missing icons on your preview.
4844
You can either update the pack to one which will work on your domain, or you'll have to live with the missing icons.
45+
46+
47+
> Warning: If you are modifying the [build script](./netlify_build.py), make sure it is compatible with Python 3.8.
48+
49+
Note: The build script uses [nightly.link](https://github.com/oprypin/nightly.link)
50+
to fetch the artifact with no authentication.

0 commit comments

Comments
 (0)