Skip to content

Commit

Permalink
Introduce nativelink web platform including docs & website
Browse files Browse the repository at this point in the history
Made with astro & qwik
  • Loading branch information
SchahinRohani committed Sep 19, 2024
1 parent 8d957a5 commit 7617f70
Show file tree
Hide file tree
Showing 120 changed files with 7,568 additions and 314 deletions.
13 changes: 13 additions & 0 deletions .github/styles/config/vocabularies/TraceMachina/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ LLVM
Machina
[Mm]onorepo
NVMe
[email protected]
NativeLink
OCI
OSSF
Expand Down Expand Up @@ -55,3 +56,15 @@ Grafana
GitHub
Deno
shipstorm
hermiticity
performant
unscalable
Warewulf
Apptainer
Verissimo
Delangue
Lackriet
Wainer
Gert
Bruer
Eagan
49 changes: 26 additions & 23 deletions .github/workflows/docs.yaml → .github/workflows/web.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: Deploy NativeLink Docs
name: Deploy NativeLink Web
on:
push:
branches: [main]
paths:
- 'docs/**'
- 'web/platform/**'
- '**/*.md'
- 'nativelink-config/**'
- 'tools/**'
Expand All @@ -13,7 +13,7 @@ on:
pull_request:
branches: [main]
paths:
- 'docs/**'
- 'web/platform/**'
- '**/*.md'
- 'nativelink-config/**'
- 'tools/**'
Expand All @@ -29,7 +29,7 @@ jobs:
matrix:
os: [ ubuntu-24.04, macos-14 ]

name: Docs Deployment / ${{ matrix.os }}
name: Web Platform Deployment / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
environment: production

Expand All @@ -42,22 +42,6 @@ jobs:
uses: >- # v4.1.1
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install Nix
uses: >- # v10
DeterminateSystems/nix-installer-action@de22e16c4711fca50c816cc9081563429d1cf563
- name: Cache Nix derivations
uses: >- # v4
DeterminateSystems/magic-nix-cache-action@fc6aaceb40b9845a02b91e059ec147e78d1b4e41
- name: Test Build on Ubuntu
if: matrix.os == 'ubuntu-24.04' && github.event_name == 'pull_request'
working-directory: docs
run: |
nix develop --impure --command bash -c "
bun setup && bun docs && bun run build
"
- name: Free disk space
uses: >- # v2.0.0
endersonmenezes/free-disk-space@3f9ec39ebae520864ac93467ee395f5237585c21
Expand All @@ -77,18 +61,37 @@ jobs:
echo "Deleting iOS Simulator caches"
sudo rm -rf ~/Library/Developer/CoreSimulator/Caches/*
- name: Install Nix
uses: >- # v10
DeterminateSystems/nix-installer-action@de22e16c4711fca50c816cc9081563429d1cf563
- name: Cache Nix derivations
uses: >- # v4
DeterminateSystems/magic-nix-cache-action@fc6aaceb40b9845a02b91e059ec147e78d1b4e41
- name: Test Build on Ubuntu
if: matrix.os == 'ubuntu-24.04' && github.event_name == 'pull_request'
working-directory: web/platform
run: |
nix develop --impure --command bash -c "
bun setup && bun docs && bun run build
"
- name: Test Build on macOS
if: matrix.os == 'macos-14' && github.event_name == 'pull_request'
working-directory: docs
working-directory: web/platform
run: |
nix develop --impure --command bash -c "bun setup && bun run build"
- name: Production deployment
if: matrix.os == 'ubuntu-24.04' && github.ref == 'refs/heads/main'
working-directory: docs
working-directory: web/platform
env:
DENO_DEPLOY_TOKEN: ${{ secrets.DENO_DEPLOY_TOKEN }}
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
run: |
nix develop --impure --command bash -c "
bun prod --project=nativelink-docs --org=nativelink --token=$DENO_DEPLOY_TOKEN
bun prod --project=nativelink --org=nativelink \
--token=$DENO_DEPLOY_TOKEN \
--env=RESEND_API_KEY=$RESEND_API_KEY
"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div id="logo" align="center">
<a href="https://www.nativelink.com">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/src/assets/logo-dark.svg" />
<source media="(prefers-color-scheme: light)" srcset="docs/src/assets/logo-light.svg" />
<img alt="NativeLink" src="docs/src/assets/logo-light.svg" width="376" height="100" />
<source media="(prefers-color-scheme: dark)" srcset="web/plattform/src/assets/logo-dark.svg" />
<source media="(prefers-color-scheme: light)" srcset="web/plattform/src/assets/logo-light.svg" />
<img alt="NativeLink" src="web/plattform/src/assets/logo-light.svg" width="376" height="100" />
</picture>
</a>

Expand Down
Binary file removed docs/bun.lockb
Binary file not shown.
84 changes: 0 additions & 84 deletions docs/deno.lock

This file was deleted.

51 changes: 0 additions & 51 deletions docs/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions docs/src/content/config.ts

This file was deleted.

69 changes: 0 additions & 69 deletions docs/src/styles/custom.css

This file was deleted.

27 changes: 0 additions & 27 deletions docs/src/styles/landing.css

This file was deleted.

10 changes: 0 additions & 10 deletions docs/tsconfig.json

This file was deleted.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
export PLAYWRIGHT_NODEJS_PATH=${pkgs.nodePackages_latest.nodejs}
export PATH=$HOME/.deno/bin:$PATH
deno types > web/platform/utils/deno.d.ts
'';
};
};
Expand Down
Loading

0 comments on commit 7617f70

Please sign in to comment.