Skip to content

Commit

Permalink
manage images outside of git
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Payne committed Mar 8, 2024
1 parent 4d3f9b4 commit 8b8175b
Show file tree
Hide file tree
Showing 18 changed files with 137 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ jobs:
run: |
s3cmd rm --recursive --force s3://blog.kenpayne.co.uk/
s3cmd put --recursive site/ s3://blog.kenpayne.co.uk/ --acl-public --guess-mime-type --no-mime-magic --add-header='Cache-Control:max-age=0'
s3cmd sync s3://static.kenpayne.co.uk/ s3://blog.kenpayne.co.uk/_static/ --acl-public --guess-mime-type --no-mime-magic --add-header='Cache-Control:max-age=0'
s3cmd sync s3://static.kenpayne.co.uk/ s3://blog.kenpayne.co.uk/assets/ --acl-public --guess-mime-type --no-mime-magic --add-header='Cache-Control:max-age=0'
- run: echo "Done 🚀"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# mkdocs build folder
site/
docs/assets/

# Compiled source #
###################
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@ serve:
poetry run mkdocs serve

html:
poetry run mkdocs build
poetry run mkdocs build

upload:
poetry run aws s3 sync docs/assets s3://static.kenpayne.co.uk/ --delete

download:
poetry run aws s3 sync s3://static.kenpayne.co.uk/ docs/assets --dryrun
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 10 additions & 10 deletions docs/stoves/articles/optimus-111/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ All in all, I am very happy with how this stove has turned out and look forward
<div class="grid cards" markdown>
- ![](img/refurbished/optimus-1.jpeg)
- ![](img/refurbished/optimus-2.jpeg)
<!-- - ![](img/refurbished/optimus-3.jpeg) -->
- ![](img/refurbished/optimus-4.jpeg)
- ![](img/refurbished/optimus-5.jpeg)
- ![](../../../assets/stoves/articles/optimus-111/refurbished/optimus-1.jpeg)
- ![](../../../assets/stoves/articles/optimus-111/refurbished/optimus-2.jpeg)
<!-- - ![](../../../assets/stoves/articles/optimus-111/refurbished/optimus-3.jpeg) -->
- ![](../../../assets/stoves/articles/optimus-111/refurbished/optimus-4.jpeg)
- ![](../../../assets/stoves/articles/optimus-111/refurbished/optimus-5.jpeg)
</div>
## Purchased Condition
<div class="grid cards" markdown>
- ![](img/purchased/optimus-1.jpeg)
- ![](img/purchased/optimus-2.jpeg)
<!-- - ![](img/purchased/optimus-3.jpeg) -->
- ![](img/purchased/optimus-4.jpeg)
- ![](img/purchased/optimus-5.jpeg)
- ![](../../../assets/stoves/articles/optimus-111/purchased/optimus-1.jpeg)
- ![](../../../assets/stoves/articles/optimus-111/purchased/optimus-2.jpeg)
<!-- - ![](../../../assets/stoves/articles/optimus-111/purchased/optimus-3.jpeg) -->
- ![](../../../assets/stoves/articles/optimus-111/purchased/optimus-4.jpeg)
- ![](../../../assets/stoves/articles/optimus-111/purchased/optimus-5.jpeg)
</div>
4 changes: 2 additions & 2 deletions docs/stoves/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<div class="grid cards" markdown>

![british-military-no-6](articles/british-military-no-6/img/temp.jpeg){width=300}<br>
![british-military-no-6](../assets/stoves/articles/british-military-no-6/temp.jpeg){width=300}<br>
[British Military No. 6](articles/british-military-no-6/index.md)

![optimus-111](articles/optimus-111/img/refurbished/optimus-1.jpeg){width=300}<br>
![optimus-111](../assets/stoves/articles/optimus-111/refurbished/optimus-1.jpeg){width=300}<br>
[Optimus 111](articles/optimus-111/index.md)

</div>
124 changes: 113 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ mkdocs-material = "^9.5.10"
mkdocs-glightbox = "^0.3.7"


[tool.poetry.group.dev.dependencies]
awscli = "^1.32.59"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 8b8175b

Please sign in to comment.