From 9af8531f657e89d2ef0b7545c6ebb1f801324624 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Thu, 6 Oct 2022 18:06:21 +0900 Subject: [PATCH] Redirect the spec to HTML --- .github/workflows/build.yml | 2 +- .pr-preview.json | 4 - CONTRIBUTING.md | 7 +- Makefile | 27 -- Security and Privacy.md | 8 +- redirect.html | 5 + spec.bs | 495 ------------------------------------ 7 files changed, 9 insertions(+), 539 deletions(-) delete mode 100644 .pr-preview.json delete mode 100644 Makefile create mode 100644 redirect.html delete mode 100644 spec.bs diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a665df..18d3a4d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build - run: make ci + run: mkdir out && mv redirect.html out/index.html - name: Deploy if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} uses: peaceiris/actions-gh-pages@v3 diff --git a/.pr-preview.json b/.pr-preview.json deleted file mode 100644 index 54feea3..0000000 --- a/.pr-preview.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "src_file": "spec.bs", - "type": "bikeshed" -} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e9652dd..99fb619 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,12 +6,7 @@ This repository is being used for work in the W3C [Web Platform Incubator Commun ## Editing the specification -Edits to the specification are done in the `spec.bs` file, which is then compiled with the [Bikeshed](https://tabatkins.github.io/bikeshed/) spec pre-processor. - -To build the specification, you can use one of: - -- `make local`: uses a locally-installed copy of Bikeshed -- `make remote`: uses a Bikeshed web service, so you don't have to install anything locally +The specification is now maintained as part of the HTML Standard, in [whatwg/html](https://github.com/whatwg/html). Small updates are best done as a pull request against that repository. Large feature proposals might work well being incubated in this repository; we can discuss on the issue tracker about adding a specification document here for such incubations. ## Reference implementation diff --git a/Makefile b/Makefile deleted file mode 100644 index 0527f57..0000000 --- a/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -SHELL=/bin/bash - -local: spec.bs - bikeshed --die-on=warning spec spec.bs spec.html - -spec.html: spec.bs - @ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \ - --output spec.html \ - --write-out "%{http_code}" \ - --header "Accept: text/plain, text/html" \ - -F die-on=warning \ - -F file=@spec.bs) && \ - [[ "$$HTTP_STATUS" -eq "200" ]]) || ( \ - echo ""; cat spec.html; echo ""; \ - rm -f spec.html; \ - exit 22 \ - ); - -remote: spec.html - -ci: spec.bs - mkdir -p out - make remote - mv spec.html out/index.html - -clean: - rm spec.html diff --git a/Security and Privacy.md b/Security and Privacy.md index 58d2973..d96b5ca 100644 --- a/Security and Privacy.md +++ b/Security and Privacy.md @@ -1,8 +1,4 @@ -# Security and privacy - -See spec's [Security and Privacy](https://wicg.github.io/import-maps/#security-and-privacy) section. - -## Questionnaire answers +# Security and privacy questionnaire answers The following are the answers to the W3C TAG's [security and privacy self-review questionnaire](https://www.w3.org/TR/security-privacy-questionnaire/). @@ -72,7 +68,7 @@ No, apart from via the HTTP cache. **Does this specification have a "Security Considerations" and "Privacy Considerations" section?** -[Yes](https://wicg.github.io/import-maps/#security-and-privacy). +Yes. **Does this specification allow downgrading default security characteristics?** diff --git a/redirect.html b/redirect.html new file mode 100644 index 0000000..502d437 --- /dev/null +++ b/redirect.html @@ -0,0 +1,5 @@ + + +Redirecting to https://html.spec.whatwg.org/multipage/webappapis.html#import-maps + + diff --git a/spec.bs b/spec.bs deleted file mode 100644 index a7e65f9..0000000 --- a/spec.bs +++ /dev/null @@ -1,495 +0,0 @@ -
-Title: Import Maps
-Shortname: import-maps
-Repository: WICG/import-maps
-Inline Github Issues: true
-Group: WICG
-Status: CG-DRAFT
-Level: 1
-URL: https://wicg.github.io/import-maps/
-Boilerplate: omit conformance, omit feedback-header
-Editor: Domenic Denicola, Google https://www.google.com/, d@domenic.me, https://domenic.me/
-Abstract: Import maps allow web pages to control the behavior of JavaScript imports.
-!Participate: GitHub WICG/import-maps (new issue, open issues)
-!Commits: GitHub spec.bs commits
-Complain About: accidental-2119 yes
-Indent: 2
-Default Biblio Status: current
-Markup Shorthands: markdown yes
-
- - -
-spec: html; type: dfn; urlPrefix: https://html.spec.whatwg.org/multipage/
-  text: module map; for: /; url: webappapis.html#module-map
-  text: fetch an import() module script graph; url: webappapis.html#fetch-an-import()-module-script-graph
-  text: fetch a modulepreload module script graph; url: webappapis.html#fetch-a-modulepreload-module-script-graph
-  text: fetch an inline module script graph; url: webappapis.html#fetch-an-inline-module-script-graph
-  text: script; url: webappapis.html#concept-script
-
- - - - - -

Definitions

- -A resolution result is either a [=URL=] or null. - -A specifier map is an [=ordered map=] from [=strings=] to [=resolution results=]. - -A import map is a [=struct=] with two [=struct/items=]: - -* imports, a [=specifier map=], and -* scopes, an [=ordered map=] of [=URLs=] to [=specifier maps=]. - -An empty import map is an [=/import map=] with its [=import map/imports=] and [=import map/scopes=] both being empty maps. - -

Acquiring import maps

- -

New members of environment settings objects

- -Each [=environment settings object=] will get an import map algorithm, which returns an [=/import map=] created by the first `