-
Notifications
You must be signed in to change notification settings - Fork 0
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
make npm package, npm start uses eleventy to render specs #91
Closed
Closed
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e57c711
make npm package, npm start uses eleventy to render specs
gobengo 4c514dc
package.json
gobengo 0cebd87
eleventy is now a full dep because its used in start script. perhaps …
gobengo a7ad282
ignore
gobengo ff1220f
add .github/workflows/add-to-web3.yml
gobengo 8970d90
add on:workflow_dispatch: to .github/workflows/add-to-web3.yml
gobengo 568d84f
mahybe fix ci
gobengo ad5e4fc
rename add-to-web3 workflow
gobengo ba48a2a
add-to-web3 does npm ci
gobengo 7ad0e8f
add doctype
gobengo 5d1b644
add comment in add-to-web3
gobengo 0bc0c1f
Merge branch 'main' into 11ty-1705527160
gobengo d8a43cb
specs-website is workspace subpackage
gobengo f4b9f27
Merge branch '11ty-1705527160' of github.com:web3-storage/specs into …
gobengo 80c1a41
fix package-lock.json
gobengo be17d9c
fix build
gobengo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/node_modules | ||
/_site | ||
/specs-website |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: add to web3 | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
add-to-web3: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- run: npm ci | ||
- uses: web3-storage/add-to-web3@v3 | ||
id: w3up | ||
with: | ||
path_to_add: '_site' | ||
proof: ${{ secrets.W3_PROOF }} | ||
secret_key: ${{ secrets.W3_PRINCIPAL }} | ||
- run: echo ${{ steps.w3up.outputs.cid }} | ||
- run: echo ${{ steps.w3up.outputs.url }} | ||
- uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
message: | | ||
# added to web3 | ||
|
||
${{ steps.w3up.outputs.url }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.heroku | ||
_site | ||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!doctype html> | ||
<h1> | ||
w3-specs ⁂ | ||
</h1> | ||
<section webc:for="item of collections.all" webc:if="item.fileSlug"> | ||
<h2 id="item.fileSlug"> | ||
<span @text="item.fileSlug"></span> | ||
<a href="`#${item.fileSlug}`">§</a> | ||
</h2> | ||
<dl> | ||
<dt>url</dt> | ||
<dd> | ||
<a :href="item.url"><span @text="item.url"></span></a> | ||
</dd> | ||
</dl> | ||
</section> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suspect this needs more
Or maybe the gateway isn't able to guess the mime type. Maybe needs .html extension.
Add-to-web3 is just calling w3 up.