Skip to content

Commit

Permalink
check for broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris committed Oct 31, 2023
1 parent 9e76ea4 commit aa3f062
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/broken-link-check-cron.yml.txt

This file was deleted.

27 changes: 21 additions & 6 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,33 @@ jobs:
token: ${{ secrets.SPECS_TOKEN }}
submodules: recursive

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.21

- uses: actions/setup-node@v1
with:
node-version: '16.x'
node-version: '20.x'

- name: Test build
env:
TARGET_URL: "https://docs.flashbots.net"
BASE_URL: "/"
run: |
yarn install --frozen-lockfile
yarn build
# - name: Check for broken links
# run: |
# cd build
# npm install -g linkinator
# linkinator "**/*.html" --recurse --timeout 3000 --concurrency 10 --retry -s https://dune.com/ChainsightAnalytics,'https://.*etherscan.io/.*','https://twitter.com.*','https://.*imgur.com.*'
- name: Check for broken links
run: |
go install github.com/raviqqe/muffet/v2@latest
echo -e "BASE_URL=/docs/\nTARGET_URL=http://localhost:3000" > .env
yarn serve &
sleep 5
echo "Checking for broken links..."
muffet http://localhost:3000/docs/ \
--exclude="notion[.]so" \
-e "github[.]com/flashbots/suave-specs" \
-e "github[.]com/flashbots/suave-bridge" \
-e "algolia[.]net"
8 changes: 3 additions & 5 deletions docs/how-to/run-suave.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ cd suave-geth/
```
3. Run SUAVE (depending on your docker setup, you may need to run this as `sudo`):
```bash
make devnet-up
make devnet-up
```

### Optional testing
Expand All @@ -62,8 +62,6 @@ Step 3: Send backrun

If you'd like to examine the Go code responsible for deploying contracts and sending transactions, you can do so [here](https://github.com/flashbots/suave-geth/blob/main/suave/devenv/cmd/main.go).

You can also navigate to [http://localhost:8080](http://localhost:8080) in your browser to see a local block explorer.

5. You can stop your docker containers with:
```bash
make devnet-down
Expand Down Expand Up @@ -121,7 +119,7 @@ make suave
```
2. Run this command:
```bash
./build/bin/suave --suave.dev
./build/bin/suave --suave.dev
```

### What to do next
Expand All @@ -142,7 +140,7 @@ You can also run any familiar Geth command you like. Start by generating a new a

If the `--datadir` flag is not set, a geth client stores data in the `$HOME/.ethereum` directory. Depending on the chain you use, it creates a subdirectory. For example, if you run Sepolia, geth creates `$HOME/.ethereum/sepolia/`. So, if you use the `--suave` flag, your data ends up in `$HOME/.ethereum/suave/...`.

#### Using the console
#### Using the console

You can attach to the usual Geth javascript console to get any interactive data you need with:

Expand Down

0 comments on commit aa3f062

Please sign in to comment.