Skip to content

Commit 30c4981

Browse files
author
git-foysal-1
committed
Fix action
1 parent 13750e7 commit 30c4981

File tree

4 files changed

+44
-53
lines changed

4 files changed

+44
-53
lines changed

.github/workflows/genarate-docs.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
pull_request:
8-
:
8+
branches:
99
- main
1010

1111
jobs:
@@ -14,10 +14,10 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
- name: Set up Python
20-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v4
2121
with:
2222
python-version: '3.x'
2323

@@ -28,18 +28,17 @@ jobs:
2828
2929
- name: Generate documentation
3030
run: |
31-
echo "import shutil" > generate_docs.py
32-
echo "def generate_docs():" >> generate_docs.py
33-
echo " with open('README.md', 'r') as readme_file:" >> generate_docs.py
34-
echo " readme_content = readme_file.read()" >> generate_docs.py
35-
echo " with open('docs/index.md', 'w') as index_file:" >> generate_docs.py
36-
echo " index_file.write(readme_content)" >> generate_docs.py
37-
echo "if __name__ == '__main__':" >> generate_docs.py
38-
echo " generate_docs()" >> generate_docs.py
39-
python generate_docs.py
31+
mkdir -p docs
32+
cp README.md docs/index.md
33+
34+
- name: Upload Documentation Artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: documentation
38+
path: docs/
4039

4140
- name: Deploy to GitHub Pages
42-
uses: peaceiris/actions-gh-pages@v3
41+
uses: peaceiris/actions-gh-pages@v4
4342
with:
4443
github_token: ${{ secrets.GITHUB_TOKEN }}
4544
publish_dir: ./docs

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
env/
3+
.env
4+
node_modules/
5+
build/
6+
dist/
7+
coverage/
8+
*.log
9+
*.log.*
10+
*.log-*
11+

README.md

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
1+
<!-- Badges -->
2+
![GitHub Contributors](https://img.shields.io/github/contributors/iamfoysal/Best-Django-Admin-interface)
3+
![Visitors](https://api.visitorbadge.io/api/visitors?path=iamfoysal/Best-Django-Admin-interface&countColor=%23263759)
14

2-
<!-- badges -->
3-
![GitHub Contributors](https://img.shields.io/github/contributors/iamfoysal/Best-Django-Admin-interface) ![Visitors](https://api.visitorbadge.io/api/visitors?path=iamfoysal/Best-Django-Admin-interface&countColor=%23263759)
4-
<div align="center">
5-
5+
# Best Django Admin Interface [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)
66

7+
> The Best Django Admin Interface Resource.
78
8-
# Best-Django-Admin-interface [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)
9-
> The Best-Django-Admin-Interface Resource.
9+
![Django Admin](django.jpg)
1010

11-
<img src="django.jpg" align="django"/>
11+
[![Repository](https://img.shields.io/badge/GitHub-URL-orange.svg)](https://github.com/iamfoysal/Best-Django-Admin-interface)
12+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/iamfoysal/Best-Django-Admin-interface/blob/main/LICENSE)
1213

13-
[![Repository](https://img.shields.io/badge/GitHub-URL-orange.svg)](https://github.com/iamfoysal/Best-Django-Admin-interface)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/iamfoysal/Best-Django-Admin-interface/blob/main/LICENSE)
14-
15-
</div>
14+
## Best Django Admin Interface Resources
1615

16+
**Packages that extend the Admin interface, adding or improving features.**
1717

18-
<div align="center">
19-
<h1>Best Django Admin interface resources.</h1>
20-
</div>
21-
22-
<div align="center">
23-
Admin interface resources
24-
<br>
25-
<strong>Packages that extend the Admin interface, adding or improving features.</strong>
26-
<br>
27-
</div>
2818

2919
## Resources
3020

docs/index.md

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,22 @@
1+
<!-- Badges -->
2+
![GitHub Contributors](https://img.shields.io/github/contributors/iamfoysal/Best-Django-Admin-interface)
3+
![Visitors](https://api.visitorbadge.io/api/visitors?path=iamfoysal/Best-Django-Admin-interface&countColor=%23263759)
14

2-
<!-- badges -->
3-
![GitHub Contributors](https://img.shields.io/github/contributors/iamfoysal/Best-Django-Admin-interface) ![Visitors](https://api.visitorbadge.io/api/visitors?path=iamfoysal/Best-Django-Admin-interface&countColor=%23263759)
4-
<div align="center">
5-
5+
# Best Django Admin Interface [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)
66

7+
> The Best Django Admin Interface Resource.
78
8-
# Best-Django-Admin-interface [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)
9-
> The Best-Django-Admin-Interface Resource.
9+
![Django Admin](django.jpg)
1010

11-
<img src="django.jpg" align="django"/>
11+
[![Repository](https://img.shields.io/badge/GitHub-URL-orange.svg)](https://github.com/iamfoysal/Best-Django-Admin-interface)
12+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/iamfoysal/Best-Django-Admin-interface/blob/main/LICENSE)
1213

13-
[![Repository](https://img.shields.io/badge/GitHub-URL-orange.svg)](https://github.com/iamfoysal/Best-Django-Admin-interface)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/iamfoysal/Best-Django-Admin-interface/blob/main/LICENSE)
14-
15-
</div>
14+
## Best Django Admin Interface Resources
1615

16+
**Packages that extend the Admin interface, adding or improving features.**
1717

18-
<div align="center">
19-
<h1>Best Django Admin interface resources.</h1>
20-
</div>
21-
22-
<div align="center">
23-
Admin interface resources
24-
<br>
25-
<strong>Packages that extend the Admin interface, adding or improving features.</strong>
26-
<br>
27-
</div>
2818

19+
## Resources
2920

3021
* [django-admin-sortable2](https://github.com/jrief/django-admin-sortable2) - Generic drag-and-drop ordering for objects in the Django admin interface [D 4.x]
3122
* [Django Jazzmin](https://github.com/farridav/django-jazzmin) - Drop-in theme for django admin, that utilises AdminLTE 3 & Bootstrap 4 to make yo' admin look jazzy [D >= 2]

0 commit comments

Comments
 (0)