Skip to content
Open
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
13 changes: 10 additions & 3 deletions .github/workflows/upload-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,25 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0

- name: Build website
run: |
npm install -g pnpm
cd website
pnpm i
pnpm build

- name: install mdbook
run: |
cargo install mdbook --vers "^0.4"
cargo install mdbook-linkcheck
cd src-docs
mdbook build
mv book/html ../website/docs
mv book/html ../website/dist/docs

- name: Upload website including docs and apps
run: |
mkdir -p "$HOME/.ssh"
echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
chmod 600 "$HOME/.ssh/key"
mv apps website/
rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" "website/" "${{ secrets.USERNAME }}@delta.chat:/var/www/html/webxdc.org"
cp -r apps website/dist/
rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" "website/dist/" "${{ secrets.USERNAME }}@delta.chat:/var/www/html/webxdc.org"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
dist
docs
book
*.swp
node_modules
package-lock.json
*~
2 changes: 2 additions & 0 deletions website/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pnpm-lock.yaml
dist
33 changes: 33 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# webxdc.org website

## Contributing

### Installing Dependencies

After cloning this repo, install dependencies:

```
pnpm i
```

### Checking code format

```
pnpm check
```

### Testing and developing

To test your modifications in the browser (with hot reloading!) while developing:

```
pnpm start
```

### Building

To build/bundle the site to `dist/` folder:

```
pnpm build
```
Loading