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 @@
-Latest version: 0.1.0
+Latest version: 1.1.0
-python static.py and Builded!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.
-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.
-