Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial draft of the Open Screen Application Protocol. #344

Merged
merged 6 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,13 @@ jobs:
W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-secondscreen/2022Apr/0007.html
W3C_BUILD_OVERRIDE: |
status: WD

- name: Build and validate application.html, push to gh-pages branch if needed
uses: w3c/spec-prod@v2
with:
SOURCE: application.bs
TOOLCHAIN: bikeshed
GH_PAGES_BRANCH: gh-pages
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_APPLICATION }}
W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-secondscreen/2022Apr/0007.html

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*.pyc
index.html
messages_appendix.html
application.html
application_messages.html

16 changes: 15 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
BIKESHED ?= bikeshed
BIKESHED_ARGS ?= --print=plain

.PHONY: lint watch
.PHONY: lint watch watch-app all

# TODO: Generalize targets to reduce duplication.

all: index.html application.html

index.html: index.bs messages_appendix.html
$(BIKESHED) $(BIKESHED_ARGS) spec $<

application.html: application.bs application_messages.html
$(BIKESHED) $(BIKESHED_ARGS) spec $<

messages_appendix.html: messages_appendix.cddl scripts/pygmentize_dir.py scripts/cddl_lexer.py scripts/openscreen_cddl_dfns.py
./scripts/pygmentize_dir.py

application_messages.html: application_messages.cddl scripts/pygmentize_dir.py scripts/cddl_lexer.py scripts/openscreen_cddl_dfns.py
./scripts/pygmentize_dir.py

lint: index.bs
$(BIKESHED) $(BIKESHED_ARGS) --dry-run --force spec --line-numbers $<

watch: index.bs
@echo 'Browse to file://${PWD}/index.html'
$(BIKESHED) $(BIKESHED_ARGS) watch $<

watch-app: application.bs
@echo 'Browse to file://${PWD}/application.html'
$(BIKESHED) $(BIKESHED_ARGS) watch $<


Loading
Loading