Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
71 changes: 71 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Website

on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: website-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
check:
name: Check and package
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out site
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up Node
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .node-version

- name: Unit tests
run: node --test tests/*.test.mjs

- name: Package public files
run: node scripts/package.mjs "$RUNNER_TEMP/pages"

- name: Check vendored docs, generated pages, links and accessibility
run: node scripts/check.mjs --site "$RUNNER_TEMP/pages"

- name: Upload Pages artifact
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: ${{ runner.temp }}/pages
retention-days: 1
include-hidden-files: true

deploy:
name: Deploy GitHub Pages
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
needs: check
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
concurrency:
group: pages-production
cancel-in-progress: false
steps:
- name: Configure GitHub Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0

- name: Deploy site
id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
.vendor-sync-*/
.site-check-*/
.DS_Store
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
26
Empty file added .nojekyll
Empty file.
20 changes: 20 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<meta name="theme-color" content="#14161B">
<title>Page not found | SendBox</title>
<style>
body { display: grid; align-content: center; min-height: 100vh; width: min(42rem, calc(100% - 3rem)); margin: auto; color: #F5F7F8; background: #14161B; font: 1.125rem/1.6 system-ui, sans-serif; }
h1 { margin: 0; font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.1; }
p:first-child { margin: 0 0 0.5rem; color: #B9C3CB; font-family: ui-monospace, Menlo, Consolas, monospace; }
a { display: inline-block; padding-block: 12px; color: #34D399; text-underline-offset: 0.25em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
</style>
</head>
<body>
<main id="main"><p>404 / SendBox</p><h1>This page is not here.</h1><p>The address may have changed when the documentation was reorganized.</p><p><a href="https://sendbox.synctune.it/">Go to the SendBox home page</a> or browse the <a href="https://sendbox.synctune.it/sendbox/">SendBox docs</a> and <a href="https://sendbox.synctune.it/fleet/">Fleet docs</a>.</p></main>
</body>
</html>
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sendbox.synctune.it
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
# sendbox.synctune.it

The website and documentation for [SendBox](https://github.com/sendbox-dev/sendbox)
and [SendBox Fleet](https://github.com/sendbox-dev/sendbox-fleet).
The website for [SendBox](https://github.com/sendbox-dev/sendbox) and
[SendBox Fleet](https://github.com/sendbox-dev/sendbox-fleet), published at
[sendbox.synctune.it](https://sendbox.synctune.it): a landing page, user and
contributor documentation for both projects, and a contributor guide.

Plain HTML and CSS. No JavaScript, dependencies, install command, cookies or
third-party resources. The documentation pages are generated from the projects'
own Markdown, synced unchanged at a recorded commit, by small Node scripts that
use only Node's built-in modules.

```sh
node scripts/sync.mjs # update vendor/ from the projects' main branches
node scripts/build.mjs # regenerate the documentation pages and sitemap
node --test tests/*.test.mjs # unit tests
node scripts/check.mjs # vendored docs, generated files, links, accessibility
```

- [Preview and Pages deployment](docs/deployment.md)
- [Content, synced documentation and checks](docs/maintenance.md)
- [Synced project documents](vendor/) (don't edit, see the maintenance guide)

## License

[MIT](LICENSE.md) for the website. The synced SendBox and SendBox Fleet documents
and logos in `vendor/`, `sendbox/`, `fleet/` and `assets/logos/` stay under the
projects' [Apache License 2.0](vendor/sendbox/LICENSE).
8 changes: 8 additions & 0 deletions assets/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions assets/logos/sendbox-fleet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions assets/logos/sendbox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading