diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 18f8f25..0000000 --- a/.editorconfig +++ /dev/null @@ -1,10 +0,0 @@ -# editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 4 -end_of_line = lf -insert_final_newline = true -charset = utf-8 -trim_trailing_whitespace = true diff --git a/.github/workflows/jamstack.yml b/.github/workflows/jamstack.yml index f3e9d7d..9d240d3 100644 --- a/.github/workflows/jamstack.yml +++ b/.github/workflows/jamstack.yml @@ -1,17 +1,20 @@ -name: Build and Deploy -on: [push] +name: Publish static site to GitHub Pages +on: + push: + branches: + - main jobs: - build-and-deploy: + publish: runs-on: ubuntu-latest steps: - name: Checkout 🛎️ - uses: actions/checkout@v2.3.1 + uses: actions/checkout@v1 - name: Setup Python 3 🐍 uses: actions/setup-python@v2 with: - python-version: '3.8' - architecture: 'x64' + python-version: '3.8' # Version range or exact version of a Python version to use, using SemVer's version range syntax + architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified - name: Update PIP ✨ run: | @@ -25,8 +28,12 @@ jobs: - name: Run script 🏃 run: python static.py - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@4.1.3 + - name: Publish content to GitHub Pages 🚀 + uses: andre487/publish-to-orphan-gh-pages@v1.0.1 with: + src_dir: ./deploy_dir + dest_dir: . branch: deploy - folder: deploy_dir + deploy_private_key: ${{ secrets.REPO_DEPLOY_PRIVATE_KEY }} + important_files: '["CNAME"]' + debug: false diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b6e4761..0000000 --- a/.gitignore +++ /dev/null @@ -1,129 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -pip-wheel-metadata/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -.python-version - -# pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. -# However, in case of collaboration, if having platform-specific dependencies or dependencies -# having no cross-platform support, pipenv may install dependencies that don't work, or not -# install all needed dependencies. -#Pipfile.lock - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 2a2133a..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 jamstackpy - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index d8982cb..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# jamstackpy.github.io -Jamstackpy Website diff --git a/deploy_dir/assets/css.css b/assets/css.css similarity index 100% rename from deploy_dir/assets/css.css rename to assets/css.css diff --git a/assets/img/favicon.ico b/assets/img/favicon.ico new file mode 100644 index 0000000..032d0d4 Binary files /dev/null and b/assets/img/favicon.ico differ diff --git a/assets/img/shared.png b/assets/img/shared.png new file mode 100644 index 0000000..b32008c Binary files /dev/null and b/assets/img/shared.png differ diff --git a/deploy_dir/assets/img/logo.png b/deploy_dir/assets/img/logo.png deleted file mode 100644 index 928f89b..0000000 Binary files a/deploy_dir/assets/img/logo.png and /dev/null differ diff --git a/deploy_dir/index.html b/index.html similarity index 71% rename from deploy_dir/index.html rename to index.html index f972de7..a75617f 100644 --- a/deploy_dir/index.html +++ b/index.html @@ -1,15 +1,20 @@ - Jamstackpy + Jamstack.py - + - + + + + + + @@ -39,34 +44,9 @@

Download GitHub

-

Latest version: 0.1.0

+

Latest version: 1.1.0

-
@@ -111,42 +91,43 @@

Templates

They trust in Jamstackpy

-
-
-
-
-
DeliciousPy Telegram Channel
- -
-
- See -
+
+
+
+
+
DeliciousPy Telegram Channel
+ +
+
+ See
-
-
-
-
The Flask Community Work Group
-
-
- See -
+
+
+
+
+
The Flask Community Work Group
+
+
+ See
-
-
-
-
A Personal Site
-
-
- See -
+
+
+
+
+
A Personal Site
+
+
+ See
+
-
-
+ \ No newline at end of file diff --git a/info.json b/info.json deleted file mode 100644 index 5a28a13..0000000 --- a/info.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "head":{ - "description": "Basic jamstack site", - "keywords": "python, jamstack", - "author": "R Ja", - "theme-color": "#ffb74d" - } -} \ No newline at end of file diff --git a/settings.py b/settings.py deleted file mode 100644 index f163e12..0000000 --- a/settings.py +++ /dev/null @@ -1,7 +0,0 @@ -import json - -OUTPUT_FOLDER = 'deploy_dir/' -info = None - -with open('info.json') as f: - info = json.load(f) diff --git a/static.py b/static.py deleted file mode 100644 index 2ca0436..0000000 --- a/static.py +++ /dev/null @@ -1,45 +0,0 @@ -import sys -from os.path import join - -import settings -from flask import Flask -from jamstack.api.template import base_context, generate -from livereload import Server - -context = base_context() -context.update({ - "info": settings.info -}) - - -def main(args): - def gen(): - generate('index.html', join( - settings.OUTPUT_FOLDER, 'index.html'), **context) - - if len(args) > 1 and args[1] == '--server': - app = Flask(__name__) - - # remember to use DEBUG mode for templates auto reload - # https://github.com/lepture/python-livereload/issues/144 - app.debug = True - server = Server(app.wsgi_app) - - # run a shell command - # server.watch('.', 'make static') - - # run a function - - server.watch('.', gen, delay=5) - server.watch('*.py') - - # output stdout into a file - # server.watch('style.less', shell('lessc style.less', output='style.css')) - - server.serve() - else: - gen() - - -if __name__ == '__main__': - main(sys.argv) diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 84a93eb..0000000 --- a/templates/index.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - Jamstackpy - {% include 'sections/head.html' %} - - -
-
-
- -
-
-
-
-
-

Jamstack.py

-

- An extensible static site generator made in Python -

-

- Download - GitHub -

-

Latest version: 0.1.0

-
-
-
-
-
-
Extensible
-
Create your own modules and generate complex sites.
-
-
-
-
-
Customizable
-
You can customise, contribute or create your own templates.
-
-
-
-
-
Fast
-
Just python static.py and Builded!
-
-
-
-
-
-
-

Introduction

-
-
-

Jamstackpy allows you to generate static websites using all the power of Flask, so you can modify the files as much as you like to achieve different results and create fantastic sites.

-
- -
-
-
-
-
-
-

Templates

-

Jamstackpy has default templates such as Massively and Phantom, both courtesy of HTML5UP, however as well as being able to customise these, you can create your own templates, and even include them in the templates supported by Jamstackpy.

-

To find out how to contribute a template please see this article from the official wiki.

-
-
-
-
-

They trust in Jamstackpy

-
-
-
-
-
-
DeliciousPy Telegram Channel
- -
-
- See -
-
-
-
-
-
-
The Flask Community Work Group
-
-
- See -
-
-
-
-
-
-
A Personal Site
-
-
- See -
-
-
-
-
-
- {% include 'sections/footer.html' %} - - \ No newline at end of file diff --git a/templates/sections/body.html b/templates/sections/body.html deleted file mode 100644 index e69de29..0000000 diff --git a/templates/sections/footer.html b/templates/sections/footer.html deleted file mode 100644 index 08a2823..0000000 --- a/templates/sections/footer.html +++ /dev/null @@ -1,64 +0,0 @@ - diff --git a/templates/sections/head.html b/templates/sections/head.html deleted file mode 100644 index f9048d0..0000000 --- a/templates/sections/head.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - -