diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 88b56d8..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,3 +0,0 @@ -# These are supported funding model platforms - -github: [zkat] diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml deleted file mode 100644 index f6cb64d..0000000 --- a/.github/workflows/ghpages.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: "Update Editor's Copy" - -on: - push: - paths-ignore: - - README.md - - CONTRIBUTING.md - - LICENSE.md - - .gitignore - pull_request: - paths-ignore: - - README.md - - CONTRIBUTING.md - - LICENSE.md - - .gitignore - -jobs: - build: - name: "Update Editor's Copy" - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: "Checkout" - uses: actions/checkout@v4 - - - name: "Setup" - id: setup - run: date -u "+date=%FT%T" >>"$GITHUB_OUTPUT" - - - name: "Caching" - uses: actions/cache@v4 - with: - path: | - .refcache - .venv - .gems - node_modules - .targets.mk - key: i-d-${{ steps.setup.outputs.date }} - restore-keys: i-d- - - - name: "Build Drafts" - uses: martinthomson/i-d-template@v1 - with: - token: ${{ github.token }} - - - name: "Update GitHub Pages" - uses: martinthomson/i-d-template@v1 - if: ${{ github.event_name == 'push' }} - with: - make: gh-pages - token: ${{ github.token }} - - - name: "Archive Built Drafts" - uses: actions/upload-artifact@v4 - with: - path: | - draft-*.html - draft-*.txt diff --git a/.github/workflows/lint-tests.yml b/.github/workflows/lint-tests.yml deleted file mode 100644 index 3005211..0000000 --- a/.github/workflows/lint-tests.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Lint the test files - -on: - push: - paths: - - "tests/**" - pull_request: - paths: - - "tests/**" - workflow_dispatch: {} - -jobs: - lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.10' - - name: Verify failing tests and orphaned tests - run: | - cd tests/test_cases - python ../../.github/workflows/lint-tests/lint.py \ No newline at end of file diff --git a/.github/workflows/lint-tests/lint.py b/.github/workflows/lint-tests/lint.py deleted file mode 100644 index 9afc80d..0000000 --- a/.github/workflows/lint-tests/lint.py +++ /dev/null @@ -1,50 +0,0 @@ -from __future__ import annotations - -import os -import sys -import typing - -def findTestFiles(path) -> typing.Generator[str, None, None]: - for root, _, filenames in os.walk(path): - for filename in filenames: - yield os.path.join(root, filename) - -# strip the leading folder name, so they can be directly compared -inputFiles = set(x[len("input")+1:] for x in findTestFiles("input")) -validFiles = set(x[len("expected_kdl")+1:] for x in findTestFiles("expected_kdl")) - -invalidFiles = inputFiles - validFiles -orphanedFiles = validFiles - inputFiles - -SUCCESS = True - -# Check for any expected_kdl files without a corresponding input file. -if orphanedFiles: - SUCCESS = False - print("ERROR: There are outputs in /expected_kdl without corresponding tests in /input:\n" + "\n".join([" "+x for x in orphanedFiles])) - -# Check for any input files lacking an expected_kdl file -# (aka inputs expected to generate a parse error) -# that don't have a _fail suffix. -misnamedFiles: list[str] = [] -for filepath in invalidFiles: - basepath, ext = os.path.splitext(filepath) - if not basepath.endswith("_fail"): - misnamedFiles.append(filepath) -if misnamedFiles: - SUCCESS = False - print("ERROR: There are tests in /input without corresponding outputs in /expected_kdl, but they don't have a _fail suffix:\n" + "\n".join([" "+x for x in misnamedFiles])) - -# Check for any expected_kdl files that don't end in a newline. -noNewlineFiles: list[str] = [] -for filepath in validFiles: - with open("expected_kdl/" + filepath, "r", encoding="utf-8") as fh: - text = fh.read() - if not text.endswith("\n"): - noNewlineFiles.append(filepath) -if noNewlineFiles: - SUCCESS = False - print("ERROR: There are outputs in /expected_kdl that don't end with a newline:\n" + "\n".join([" "+x for x in noNewlineFiles])) - -if not SUCCESS: - sys.exit(1) \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 94d885f..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: "Publish New Draft Version" - -on: - push: - tags: - - "draft-*" - workflow_dispatch: - inputs: - email: - description: "Submitter email" - default: "" - type: string - -jobs: - build: - name: "Publish New Draft Version" - runs-on: ubuntu-latest - steps: - - name: "Checkout" - uses: actions/checkout@v4 - - # See https://github.com/actions/checkout/issues/290 - - name: "Get Tag Annotations" - run: git fetch -f origin ${{ github.ref }}:${{ github.ref }} - - - name: "Setup" - id: setup - run: date -u "+date=%FT%T" >>"$GITHUB_OUTPUT" - - - name: "Caching" - uses: actions/cache@v4 - with: - path: | - .refcache - .venv - .gems - node_modules - .targets.mk - key: i-d-${{ steps.setup.outputs.date }} - restore-keys: i-d- - - - name: "Build Drafts" - uses: martinthomson/i-d-template@v1 - with: - token: ${{ github.token }} - - - name: "Upload to Datatracker" - uses: martinthomson/i-d-template@v1 - with: - make: upload - env: - UPLOAD_EMAIL: ${{ inputs.email }} - - - name: "Archive Submitted Drafts" - uses: actions/upload-artifact@v4 - with: - path: "versioned/draft-*-[0-9][0-9].*" diff --git a/index.html b/index.html index 6e2ef15..9ef9ef0 100644 --- a/index.html +++ b/index.html @@ -24,6 +24,15 @@
| KDL | +plain text | +diff with main | +