Skip to content

Commit

Permalink
Merge pull request #20 from worldemar/update-readme
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
worldemar authored Jan 28, 2025
2 parents 2625f6a + ee47bfd commit 6b50810
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: |
rm -rf docs
mv bundles docs
git checkout -- docs/_config.yml
sudo git checkout -- docs/_config.yml
docker run --rm -v .:/src -w /src qrapps:ci release.py
tree /f docs
- name: release
Expand Down
22 changes: 9 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
# Self-contained environment
# Self-contained environment, useful commands:
#
# Build environment:
# Build environment image:
# docker build --pull --rm -t qrapps:ci .
#
# Run interactive shell, useful for debugging:
# After image has been built, you can run:
#
# Interactive shell, useful for debugging:
# docker run --rm -it -v .:/src -w /src --entrypoint=bash qrapps:ci
#
# Check code quality:
# docker run --rm -it -v .:/src -w /src --entrypoint=prospector qrapps:ci
# Code quality check:
# docker run --rm -v .:/src -w /src --entrypoint=prospector qrapps:ci
#
# Convert everything to QR codes:
# docker run --rm -it -v .:/src -w /src qrapps:ci qrs.py --htmldirs=apps --builddir=bundles
# docker run --rm -v .:/src -w /src qrapps:ci qrs.py --htmldirs=apps --builddir=bundles
#
# Convert single app to QR code:
# docker run --rm -it -v .:/src -w /src qrapps:ci qr.py --htmldir=apps/demo-clock --builddir=bundles
#
# Then run commands from within the build environment, for example
# docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/usr/src -w /usr/src curl/curl autoreconf -fi
# docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/usr/src -w /usr/src curl/curl ./configure --without-ssl --without-libpsl
# docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/usr/src -w /usr/src curl/curl make
# docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/usr/src -w /usr/src curl/curl ./scripts/maketgz 8.7.1
# docker run --rm -v .:/src -w /src qrapps:ci qr.py --htmldir=apps/demo-clock --builddir=bundles

from debian:12

Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ All apps follow same rules:
These codes can be scanned by your device of choice and content pasted directly into browser URL.
Since QR code content is [Data URL](https://en.wikipedia.org/wiki/Data_URI_scheme), it contains everything needed within itself.

## How to contribute?
- Create directory in `apps` with appropriate name, then add to it:
- `index.html` - main app layout file
- `index.js` - app source code
- `minify.json` and `uglify.json` - compression configs
- `README.md` - app description

(see `demo-*` apps for file content examples)
- Use build instructions from [Dockerfile](Dockerfile)

## Why would you do that?
For fun, challenge and as a demonstration of modern browser capabilities.
Fitting entire app in one QR code also keeps them relatively small and simple... until author tries to squeeze code too hard and it becomes unreadeable 😂
Expand Down

0 comments on commit 6b50810

Please sign in to comment.